.tickets-widget { position: fixed; right: 21px; bottom: 37px; z-index: 1000; font-size: 14px; }
.tickets-widget-button { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: #3e4b65; cursor: pointer; animation: tickets-pulse ease-out 1.5s infinite; }
.tickets-widget-button::before { content: ""; position: absolute; padding: 25px; border: 5px solid #3e4b65; border-radius: 50%; opacity: .75; pointer-events: none; animation: tickets-pulse-border ease-out 1.5s infinite; }
.tickets-widget-cross, .tickets-widget.is-open .tickets-widget-plane { display: none; }
.tickets-widget.is-open .tickets-widget-cross { display: block; }
.tickets-widget.is-open .tickets-widget-button, .tickets-widget.is-open .tickets-widget-button::before { animation: none; }
.tickets-widget.is-open .tickets-widget-button::before { display: none; }
@keyframes tickets-pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 75, 101, .49); } 80% { box-shadow: 0 0 0 14px rgba(62, 75, 101, 0); } }
@keyframes tickets-pulse-border { 0% { padding: 25px; opacity: .75; } 75% { padding: 50px; opacity: 0; } 100% { opacity: 0; } }
.tickets-widget-window { position: absolute; right: 33px; bottom: 29px; width: 500px; max-width: calc(100vw - 30px); max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; box-shadow: 0 10px 40px rgba(62, 75, 101, .25); color: #1f2626; }
.tickets-widget-loading { min-height: 180px; }
.tickets-widget-head { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px 10px 20px; background: #3e4b65; color: #fff; }
.tickets-widget-title { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 500; line-height: 16px; }
.tickets-widget-title strong { font-size: 16px; font-weight: 700; line-height: 20px; }
.tickets-widget-back, .tickets-widget-close { padding: 4px 6px; border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.tickets-widget-body { padding: 10px 25px 25px; }
.tickets-widget-caption { margin: 8px 0 14px; font-size: 16px; font-weight: 700; text-align: center; }
.tickets-widget-note { margin: 20px 0; text-align: center; }
.tickets-widget-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.tickets-widget-submit { display: inline-block; padding: 10px 20px; border: 1px solid #3e4b65; border-radius: 0; background: #3e4b65; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.tickets-widget-submit:hover { color: #fff; opacity: .9; }
.tickets-widget-submit.is-light { background: #fff; color: #3e4b65; }
.tickets-widget-submit[disabled] { opacity: .6; cursor: default; }
.tickets-widget .tickets-form p { margin: 0 0 12px; }
.tickets-widget .tickets-form label { display: block; margin-bottom: 4px; color: #89817e; }
.tickets-widget .tickets-form input[type="text"], .tickets-widget .tickets-form select, .tickets-widget .tickets-form textarea { width: 100%; max-width: none; padding: 8px 10px; border: 0; border-bottom: 1px solid #3e4b65; border-radius: 0; background: #fff; box-sizing: border-box; font-size: 15px; outline: none; }
.tickets-widget-thanks { text-align: center; }
.tickets-widget-check { width: 56px; height: 56px; margin: 20px auto 14px; border-radius: 50%; background: #6dcf7e; color: #fff; font-size: 30px; line-height: 56px; }
.tickets-widget-thanks h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.tickets-widget .tickets-list { list-style: none; margin: 0; padding: 0; }
.tickets-widget .tickets-item { border-bottom: 1px solid #e6e5e0; }
.tickets-widget .tickets-item-link { display: flex; align-items: center; gap: 10px; padding: 10px; color: inherit; text-decoration: none; }
.tickets-widget .tickets-item-link:hover { background: #f8f7f0; }
.tickets-widget .tickets-item-icon { position: relative; flex: 0 0 32px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Crect width='32' height='24' rx='4' fill='%233e4b65'/%3E%3Cpath d='M3 5l13 9 13-9' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.tickets-widget .tickets-item-icon::before { content: none; }
.tickets-widget .tickets-item.is-closed .tickets-item-icon { opacity: .18; }
.tickets-widget .tickets-item:not(.is-closed) .tickets-item-icon::after { content: ""; position: absolute; top: -5px; right: -4px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #3e4b65; }
.tickets-widget .tickets-item-body { display: flex; flex-direction: column; min-width: 0; }
.tickets-widget .tickets-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14px; line-height: 16px; }
.tickets-widget .tickets-number, .tickets-widget .tickets-date { color: #89817e; font-weight: 600; }
.tickets-widget .tickets-state { padding: 3px 5px; border-radius: 3px; background: #c9c9cf; color: #3e4b65; font-size: 15px; font-weight: 600; line-height: 16px; }
.tickets-widget .tickets-state.is-answered { background: #d5c942; }
.tickets-widget .tickets-state.is-closed { background: #6dcf7e; }
.tickets-widget .tickets-subject { margin: 5px 0; color: #1f2626; font-size: 16px; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; }
.tickets-widget .tickets-preview { color: #89817e; font-size: 14px; font-weight: 400; line-height: 16px; overflow-wrap: anywhere; }
.tickets-widget .tickets-error { color: #eb5757; }
@media (max-width: 580px) {
    .tickets-widget { right: 15px; bottom: 15px; }
    .tickets-widget-window { position: fixed; right: 15px; bottom: 90px; }
}
