/*
 * AI storefront assistant styles.
 * Every selector is scoped to #do-wwe-ai-chat to avoid theme conflicts.
 */

#do-wwe-ai-chat,
#do-wwe-ai-chat * {
    box-sizing: border-box;
}

#do-wwe-ai-chat.do-wwe-ai-chat {
    --do-wwe-ai-theme: #168447;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147482500;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #15211a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    isolation: isolate;
}

#do-wwe-ai-chat.do-wwe-ai-chat--left {
    right: auto;
    left: 24px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#do-wwe-ai-chat button,
#do-wwe-ai-chat input,
#do-wwe-ai-chat textarea {
    font: inherit;
}

#do-wwe-ai-chat button {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 0 0 auto;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(20, 151, 83, 0.9);
    border-radius: 50%;
    background: linear-gradient(145deg, #20c66b 0%, #0d9e50 100%);
    box-shadow: 0 14px 34px rgba(13, 126, 66, 0.32), 0 4px 12px rgba(15, 23, 42, 0.16);
    color: #ffffff;
    line-height: 1;
    outline: none;
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#do-wwe-ai-chat.do-wwe-ai-chat--left .do-wwe-ai-chat__launcher {
    margin-right: auto;
    margin-left: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__launcher:focus-visible {
    box-shadow: 0 18px 42px rgba(13, 126, 66, 0.38), 0 5px 14px rgba(15, 23, 42, 0.18);
    filter: brightness(1.03);
    transform: translateY(-2px) scale(1.02);
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher:focus-visible {
    outline: 3px solid rgba(32, 198, 107, 0.28);
    outline-offset: 4px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher:active {
    transform: translateY(0) scale(0.97);
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher::before,
#do-wwe-ai-chat .do-wwe-ai-chat__launcher::after,
#do-wwe-ai-chat .do-wwe-ai-chat__header-close::before,
#do-wwe-ai-chat .do-wwe-ai-chat__header-close::after,
#do-wwe-ai-chat .do-wwe-ai-chat__composer button::before,
#do-wwe-ai-chat .do-wwe-ai-chat__composer button::after {
    display: none;
    content: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-icon {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0;
    color: inherit;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-icon--close {
    opacity: 0;
    font-size: 34px;
    font-weight: 300;
    transform: rotate(-90deg) scale(0.75);
}

#do-wwe-ai-chat.is-open .do-wwe-ai-chat__launcher-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.75);
}

#do-wwe-ai-chat.is-open .do-wwe-ai-chat__launcher-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-pulse {
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 2px solid rgba(32, 198, 107, 0.5);
    border-radius: 50%;
    animation: do-wwe-ai-pulse 2.4s ease-out infinite;
}

#do-wwe-ai-chat.is-open .do-wwe-ai-chat__launcher-pulse {
    display: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__panel[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    display: grid;
    grid-template-rows: auto minmax(72px, 1fr) auto auto auto auto auto;
    width: min(390px, calc(100vw - 32px));
    height: min(650px, calc(100dvh - 112px));
    min-height: min(480px, calc(100dvh - 112px));
    max-height: calc(100dvh - 112px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(215, 226, 218, 0.95);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 34, 23, 0.24), 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #15211a;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#do-wwe-ai-chat.do-wwe-ai-chat--left .do-wwe-ai-chat__panel {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

#do-wwe-ai-chat .do-wwe-ai-chat__panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#do-wwe-ai-chat .do-wwe-ai-chat__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    margin: 0;
    padding: 14px 56px 14px 16px;
    border: 0;
    background: linear-gradient(135deg, #112d1d 0%, #174a2c 100%);
    color: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__avatar svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-icon img,
#do-wwe-ai-chat .do-wwe-ai-chat__avatar img,
#do-wwe-ai-chat .do-wwe-ai-chat__message-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity strong {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.2;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50e78f;
    box-shadow: 0 0 0 3px rgba(80, 231, 143, 0.16);
}

#do-wwe-ai-chat .do-wwe-ai-chat__header-close {
    position: absolute;
    top: 50%;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 150ms ease, color 150ms ease;
}

#do-wwe-ai-chat .do-wwe-ai-chat__header-close:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__header-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 0;
    margin: 0;
    padding: 18px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #f5faf6 0%, #fbfdfb 100%);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd9ce transparent;
}

#do-wwe-ai-chat.is-onboarding .do-wwe-ai-chat__messages {
    display: none;
}

#do-wwe-ai-chat.is-onboarding .do-wwe-ai-chat__onboarding {
    max-height: calc(100dvh - 175px);
}

