.qchat
{
    --qc-navy: #103467;
    --qc-blue: #195ce4;
    --qc-muted: #627b9c;
    --qc-line: #dfe8ff;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2500;
    color: var(--qc-navy);
    font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
    text-align: left;
}
.qchat *, .qchat *::before, .qchat *::after
{
    box-sizing: border-box;
}
.qchat [hidden]
{
    display: none !important;
}
.qchat button, .qchat input, .qchat textarea
{
    font: inherit;
}
.qchat button
{
    cursor: pointer;
}
.qchat button:disabled
{
    cursor: wait;
    opacity: .55;
}
.qchat :focus-visible
{
    outline: 3px solid #64b6ff;
    outline-offset: 3px;
}
.qchat-launcher
{
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 230px;
    padding: 13px 22px 13px 14px;
    border: 1px solid #72a3f5;
    border-radius: 50px;
    background: linear-gradient(110deg, #10366e, #155dde);
    color: white;
    box-shadow: 0 10px 30px #17448b26, inset 0 1px 0 #ffffff24;
    transition: transform .2s, box-shadow .2s;
    animation: qchat-enter .45s ease-out;
}
.qchat-launcher:hover
{
    transform: translateY(-3px);
    box-shadow: 0 14px 36px #17448b40, inset 0 1px 0 #ffffff24;
}
.qchat-launcher-icon
{
    position: relative;
    width: 48px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #16497b, #061c3e);
    border: 3px solid #b6d7ff;
    border-radius: 17px;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 9px #65d5fb24;
}
.qchat-launcher-icon span
{
    width: 5px;
    height: 12px;
    border-radius: 5px;
    background: #77edff;
    box-shadow: 0 0 9px #49dcff;
}
.qchat svg
{
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.qchat-launcher-spark
{
    margin-left: auto;
    color: #e4efff;
    flex-shrink: 0;
}
.qchat-launcher-label
{
    display: flex;
    flex-direction: column;
    text-align: left;
}
.qchat-launcher-label strong
{
    font-size: 17px;
    font-weight: 650;
}
.qchat-launcher-label > span
{
    color: #d3e6ff;
    font-size: 12px;
    margin-top: 3px;
}
.qchat-panel
{
    position: absolute;
    right: 0;
    bottom: 88px;
    width: 440px;
    max-width: calc(100vw - 48px);
    height: min(760px, calc(100dvh - 136px));
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    border: 1px solid var(--qc-line);
    background: white;
    box-shadow: 0 24px 80px #153c721c, 0 4px 16px #153c7205;
    overflow: hidden;
    animation: qchat-enter .2s ease-out;
}
.qchat-header
{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 23px 25px 14px;
    color: var(--qc-navy);
    background: white;
}
.qchat-ai-badge
{
    padding: 7px 8px;
    color: var(--qc-blue);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    border-radius: 7px;
    border: 1px solid var(--qc-line);
    background: #f5f8ff;
}
.qchat-header h2
{
    margin: 0;
    color: var(--qc-navy);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.6px;
}
.qchat-icon-button
{
    margin-left: auto;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--qc-muted);
    line-height: 1;
}
.qchat-icon-button:hover
{
    background: #f2f6ff;
    color: var(--qc-blue);
}
.qchat-toolbar
{
    padding: 8px 25px 12px;
    border-bottom: 1px solid var(--qc-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}
.qchat-panel:has(.qchat-welcome:not([hidden])) .qchat-toolbar,
.qchat-panel:has(.qchat-ticket-view:not([hidden])) .qchat-toolbar
{
    display: none;
}
.qchat-toolbar i
{
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #38a745;
}
.qchat-toolbar button, .qchat-back, .qchat-ticket-success button
{
    border: none;
    background: none;
    color: var(--qc-blue);
    padding: 4px;
}
.qchat-chat-view
{
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}
.qchat-log
{
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    background: linear-gradient(#f7faff, white 200px);
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.qchat-log:has(.qchat-welcome:not([hidden]))
{
    padding-top: 0;
    padding-bottom: 14px;
    background: radial-gradient(ellipse at 50% 23%, #eaf3ff 0, #f6faff 36%, white 72%);
}
.qchat-welcome
{
    min-height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.qchat-mascot
{
    width: 206px;
    height: 206px;
    margin: 6px auto 10px;
    flex-shrink: 0;
    animation: qchat-float 6s ease-in-out infinite;
}
.qchat-mascot img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qchat-eyebrow
{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--qc-line);
    border-radius: 30px;
    background: #ffffffd9;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--qc-blue);
}
.qchat-eyebrow i
{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22b18c;
}
.qchat-welcome h3, .qchat-ticket-view h3
{
    margin: 15px 0 10px;
    color: var(--qc-navy);
    font-size: 36px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -1.3px;
}
.qchat-welcome p, .qchat-ticket-intro
{
    margin: 0 0 25px;
    color: var(--qc-muted);
    font-size: 15px;
    line-height: 1.75;
}
.qchat-suggestions
{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
}
.qchat-suggestions button
{
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    min-height: 44px;
    background: white;
    border: 1px solid var(--qc-line);
    border-radius: 30px;
    color: var(--qc-muted);
    text-align: left;
    font-size: 12px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.qchat-suggestions .qchat-suggestion-featured
{
    flex-basis: 100%;
    min-height: 56px;
    border-radius: 15px;
    background: #f4f7ff;
    color: var(--qc-navy);
    font-size: 14px;
}
.qchat-suggestion-featured svg
{
    color: var(--qc-blue);
    flex-shrink: 0;
    width: 21px;
    height: 21px;
}
.qchat-suggestion-featured span
{
    margin-left: auto;
    font-size: 19px;
}
.qchat-suggestions button:hover
{
    border-color: #87b9f4;
    background: #f3f8ff;
    box-shadow: 0 3px 10px #195ce408;
}
.qchat-bubble
{
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 13px 15px;
    border: 1px solid #e6edfa;
    border-radius: 18px 18px 18px 5px;
    background: #f4f7fc;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.65;
}
.qchat-bubble-user
{
    margin-left: 35px;
    color: white;
    background: linear-gradient(120deg, #2169ed, #1955ce);
    border-color: transparent;
    border-radius: 18px 18px 5px 18px;
}
.qchat-source
{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d9e3f2;
}
.qchat-sources
{
    margin-top: 10px;
    white-space: normal;
}
.qchat-sources summary
{
    width: fit-content;
    color: #0b56b9;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.qchat-sources summary:focus-visible
{
    outline: 2px solid var(--qc-blue);
    outline-offset: 3px;
    border-radius: 3px;
}
.qchat-source p
{
    margin: 0 0 8px;
}
.qchat-source a
{
    display: inline-block;
    color: #0b56b9;
    text-decoration: underline;
    font-size: 12px;
    font-weight: 600;
}
.qchat-feedback
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -4px 0 19px;
    color: var(--qc-muted);
    font-size: 11px;
}
.qchat-followup
{
    flex-basis: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f0f5fc;
    color: var(--qc-navy);
    font-size: 12px;
    line-height: 1.6;
}
.qchat-followup p
{
    margin: 0 0 8px;
}
.qchat-typing
{
    display: flex;
    gap: 5px;
    width: fit-content;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 15px 15px 15px 4px;
    background: #f0f5fc;
}
.qchat-typing span
{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6485ae;
    animation: qchat-typing 1.2s ease-in-out infinite;
}
.qchat-typing span:nth-child(2)
{
    animation-delay: .15s;
}
.qchat-typing span:nth-child(3)
{
    animation-delay: .3s;
}
@keyframes qchat-typing
{
    0%, 60%, 100%
    {
        opacity: .4;
        transform: translateY(0);
    }
    30%
    {
        opacity: 1;
        transform: translateY(-3px);
    }
}
@media (prefers-reduced-motion: reduce)
{
    .qchat-typing span
    {
        animation: none;
        opacity: .7;
    }
}
.qchat-feedback button
{
    border: 1px solid var(--qc-line);
    border-radius: 7px;
    background: white;
    color: var(--qc-muted);
    padding: 4px 9px;
}
.qchat-feedback button[aria-pressed="true"]
{
    border-color: var(--qc-blue);
    color: var(--qc-blue);
    background: #eef6ff;
}
.qchat-status
{
    min-height: 0;
    margin: 0 25px;
    color: var(--qc-muted);
    font-size: 12px;
}
.qchat-status:not(:empty)
{
    padding: 8px 0;
}
.qchat-composer
{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    margin: 8px 18px 16px;
    border: 1px solid var(--qc-line);
    border-radius: 18px;
    padding: 9px 9px 9px 15px;
    background: white;
    box-shadow: 0 3px 12px #194f9a06;
    transition: border-color .2s, box-shadow .2s;
}
.qchat-composer:focus-within
{
    border-color: #8ab2f6;
    box-shadow: 0 0 0 3px #195ce409;
}
.qchat-composer textarea
{
    flex: 1;
    width: 0;
    border: none;
    padding: 5px 0;
    color: var(--qc-navy);
    outline: none;
    resize: none;
    font-size: 13px;
    line-height: 1.45;
    background: white;
}
.qchat-composer textarea::placeholder
{
    color: var(--qc-muted);
    opacity: 1;
}
.qchat .qchat-composer textarea:focus-visible
{
    outline: none;
}
.qchat-composer button
{
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: var(--qc-blue);
    color: white;
}
.qchat-composer button:hover, .qchat-submit-ticket:hover
{
    background: #124fc9;
}
.qchat-footer
{
    flex-shrink: 0;
    padding: 0 22px 18px;
    background: white;
}
.qchat-footer-links
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.qchat-disclosure summary
{
    padding: 5px 0;
    color: var(--qc-muted);
    font-size: 10px;
    cursor: pointer;
    list-style: none;
}
.qchat-disclosure summary::-webkit-details-marker
{
    display: none;
}
.qchat-disclosure summary:hover, .qchat-contact:hover
{
    color: var(--qc-blue);
}
.qchat-disclosure[open] p
{
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--qc-line);
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 32px #1034671c;
    color: var(--qc-muted);
    font-size: 11px;
    line-height: 1.7;
}
.qchat-contact
{
    border: none;
    background: none;
    padding: 5px 0;
    color: var(--qc-muted);
    font-size: 11px !important;
    white-space: nowrap;
}
.qchat-contact span
{
    font-size: 16px;
    margin-left: 5px;
}
.qchat-footer a, .qchat-check a
{
    text-decoration: underline;
}
.qchat-ticket-view
{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 22px 18px;
    background: linear-gradient(#f8faff, white 240px);
}
.qchat-ticket-view h3
{
    font-size: 23px;
}
.qchat-ticket-intro
{
    margin-bottom: 12px;
}
.qchat-ticket-view label
{
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 11px 0 5px;
}
.qchat-ticket-view input:not([type="checkbox"]), .qchat-ticket-view textarea
{
    width: 100%;
    border: 1px solid var(--qc-line);
    border-radius: 11px;
    padding: 10px 12px;
    background: white;
    color: var(--qc-navy);
    font-size: 13px;
}
.qchat-ticket-view textarea
{
    resize: vertical;
}
.qchat-ticket-view .qchat-check
{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    font-weight: 400;
    color: var(--qc-muted);
}
.qchat-check input
{
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--qc-blue);
}
.qchat-submit-ticket
{
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: var(--qc-blue);
    color: white;
    border-radius: 10px;
    padding: 11px 14px;
    margin-top: 13px;
    font-weight: 600 !important;
}
.qchat-ticket-status
{
    color: #a43424;
    font-size: 12px;
}
.qchat-ticket-success
{
    padding: 25px 0;
    text-align: center;
}
.qchat-ticket-success > span
{
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eaf8ec;
    color: #24843b;
    font-size: 25px;
}
.qchat-ticket-success p
{
    overflow-wrap: anywhere;
    font-size: 13px;
}
.qchat-sr-only, .qchat-trap
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
@keyframes qchat-enter
{
    from
    {
        opacity: 0;
        transform: translateY(12px);
    }
    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes qchat-float
{
    0%, 100%
    {
        transform: translateY(0) rotate(-2deg);
    }
    50%
    {
        transform: translateY(-6px) rotate(1deg);
    }
}
@media (max-height: 850px)
{
    .qchat-mascot
    {
        width: 150px;
        height: 150px;
        margin-top: 0;
        margin-bottom: 4px;
    }
    .qchat-welcome h3
    {
        margin-top: 12px;
        font-size: 32px;
    }
    .qchat-welcome p
    {
        margin-bottom: 18px;
    }
}
@media (max-width: 520px)
{
    .qchat
    {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }
    .qchat-panel
    {
        position: fixed;
        inset: max(10px, env(safe-area-inset-top)) 10px auto;
        width: auto;
        max-width: none;
        height: calc(100dvh - max(10px, env(safe-area-inset-top)) - 10px - env(safe-area-inset-bottom));
        min-height: 0;
        border-radius: 26px;
    }
    .qchat-launcher
    {
        padding-right: 16px;
    }
    .qchat:has(.qchat-panel:not([hidden])) .qchat-launcher
    {
        visibility: hidden;
    }
    .qchat-mascot
    {
        width: 190px;
        height: 190px;
    }
    .qchat-header
    {
        padding: 20px 20px 14px;
    }
    .qchat-log
    {
        padding-right: 20px;
        padding-left: 20px;
    }
    .qchat-composer
    {
        margin-right: 14px;
        margin-left: 14px;
    }
    .qchat-composer textarea
    {
        min-height: 46px;
    }
    .qchat-ticket-view input:not([type="checkbox"]), .qchat-ticket-view textarea, .qchat-composer textarea
    {
        font-size: 16px;
    }
}
@media (max-height: 700px)
{
    .qchat-mascot
    {
        width: 112px;
        height: 112px;
    }
    .qchat-welcome h3
    {
        margin: 10px 0 6px;
        font-size: 28px;
    }
    .qchat-welcome p
    {
        margin-bottom: 14px;
        font-size: 13px;
    }
    .qchat-eyebrow
    {
        padding: 6px 10px;
    }
}
@media (max-height: 500px)
{
    .qchat-panel
    {
        position: fixed;
        top: 10px;
        right: 10px;
        bottom: auto;
        height: calc(100dvh - 20px);
        max-width: calc(100vw - 20px);
    }
    .qchat:has(.qchat-panel:not([hidden])) .qchat-launcher
    {
        visibility: hidden;
    }
    .qchat-mascot
    {
        display: none;
    }
    .qchat-welcome
    {
        padding-top: 8px;
    }
}
@media (max-width: 360px) and (max-height: 700px)
{
    .qchat-mascot
    {
        width: 80px;
        height: 80px;
    }
    .qchat-welcome h3
    {
        font-size: 26px;
        margin-top: 8px;
    }
    .qchat-welcome p
    {
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .qchat-suggestions button
    {
        padding: 10px 12px;
    }
    .qchat-suggestions .qchat-suggestion-featured
    {
        gap: 8px;
        min-height: 48px;
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    .qchat *, .qchat *::before, .qchat *::after
    {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
