#wsg-chat-widget,
#wsg-chat-widget * {
    box-sizing: border-box;
}

#wsg-chat-widget [hidden] {
    display: none !important;
}

#wsg-chat-widget {
    --wsg-chat-ink: #f7f3ec;
    --wsg-chat-muted: #b8b4ad;
    --wsg-chat-amber: #ff8f1c;
    --wsg-chat-amber-light: #ffab4f;
    --wsg-chat-line: rgba(255, 255, 255, 0.12);
    --wsg-chat-panel: #171716;
    position: fixed;
    z-index: 8000;
    right: max(22px, env(safe-area-inset-right));
    bottom: calc(max(22px, env(safe-area-inset-bottom)) + var(--wsg-chat-cookie-offset, 0px));
    color: var(--wsg-chat-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

#wsg-chat-widget button,
#wsg-chat-widget textarea {
    font: inherit;
}

#wsg-chat-widget button:focus-visible,
#wsg-chat-widget a:focus-visible,
#wsg-chat-widget textarea:focus-visible,
#wsg-chat-widget [tabindex="0"]:focus-visible,
#wsg-chat-widget summary:focus-visible {
    outline: 2px solid var(--wsg-chat-amber-light);
    outline-offset: 3px;
}

#wsg-chat-widget .wsg-chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(255, 143, 28, 0.72);
    border-radius: 3px;
    color: #17130f;
    background: var(--wsg-chat-amber);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 160ms ease, transform 160ms ease;
}

#wsg-chat-widget .wsg-chat-launcher:hover {
    background: var(--wsg-chat-amber-light);
    transform: translateY(-2px);
}

#wsg-chat-widget .wsg-chat-launcher-mark {
    position: relative;
    width: 17px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

#wsg-chat-widget .wsg-chat-launcher-mark::after {
    position: absolute;
    right: 2px;
    bottom: -4px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    content: "";
    transform: skewY(-38deg);
}

#wsg-chat-widget .wsg-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    width: min(340px, calc(100vw - 28px));
    max-height: min(420px, calc(100dvh - 96px - env(safe-area-inset-bottom) - var(--wsg-chat-cookie-offset, 0px)));
    overflow: hidden;
    border: 1px solid rgba(255, 143, 28, 0.28);
    border-radius: 5px;
    background: var(--wsg-chat-panel);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
    animation: wsg-chat-appear 180ms ease-out both;
}

#wsg-chat-widget .wsg-chat-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--wsg-chat-line);
    background: #111110;
}

#wsg-chat-widget .wsg-chat-eyebrow {
    display: block;
    margin-bottom: 1px;
    color: var(--wsg-chat-amber);
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#wsg-chat-widget .wsg-chat-heading h2 {
    margin: 0;
    color: var(--wsg-chat-ink);
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-transform: uppercase;
}

#wsg-chat-widget .wsg-chat-close {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--wsg-chat-line);
    border-radius: 2px;
    color: var(--wsg-chat-ink);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

#wsg-chat-widget .wsg-chat-close:hover {
    border-color: var(--wsg-chat-amber);
    color: var(--wsg-chat-amber);
}

#wsg-chat-widget .wsg-chat-notice {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-bottom: 1px solid var(--wsg-chat-line);
    color: #d1ccc3;
    background: rgba(255, 143, 28, 0.055);
}

#wsg-chat-widget .wsg-chat-notice p,
#wsg-chat-widget .wsg-chat-footer p,
#wsg-chat-widget .wsg-chat-meetings p {
    margin: 0;
}

#wsg-chat-widget .wsg-chat-notice p {
    font-size: 10px;
    line-height: 1.35;
}

#wsg-chat-widget .wsg-chat-notice-mark {
    display: grid;
    flex: 0 0 14px;
    place-items: center;
    width: 14px;
    height: 14px;
    border: 1px solid var(--wsg-chat-amber);
    border-radius: 50%;
    color: var(--wsg-chat-amber);
    font-family: Georgia, serif;
    font-size: 9px;
    font-weight: 700;
}

#wsg-chat-widget .wsg-chat-browse {
    flex: 0 0 auto;
    margin: 7px 11px 0;
    border: 1px solid var(--wsg-chat-line);
    border-radius: 3px;
    background: #1d1c1a;
}

#wsg-chat-widget .wsg-chat-browse > summary {
    position: relative;
    padding: 6px 27px 6px 9px;
    color: #f0e8dd;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    list-style: none;
}

