.support-ticket-widget {
    position: relative;
    z-index: 1200;
}

.support-ticket-launcher {
    align-items: center;
    background: #2f9ec7;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: 24px;
    box-shadow: 0 10px 28px rgba(10, 33, 58, .24);
    color: #fff;
    cursor: pointer;
    display: flex;
    font: 700 26px/1 Arial, sans-serif;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: 24px;
    width: 58px;
    z-index: 1200;
}

.support-ticket-launcher:hover,
.support-ticket-launcher:focus-visible {
    background: #167ca5;
    outline: 3px solid rgba(47, 158, 199, .28);
    outline-offset: 3px;
}

.support-ticket-dialog {
    background: #fff;
    border: 1px solid #d4dce4;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(10, 33, 58, .3);
    color: #0b2340;
    margin: auto;
    max-height: min(760px, calc(100vh - 32px));
    max-width: 520px;
    overflow: auto;
    padding: 24px;
    width: calc(100% - 32px);
}

.support-ticket-dialog::backdrop {
    background: rgba(8, 25, 44, .55);
}

.support-ticket-dialog__header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.support-ticket-dialog__eyebrow {
    color: #95661f;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.support-ticket-dialog h2 {
    color: #0b2340;
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.support-ticket-dialog__close {
    background: transparent;
    border: 0;
    color: #334155;
    cursor: pointer;
    flex: 0 0 40px;
    font: 400 30px/38px Arial, sans-serif;
    height: 40px;
    padding: 0;
    width: 40px;
}

.support-ticket-dialog__close:hover,
.support-ticket-dialog__close:focus-visible {
    background: #eef3f6;
    border-radius: 50%;
    outline: 2px solid #2f9ec7;
}

.support-ticket-dialog__intro {
    color: #526176;
    font-size: 16px;
    line-height: 1.55;
    margin: 14px 0 20px;
}

.support-ticket-form {
    display: grid;
    gap: 9px;
}

.support-ticket-form label {
    color: #0b2340;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.support-ticket-form input,
.support-ticket-form select,
.support-ticket-form textarea {
    background: #fff;
    border: 1px solid #aeb9c5;
    border-radius: 6px;
    color: #0b2340;
    font: 16px/1.4 Arial, sans-serif;
    max-width: 100%;
    padding: 11px 12px;
    width: 100%;
}

.support-ticket-form textarea {
    min-height: 126px;
    resize: vertical;
}

.support-ticket-form input:focus,
.support-ticket-form select:focus,
.support-ticket-form textarea:focus {
    border-color: #167ca5;
    box-shadow: 0 0 0 3px rgba(47, 158, 199, .2);
    outline: 0;
}

.support-ticket-form__actions {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 14px;
}

.support-ticket-form__actions a {
    color: #805813;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.support-ticket-form__actions button {
    background: #c9a052;
    border: 1px solid #a87824;
    border-radius: 6px;
    color: #0b2340;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 18px;
}

.support-ticket-form__actions button:hover,
.support-ticket-form__actions button:focus-visible {
    background: #b98c39;
    outline: 3px solid rgba(201, 160, 82, .28);
}

.support-ticket-form__actions button:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 600px) {
    .support-ticket-launcher {
        bottom: 16px;
        right: 16px;
    }

    .support-ticket-dialog {
        max-height: calc(100vh - 20px);
        padding: 20px;
        width: calc(100% - 20px);
    }

    .support-ticket-dialog h2 {
        font-size: 24px;
    }

    .support-ticket-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-ticket-launcher,
    .support-ticket-dialog {
        scroll-behavior: auto;
    }
}