#do-wwe-ai-chat .do-wwe-ai-chat__messages::-webkit-scrollbar {
    width: 7px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__messages::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #cbd9ce;
}

#do-wwe-ai-chat .do-wwe-ai-chat__message {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__message--user {
    justify-content: flex-end;
}

#do-wwe-ai-chat .do-wwe-ai-chat__message-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0;
    border-radius: 9px;
    background: #dcebe0;
    color: #245c38;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

#do-wwe-ai-chat .do-wwe-ai-chat__message--user .do-wwe-ai-chat__message-avatar {
    background: #173c25;
    color: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__bubble {
    width: fit-content;
    max-width: calc(100% - 44px);
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #e0e8e2;
    border-radius: 16px 16px 16px 5px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(20, 45, 29, 0.06);
    color: #263b2d;
    overflow-wrap: anywhere;
}

#do-wwe-ai-chat .do-wwe-ai-chat__message--user .do-wwe-ai-chat__bubble {
    border-color: #1b7241;
    border-radius: 16px 16px 5px 16px;
    background: linear-gradient(135deg, #218c50 0%, #156b3a 100%);
    box-shadow: 0 5px 13px rgba(21, 107, 58, 0.18);
    color: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__bubble p {
    margin: 0 0 8px;
    padding: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.52;
}

#do-wwe-ai-chat .do-wwe-ai-chat__bubble p:last-child {
    margin-bottom: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__typing {
    min-width: 62px;
    padding: 13px 15px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__typing > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__typing i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #77927f;
    animation: do-wwe-ai-typing 1.1s ease-in-out infinite;
}

#do-wwe-ai-chat .do-wwe-ai-chat__typing i:nth-child(2) {
    animation-delay: 140ms;
}

#do-wwe-ai-chat .do-wwe-ai-chat__typing i:nth-child(3) {
    animation-delay: 280ms;
}

#do-wwe-ai-chat .do-wwe-ai-chat__products {
    display: grid;
    gap: 8px;
    width: min(270px, 100%);
    margin: 12px 0 0;
    padding: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 9px;
    border: 1px solid #dce8df;
    border-radius: 13px;
    background: #fbfdfb;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-image {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eef4ef;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-body {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 5px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #183e27;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-title:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__product-title:focus-visible {
    color: #0e7f42;
    text-decoration: underline;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5a6c60;
    font-size: 10px;
    font-weight: 650;
}

#do-wwe-ai-chat .do-wwe-ai-chat__stock::before {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9aa99e;
    content: "";
}

#do-wwe-ai-chat .do-wwe-ai-chat__stock--instock::before {
    background: #22a958;
}