#wsg-chat-widget .wsg-chat-browse > summary::-webkit-details-marker {
    display: none;
}

#wsg-chat-widget .wsg-chat-browse > summary::after {
    position: absolute;
    top: 50%;
    right: 9px;
    color: var(--wsg-chat-amber);
    content: "+";
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
}

#wsg-chat-widget .wsg-chat-browse[open] > summary {
    border-bottom: 1px solid var(--wsg-chat-line);
}

#wsg-chat-widget .wsg-chat-browse[open] > summary::after {
    content: "−";
}

#wsg-chat-widget .wsg-chat-all-topics {
    max-height: min(132px, 24dvh);
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #62594f transparent;
    scrollbar-width: thin;
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq:last-child {
    border-bottom: 0;
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq > summary {
    position: relative;
    padding: 7px 25px 7px 8px;
    color: #f0e8dd;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    list-style: none;
    transition: color 140ms ease, background-color 140ms ease;
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq > summary::-webkit-details-marker {
    display: none;
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq > summary::after {
    position: absolute;
    top: 50%;
    right: 7px;
    color: var(--wsg-chat-amber);
    content: "+";
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%);
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq[open] > summary {
    color: var(--wsg-chat-amber-light);
    background: rgba(255, 143, 28, 0.055);
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq[open] > summary::after {
    content: "−";
}

#wsg-chat-widget .wsg-chat-faq-answer {
    padding: 6px 8px 9px;
    border-top: 1px solid rgba(255, 143, 28, 0.16);
    color: #d6cec3;
    background: rgba(0, 0, 0, 0.12);
    overflow-wrap: anywhere;
}

#wsg-chat-widget .wsg-chat-faq-answer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

#wsg-chat-widget .wsg-chat-faq-answer a {
    display: inline-block;
    margin: 5px 8px 0 0;
    color: #ffd09e;
    font-size: 10px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 208, 158, 0.45);
    text-underline-offset: 2px;
    transition: color 140ms ease, text-decoration-color 140ms ease;
}

#wsg-chat-widget .wsg-chat-faq-answer a:hover {
    color: var(--wsg-chat-amber-light);
    text-decoration-color: currentColor;
}

#wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq > summary:hover {
    color: var(--wsg-chat-amber-light);
    background: rgba(255, 143, 28, 0.08);
}

#wsg-chat-widget .wsg-chat-browse > summary:hover {
    color: var(--wsg-chat-amber-light);
}

#wsg-chat-widget .wsg-chat-browse > summary,
#wsg-chat-widget .wsg-chat-browse > summary::after {
    transition: color 140ms ease;
}

#wsg-chat-widget .wsg-chat-faq-answer a:focus-visible {
    border-radius: 1px;
}

#wsg-chat-widget .wsg-chat-suggestions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

#wsg-chat-widget .wsg-chat-suggestions:empty {
    display: none;
}

#wsg-chat-widget .wsg-chat-suggestions button {
    flex: 0 0 auto;
    max-width: 230px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 143, 28, 0.42);
    border-radius: 2px;
    color: #f3d2ad;
    background: rgba(255, 143, 28, 0.07);
    cursor: pointer;
    font-size: 10px;
    line-height: 1.3;
    text-align: left;
}

#wsg-chat-widget .wsg-chat-suggestions button:hover {
    border-color: var(--wsg-chat-amber);
    background: rgba(255, 143, 28, 0.15);
}

#wsg-chat-widget .wsg-chat-transcript {
    min-height: 0;
    flex: 1 1 auto;
    padding: 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #62594f transparent;
    scrollbar-width: thin;
}

#wsg-chat-widget .wsg-chat-transcript:empty {
    padding-top: 0;
    padding-bottom: 0;
}

#wsg-chat-widget .wsg-chat-message {
    margin: 0 0 9px;
    padding: 8px 10px;
    border: 1px solid var(--wsg-chat-line);
    border-radius: 5px;
    color: var(--wsg-chat-ink);
    background: #242320;
    overflow-wrap: anywhere;
}

#wsg-chat-widget .wsg-chat-message--visitor {
    margin-left: 20px;
    background: rgba(255, 143, 28, 0.09);
}

#wsg-chat-widget .wsg-chat-message strong {
    display: block;
    margin-bottom: 3px;
    color: var(--wsg-chat-amber-light);
    font-size: 10px;
}

