.whc-widget,
.whc-widget * {
    box-sizing: border-box;
}

.whc-widget {
    --whc-ink: #000000;
    --whc-green: #354F45;
    --whc-sky: #8ECAE6;
    --whc-tan: #D8AB74;
    --whc-teal: #354F45;
    --whc-orange: #FF9F1C;
    --whc-ivory: #FEFAE0;
    --whc-white: #fff;
    --whc-line: rgba(53, 79, 69, .2);
    --whc-soft: #FEFAE0;
    position: fixed;
    right: 28px;
    bottom: clamp(64px, 10vh, 110px);
    z-index: 999990;
    color: var(--whc-ink);
    font-family: Verdana, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.whc-launcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
    min-height: 82px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--whc-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.whc-launcher:hover,
.whc-launcher:focus-visible {
    outline: none;
    transform: translateY(-3px);
}

.whc-launcher-label {
    display: grid;
    min-height: 54px;
    padding: 0 18px;
    place-items: center;
    border: 1px solid rgba(53, 79, 69, .2);
    border-radius: 999px;
    background: var(--whc-white);
    box-shadow: 0 12px 30px rgba(53, 79, 69, .18);
    white-space: nowrap;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.whc-launcher-boat {
    display: grid;
    width: 138px;
    height: 82px;
    flex: 0 0 138px;
    place-items: center;
    overflow: visible;
    filter: drop-shadow(0 12px 16px rgba(53, 79, 69, .2));
}

.whc-launcher-boat img {
    display: block;
    width: 138px;
    height: 82px;
    object-fit: contain;
}

.whc-launcher:hover .whc-launcher-label,
.whc-launcher:focus-visible .whc-launcher-label {
    border-color: var(--whc-orange);
    box-shadow: 0 15px 36px rgba(53, 79, 69, .23);
}

.whc-panel {
    position: absolute;
    right: 0;
    bottom: 96px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: 420px;
    height: min(640px, calc(100vh - 180px));
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(53, 79, 69, .16);
    border-radius: 8px;
    background: var(--whc-white);
    box-shadow: 0 24px 70px rgba(53, 79, 69, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(.985);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease;
}

.whc-widget.is-open .whc-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whc-widget.is-open .whc-launcher {
    opacity: 0;
    pointer-events: none;
}

.whc-panel-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--whc-line);
    background: var(--whc-white);
}

.whc-header-actions {
    display: flex;
    gap: 4px;
}

.whc-icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--whc-ink);
    cursor: pointer;
}

.whc-icon-button:hover,
.whc-icon-button:focus-visible {
    background: var(--whc-soft);
    color: var(--whc-green);
    outline: none;
}

.whc-icon-button:disabled {
    opacity: .28;
    cursor: default;
}

.whc-header-actions .whc-icon-button {
    grid-auto-flow: column;
    width: auto;
    min-width: 52px;
    padding: 0 6px;
    gap: 3px;
    border-radius: 4px;
    font: 700 9px/1 Verdana, Arial, sans-serif;
}

.whc-header-actions .whc-icon-button svg {
    width: 15px;
    height: 15px;
}

.whc-icon-button svg,
.whc-starter-list svg,
.whc-composer button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.whc-panel-brand {
    min-width: 0;
    text-align: center;
}

.whc-panel-brand strong,
.whc-panel-brand span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whc-panel-brand strong {
    color: var(--whc-ink);
    font-size: 15px;
}

.whc-panel-brand span {
    color: var(--whc-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.whc-panel-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--whc-white);
}

.whc-home-view {
    padding: 22px 24px 20px;
    text-align: center;
}

.whc-welcome-visual {
    display: grid;
    width: 164px;
    height: 74px;
    margin: 0 auto 10px;
    place-items: center;
}

.whc-welcome-visual img {
    display: block;
    width: 160px;
    height: 66px;
    object-fit: contain;
}

.whc-eyebrow {
    margin: 0 0 5px;
    color: var(--whc-green) !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.whc-home-view h2 {
    margin: 0 0 10px;
    color: var(--whc-ink) !important;
    font: 700 28px/1.18 Verdana, Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.whc-home-view > p:not(.whc-eyebrow) {
    margin: 0 auto 18px;
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

.whc-starter-list {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.whc-starter-list button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--whc-line);
    border-radius: 8px;
    background: var(--whc-white);
    color: var(--whc-ink);
    cursor: pointer;
    font: 700 13px/1.35 Verdana, Arial, sans-serif;
    letter-spacing: 0;
    text-align: left;
}

.whc-starter-list button:hover,
.whc-starter-list button:focus-visible {
    border-color: var(--whc-orange);
    background: var(--whc-soft);
    color: var(--whc-green);
    outline: none;
}

.whc-starter-list svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.whc-contact-option {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    padding: 9px 13px;
    border-radius: 8px;
    background: var(--whc-orange);
    color: var(--whc-white) !important;
    text-align: left;
    text-decoration: none !important;
}

.whc-contact-option span,
.whc-contact-option strong,
.whc-contact-option small {
    display: block;
}

.whc-contact-option strong {
    color: var(--whc-white) !important;
    font-size: 12px;
}

.whc-contact-option small {
    margin-top: 2px;
    color: var(--whc-white) !important;
    font-size: 11px;
    font-weight: 400;
}

.whc-contact-option svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.whc-contact-option:hover,
.whc-contact-option:focus-visible {
    background: var(--whc-orange);
    color: var(--whc-white) !important;
    box-shadow: 0 10px 24px rgba(255, 159, 28, .24);
    transform: translateY(-2px);
    outline: none;
}

.whc-human-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--whc-ink) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.whc-human-link:hover,
.whc-human-link:focus-visible {
    color: var(--whc-green) !important;
}

.whc-chat-view {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 16px 14px;
    background: var(--whc-soft);
}

.whc-messages {
    display: grid;
    align-content: start;
    gap: 12px;
}

.whc-message {
    display: grid;
    max-width: 88%;
    gap: 6px;
}

.whc-message--user {
    justify-self: end;
}

.whc-message--assistant {
    justify-self: start;
}

.whc-message-bubble {
    padding: 11px 13px;
    border-radius: 8px;
    background: var(--whc-white);
    color: #000;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.whc-message-bubble a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.whc-message-bubble a:hover,
.whc-message-bubble a:focus-visible {
    color: var(--whc-green);
}

.whc-message--user .whc-message-bubble {
    background: var(--whc-green);
    color: var(--whc-white);
}

.whc-message-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.whc-message-sources a,
.whc-message-human {
    color: var(--whc-ink) !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline !important;
}

.whc-message-human {
    justify-self: start;
}

.whc-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.whc-suggestions button {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--whc-green);
    border-radius: 999px;
    background: var(--whc-white);
    color: var(--whc-ink);
    cursor: pointer;
    font: 700 10px/1.3 Verdana, Arial, sans-serif;
}

.whc-suggestions button:hover,
.whc-suggestions button:focus-visible {
    background: var(--whc-green);
    color: var(--whc-white);
    outline: none;
}

.whc-typing {
    display: flex;
    width: 58px;
    gap: 5px;
    padding: 13px;
    border-radius: 8px;
    background: var(--whc-white);
}

.whc-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--whc-orange);
    animation: whc-typing 1s ease-in-out infinite;
}