#do-wwe-ai-chat .do-wwe-ai-chat__stock--outofstock::before {
    background: #d14949;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-price {
    color: #183e27;
    font-size: 11px;
    font-weight: 800;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-link {
    width: fit-content;
    color: #0d8142;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-link:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__product-link:focus-visible {
    text-decoration: underline;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-enquire {
    width: fit-content;
    margin: 0;
    padding: 0;
    color: #0d8142;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-enquire:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__product-enquire:focus-visible {
    color: #0a6534;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border-top: 1px solid #e2ebe4;
    background: #ffffff;
    min-height: 0;
    max-height: min(370px, calc(100dvh - 205px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 14px;
    border-top: 1px solid #e2ebe4;
    background: #f4fbf6;
    color: #27643d;
    font-size: 11px;
    line-height: 1.35;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity button {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #187642;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

#do-wwe-ai-chat .do-wwe-ai-chat__identity button:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__identity button:focus-visible {
    color: #0e542d;
    outline: 0;
    text-decoration-thickness: 2px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding-copy {
    display: grid;
    gap: 2px;
    margin-bottom: 2px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding-copy strong {
    color: #193d27;
    font-size: 14px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding-copy span {
    color: #68766d;
    font-size: 12px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding label {
    display: grid;
    gap: 5px;
    margin: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding label[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding label > span {
    color: #324a39;
    font-size: 11px;
    font-weight: 700;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding input {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cdd9d0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    color: #15211a;
    outline: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__onboarding input:focus {
    border-color: #209553;
    box-shadow: 0 0 0 3px rgba(32, 149, 83, 0.13);
}

#do-wwe-ai-chat .do-wwe-ai-chat__form-error {
    margin: 0;
    color: #b53b3b;
    font-size: 12px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__suggestions button {
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #9bc9aa;
    border-radius: 999px;
    background: #f5fff8;
    color: #176b39;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

#do-wwe-ai-chat .do-wwe-ai-chat__suggestions button:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__suggestions button:focus-visible {
    border-color: #248b4d;
    background: #e9f8ee;
    outline: 0;
}

#do-wwe-ai-chat .do-wwe-ai-chat__start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    margin: 1px 0 0;
    padding: 9px 14px;
    border: 1px solid #15743d;
    border-radius: 11px;
    background: linear-gradient(135deg, #209d54 0%, #15743d 100%);
    box-shadow: 0 6px 14px rgba(21, 116, 61, 0.17);
    color: #ffffff;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

#do-wwe-ai-chat .do-wwe-ai-chat__start:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__start:focus-visible {
    box-shadow: 0 9px 20px rgba(21, 116, 61, 0.24);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
    overflow-x: auto;
    border-top: 1px solid #edf1ee;
    background: #ffffff;
    scrollbar-width: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions::-webkit-scrollbar {
    display: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions button {
    flex: 0 0 auto;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #cfe0d3;
    border-radius: 999px;
    background: #f6faf7;
    color: #28603d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions button:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions button:focus-visible {
    border-color: #86bc94;
    background: #eaf5ed;
    outline: none;
    transform: translateY(-1px);
}

#do-wwe-ai-chat .do-wwe-ai-chat__handoff {
    margin: 0;
    padding: 0 12px 8px;
    background: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__handoff[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #1aa95a;
    border-radius: 11px;
    background: #effbf3;
    color: #11743d;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.2;
    transition: background 150ms ease, transform 150ms ease;
}

#do-wwe-ai-chat .do-wwe-ai-chat__whatsapp span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
}

#do-wwe-ai-chat .do-wwe-ai-chat__whatsapp svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

#do-wwe-ai-chat .do-wwe-ai-chat__whatsapp:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__whatsapp:focus-visible {
    background: #def6e6;
    color: #0b6333;
    outline: none;
    transform: translateY(-1px);
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: end;
    gap: 8px;
    margin: 0;
    padding: 10px 12px 8px;
    border-top: 1px solid #e5ece7;
    background: #ffffff;
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer[hidden] {
    display: none !important;
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    max-height: 120px;
    margin: 0;
    padding: 10px 12px;
    resize: none;
    overflow-y: auto;
    border: 1px solid #cedbd1;
    border-radius: 13px;
    background: #f9fbf9;
    box-shadow: none;
    color: #17251b;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer textarea:focus {
    border-color: #269657;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(38, 150, 87, 0.11);
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer textarea::placeholder {
    color: #829087;
    opacity: 1;
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #197d44;
    border-radius: 13px;
    background: linear-gradient(145deg, #219b53 0%, #14743c 100%);
    box-shadow: 0 5px 13px rgba(20, 116, 60, 0.2);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer button:hover,
#do-wwe-ai-chat .do-wwe-ai-chat__composer button:focus-visible {
    box-shadow: 0 8px 18px rgba(20, 116, 60, 0.26);
    color: #ffffff;
    transform: translateY(-1px);
}

#do-wwe-ai-chat .do-wwe-ai-chat__composer.is-sending button,
#do-wwe-ai-chat .do-wwe-ai-chat__composer.is-sending textarea {
    cursor: wait;
    opacity: 0.68;
}

#do-wwe-ai-chat .do-wwe-ai-chat__footer {
    margin: 0;
    padding: 0 12px 9px;
    background: #ffffff;
    color: #849087;
    font-size: 9.5px;
    line-height: 1.3;
    text-align: center;
}

/* One store setting drives the launcher, header, customer bubbles, and primary
 * actions while preserving contrast through derived shades. */
#do-wwe-ai-chat .do-wwe-ai-chat__launcher {
    border-color: color-mix(in srgb, var(--do-wwe-ai-theme) 84%, #000000);
    background: linear-gradient(145deg, color-mix(in srgb, var(--do-wwe-ai-theme) 82%, #ffffff) 0%, var(--do-wwe-ai-theme) 100%);
}

#do-wwe-ai-chat .do-wwe-ai-chat__launcher-pulse {
    border-color: color-mix(in srgb, var(--do-wwe-ai-theme) 52%, transparent);
}

#do-wwe-ai-chat .do-wwe-ai-chat__header {
    background: linear-gradient(135deg, color-mix(in srgb, var(--do-wwe-ai-theme) 48%, #08150d) 0%, color-mix(in srgb, var(--do-wwe-ai-theme) 72%, #102318) 100%);
}

#do-wwe-ai-chat .do-wwe-ai-chat__message--user .do-wwe-ai-chat__bubble,
#do-wwe-ai-chat .do-wwe-ai-chat__start,
#do-wwe-ai-chat .do-wwe-ai-chat__composer button {
    border-color: color-mix(in srgb, var(--do-wwe-ai-theme) 82%, #000000);
    background: linear-gradient(135deg, color-mix(in srgb, var(--do-wwe-ai-theme) 86%, #ffffff) 0%, color-mix(in srgb, var(--do-wwe-ai-theme) 84%, #000000) 100%);
}

#do-wwe-ai-chat .do-wwe-ai-chat__product-link,
#do-wwe-ai-chat .do-wwe-ai-chat__quick-actions button {
    color: color-mix(in srgb, var(--do-wwe-ai-theme) 78%, #132019);
}

@keyframes do-wwe-ai-pulse {
    0% {
        opacity: 0.75;
        transform: scale(0.88);
    }
    75%,
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

@keyframes do-wwe-ai-typing {
    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (max-width: 600px) {
    #do-wwe-ai-chat.do-wwe-ai-chat,
    #do-wwe-ai-chat.do-wwe-ai-chat--left {
        right: 14px;
        bottom: 14px;
        left: auto;
    }

    #do-wwe-ai-chat .do-wwe-ai-chat__launcher {
        width: 56px;
        height: 56px;
    }

    #do-wwe-ai-chat .do-wwe-ai-chat__panel,
    #do-wwe-ai-chat.do-wwe-ai-chat--left .do-wwe-ai-chat__panel {
        position: fixed;
        right: 10px;
        bottom: 80px;
        left: 10px;
        width: auto;
        height: min(680px, calc(100dvh - 96px));
        min-height: min(430px, calc(100dvh - 96px));
        max-height: calc(100dvh - 96px);
        border-radius: 20px;
        transform-origin: bottom right;
    }
}

@media (max-width: 380px) {
    #do-wwe-ai-chat .do-wwe-ai-chat__panel,
    #do-wwe-ai-chat.do-wwe-ai-chat--left .do-wwe-ai-chat__panel {
        right: 6px;
        bottom: 75px;
        left: 6px;
        border-radius: 17px;
    }

    #do-wwe-ai-chat .do-wwe-ai-chat__header {
        min-height: 68px;
        padding-top: 11px;
        padding-bottom: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #do-wwe-ai-chat *,
    #do-wwe-ai-chat *::before,
    #do-wwe-ai-chat *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