#wsg-chat-widget .wsg-chat-message p {
    margin: 0 0 4px;
    color: var(--wsg-chat-ink);
    font-size: 12px;
}

#wsg-chat-widget .wsg-chat-message a {
    display: block;
    margin-top: 5px;
    color: #ffd09e;
    font-size: 11px;
}

#wsg-chat-widget .wsg-chat-screenreader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#wsg-chat-widget .wsg-chat-status {
    min-height: 0;
}

#wsg-chat-widget .wsg-chat-form {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 12px 5px;
    border-top: 1px solid var(--wsg-chat-line);
    background: #141413;
}

#wsg-chat-widget .wsg-chat-entry {
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(255, 143, 28, 0.66);
    border-radius: 3px;
    background: #201e1b;
    box-shadow: inset 3px 0 0 var(--wsg-chat-amber);
}

#wsg-chat-widget .wsg-chat-entry:focus-within {
    border-color: var(--wsg-chat-amber);
}

#wsg-chat-widget .wsg-chat-entry textarea {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    max-height: 72px;
    padding: 8px 10px;
    resize: none;
    border: 0;
    outline: 0;
    color: var(--wsg-chat-ink);
    background: transparent;
    font-size: 12px;
    line-height: 1.4;
}

#wsg-chat-widget .wsg-chat-entry textarea::placeholder {
    color: #aaa197;
}

#wsg-chat-widget .wsg-chat-entry textarea:focus-visible {
    outline: 0;
}

#wsg-chat-widget .wsg-chat-entry button {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 30px;
    margin: 3px;
    padding: 0 9px;
    border: 0;
    border-radius: 2px;
    color: #18130e;
    background: var(--wsg-chat-amber);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

#wsg-chat-widget .wsg-chat-entry button:hover {
    background: var(--wsg-chat-amber-light);
}

#wsg-chat-widget .wsg-chat-form-meta {
    display: flex;
    justify-content: flex-end;
    min-height: 19px;
    padding-top: 1px;
}

#wsg-chat-widget .wsg-chat-reset {
    padding: 1px 0;
    border: 0;
    color: #d4c3ae;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#wsg-chat-widget .wsg-chat-reset:hover {
    color: var(--wsg-chat-amber-light);
}

#wsg-chat-widget .wsg-chat-meetings {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid var(--wsg-chat-line);
    background: #1c1a17;
}

#wsg-chat-widget .wsg-chat-meetings p {
    margin-bottom: 1px;
    color: #e7ded2;
    font-size: 11px;
}

#wsg-chat-widget .wsg-chat-meetings a {
    display: block;
    padding: 6px 8px;
    border-left: 2px solid var(--wsg-chat-amber);
    color: #ffd09e;
    background: rgba(255, 143, 28, 0.07);
    font-size: 11px;
    text-decoration: none;
}

#wsg-chat-widget .wsg-chat-meetings a:hover {
    color: #fff;
    background: rgba(255, 143, 28, 0.14);
}

#wsg-chat-widget .wsg-chat-footer {
    flex: 0 0 auto;
    padding: 5px 12px 7px;
    border-top: 1px solid var(--wsg-chat-line);
    color: #a9a39b;
    background: #111110;
}

#wsg-chat-widget .wsg-chat-footer p {
    font-size: 9px;
    line-height: 1.35;
}

@keyframes wsg-chat-appear {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    #wsg-chat-widget {
        right: max(14px, env(safe-area-inset-right));
        bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--wsg-chat-cookie-offset, 0px));
    }

    #wsg-chat-widget .wsg-chat-panel {
        position: fixed;
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(68px + env(safe-area-inset-bottom) + var(--wsg-chat-cookie-offset, 0px));
        width: min(340px, calc(100vw - 20px));
        max-height: min(58dvh, calc(100dvh - 88px - env(safe-area-inset-bottom) - var(--wsg-chat-cookie-offset, 0px)));
    }

    #wsg-chat-widget .wsg-chat-all-topics {
        max-height: min(96px, 18dvh);
    }
}

@media (prefers-reduced-motion: reduce) {
    #wsg-chat-widget .wsg-chat-launcher,
    #wsg-chat-widget .wsg-chat-browse > summary,
    #wsg-chat-widget .wsg-chat-all-topics .wsg-chat-faq > summary,
    #wsg-chat-widget .wsg-chat-faq-answer a {
        transition: none;
    }

    #wsg-chat-widget .wsg-chat-panel {
        animation: none;
    }
}