.whc-typing span:nth-child(2) { animation-delay: .14s; }
.whc-typing span:nth-child(3) { animation-delay: .28s; }

.whc-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: end;
    gap: 8px;
    padding: 11px 12px;
    border-top: 1px solid var(--whc-line);
    background: var(--whc-white);
}

.whc-composer textarea {
    width: 100%;
    min-height: 46px;
    max-height: 112px;
    margin: 0;
    padding: 12px 13px;
    resize: none;
    border: 1px solid var(--whc-line);
    border-radius: 8px;
    background: var(--whc-white);
    color: #000;
    font: 400 13px/1.45 Verdana, Arial, sans-serif;
    letter-spacing: 0;
}

.whc-composer textarea:focus {
    border-color: var(--whc-sky);
    box-shadow: 0 0 0 3px rgba(142, 202, 230, .3);
    outline: none;
}

.whc-composer button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--whc-orange);
    color: var(--whc-white);
    cursor: pointer;
}

.whc-composer button:hover,
.whc-composer button:focus-visible {
    background: var(--whc-orange);
    box-shadow: 0 8px 20px rgba(255, 159, 28, .24);
    outline: none;
}

.whc-composer button:disabled {
    opacity: .5;
    cursor: wait;
}

.whc-disclaimer {
    margin: 0 !important;
    padding: 7px 14px 9px;
    background: var(--whc-white);
    color: #000 !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.whc-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.whc-widget .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes whc-typing {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 767px) {
    .whc-widget {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .wakehouse-inner-page .whc-widget {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .whc-launcher {
        min-height: 72px;
        max-width: calc(100vw - 16px);
        gap: 8px;
        font-size: 12px;
    }

    .whc-launcher-label {
        min-height: 48px;
        padding: 0 12px;
    }

    .whc-launcher-boat {
        width: 112px;
        height: 68px;
        flex-basis: 112px;
    }

    .whc-launcher-boat img {
        width: 112px;
        height: 68px;
    }

    .whc-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        transform-origin: bottom center;
    }

    .whc-panel-header {
        min-height: calc(64px + env(safe-area-inset-top));
        padding: max(9px, env(safe-area-inset-top)) 10px 9px;
        gap: 6px;
    }

    .whc-icon-button {
        width: 40px;
        height: 40px;
    }

    .whc-header-actions .whc-icon-button {
        min-width: 45px;
        padding: 0 4px;
        font-size: 8px;
    }

    .whc-panel-brand strong {
        font-size: 13px;
    }

    .whc-home-view {
        padding: 12px 17px 8px;
    }

    .whc-welcome-visual {
        width: 122px;
        height: 48px;
        margin-bottom: 3px;
    }

    .whc-welcome-visual img {
        width: 120px;
        height: 46px;
    }

    .whc-home-view h2 {
        font-size: 23px !important;
    }

    .whc-home-view > p:not(.whc-eyebrow) {
        margin-bottom: 10px;
        font-size: 12px !important;
    }

    .whc-starter-list {
        gap: 5px;
        margin-bottom: 7px;
    }

    .whc-starter-list button {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .whc-human-link {
        min-height: 32px;
        font-size: 10px;
    }

    .whc-chat-view {
        padding: 13px 11px;
    }

    .whc-message {
        max-width: 92%;
    }

    .whc-message-bubble {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .whc-disclaimer {
        padding-bottom: max(9px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 359px) {
    .whc-launcher {
        gap: 5px;
        font-size: 10.5px;
    }

    .whc-launcher-label {
        padding: 0 9px;
    }

    .whc-launcher-boat {
        width: 96px;
        flex-basis: 96px;
    }

    .whc-launcher-boat img {
        width: 96px;
    }
}

@media (max-width: 380px) {
    .whc-panel-brand span {
        display: none;
    }

    .whc-panel-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whc-launcher,
    .whc-panel,
    .whc-typing span {
        transition: none;
        animation: none;
    }
}
