@import url("./tokens.css");

:root {
    --widget-primary: #14532d;
    --widget-secondary: #d97706;
    --widget-radius: 24px;
    --widget-font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: transparent;
}

body {
    font-family: var(--widget-font);
    background: transparent;
}

.widget-frame {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: var(--widget-radius);
    border: 1px solid rgba(12, 22, 33, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 28%),
        linear-gradient(180deg, #f6f4ef 0%, #f0ece3 36%, #ebe7df 100%);
    box-shadow: 0 28px 70px rgba(12, 22, 33, 0.2);
    color: #10212f;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1rem 0.95rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--widget-primary) 88%, #08131d 12%), color-mix(in srgb, var(--widget-primary) 62%, #0f2234 38%));
    color: #fff;
}

.widget-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.widget-header__identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

a.widget-header__identity--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: opacity 0.15s;
}

a.widget-header__identity--link:hover {
    opacity: 0.8;
}

.widget-header__copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.widget-header__copy strong {
    font-size: 1rem;
    line-height: 1.1;
}

.widget-header__copy span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.widget-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.widget-close-button {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 65%),
        rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.widget-close-button svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.widget-close-button:hover,
.widget-close-button:focus-visible {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.26), transparent 65%),
        rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.95rem;
    overflow-y: auto;
}

.widget-welcome-card {
    padding: 1rem;
    border-radius: calc(var(--widget-radius) - 8px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--widget-secondary) 26%, transparent), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.96));
    border: 1px solid rgba(12, 22, 33, 0.08);
    box-shadow: 0 16px 30px rgba(12, 22, 33, 0.06);
}

.widget-welcome-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--widget-primary) 84%, #ffffff 16%);
}

.widget-welcome-card h1 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.15;
}

.widget-welcome-card p {
    margin: 0.45rem 0 0;
    color: rgba(16, 33, 47, 0.72);
    line-height: 1.6;
}

.widget-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.widget-suggestion-list--inline {
    margin-top: 0.75rem;
}

.widget-suggestion-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.55rem 0.78rem;
    border: 1px solid rgba(12, 22, 33, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #10212f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.widget-suggestion-chip:hover,
.widget-suggestion-chip:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--widget-primary) 28%, rgba(12, 22, 33, 0.08));
    box-shadow: 0 12px 24px rgba(12, 22, 33, 0.08);
}

.widget-message-row {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
}

.widget-message-row--user {
    justify-content: flex-end;
}

.widget-avatar {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 2.6rem;
}

.widget-avatar--hero {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.widget-message {
    max-width: min(84%, 18rem);
}

.widget-message__meta {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(16, 33, 47, 0.52);
}

.widget-message__bubble {
    padding: 0.82rem 0.95rem;
    border-radius: 18px;
    line-height: 1.6;
    box-shadow: 0 10px 22px rgba(12, 22, 33, 0.06);
}

.widget-message--bot .widget-message__bubble {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(12, 22, 33, 0.08);
    color: #10212f;
    border-top-left-radius: 8px;
}

.widget-message--bot .widget-message__bubble a {
    color: color-mix(in srgb, var(--widget-primary) 86%, #0b2131 14%);
    font-weight: 700;
    text-decoration: none;
}

.widget-message--bot .widget-message__bubble a:hover,
.widget-message--bot .widget-message__bubble a:focus-visible {
    text-decoration: underline;
}

.widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 62%, #0b2131 38%));
    color: #fff;
    border-top-right-radius: 8px;
}

.widget-message__feedback {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.45rem;
    opacity: 0;
    transition: opacity 0.18s;
}
.widget-message--bot:hover .widget-message__feedback,
.widget-message__feedback.is-active {
    opacity: 1;
}
.widget-feedback-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.18rem 0.28rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1;
    color: rgba(16, 33, 47, 0.4);
    transition: background 0.13s, color 0.13s;
}
.widget-feedback-btn:hover {
    background: rgba(16, 33, 47, 0.07);
    color: rgba(16, 33, 47, 0.65);
}
.widget-feedback-btn.is-selected {
    color: var(--widget-primary);
}
.widget-feedback-note {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.1rem;
    width: 100%;
}
.widget-feedback-note__input {
    flex: 1;
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(16, 33, 47, 0.18);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #10212f;
    min-width: 0;
}
.widget-feedback-note__input:focus {
    border-color: var(--widget-primary);
}
.widget-feedback-note__submit {
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
    border: none;
    border-radius: 8px;
    background: var(--widget-primary);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.widget-feedback-thanks {
    font-size: 0.76rem;
    color: rgba(16, 33, 47, 0.48);
}

.widget-product-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.widget-product-card {
    display: grid;
    grid-template-columns: 5.3rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(12, 22, 33, 0.08);
    box-shadow: 0 12px 24px rgba(12, 22, 33, 0.06);
}

.widget-product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(12, 22, 33, 0.05);
}

.widget-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.widget-product-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: end start;
    padding: 0.8rem;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--widget-secondary) 38%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--widget-primary) 78%, #10212f 22%), color-mix(in srgb, var(--widget-primary) 32%, var(--widget-secondary) 68%));
    color: rgba(255, 255, 255, 0.94);
}

.widget-product-card__fallback span {
    display: inline-block;
    max-width: 100%;
    padding: 0.38rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.widget-product-card__media.has-image .widget-product-card__fallback {
    display: none;
}

.widget-product-card__content {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.widget-product-card__title {
    font-size: 0.93rem;
    line-height: 1.35;
}

.widget-product-card__summary {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(16, 33, 47, 0.68);
}

.widget-product-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.widget-product-card__price,
.widget-product-card__stock {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.widget-product-card__price {
    background: color-mix(in srgb, var(--widget-secondary) 18%, white 82%);
    color: color-mix(in srgb, var(--widget-secondary) 72%, #6b2d00 28%);
}

.widget-product-card__stock {
    background: rgba(16, 33, 47, 0.06);
    color: rgba(16, 33, 47, 0.72);
}

.widget-product-card__stock.is-in-stock {
    background: color-mix(in srgb, var(--widget-primary) 16%, white 84%);
    color: color-mix(in srgb, var(--widget-primary) 86%, #10212f 14%);
}

.widget-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.widget-product-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 62%, #0b2131 38%));
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.widget-product-card__cta--secondary {
    background: rgba(255, 255, 255, 0.92);
    color: color-mix(in srgb, var(--widget-primary) 86%, #10212f 14%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--widget-primary) 18%, rgba(16, 33, 47, 0.1));
}

.widget-product-card__cta:hover,
.widget-product-card__cta:focus-visible {
    text-decoration: none;
    filter: brightness(1.03);
}

.widget-verification-card[hidden] {
    display: none;
}

.widget-verification-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: calc(var(--widget-radius) - 8px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--widget-primary) 18%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 240, 231, 0.98));
    border: 1px solid rgba(12, 22, 33, 0.08);
    box-shadow: 0 14px 28px rgba(12, 22, 33, 0.06);
}

.widget-verification-card__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
}

.widget-verification-card__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--widget-primary) 84%, #ffffff 16%);
}

.widget-verification-card__head strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
}

.widget-verification-status {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: rgba(16, 33, 47, 0.08);
    color: rgba(16, 33, 47, 0.76);
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.widget-verification-status.is-verified {
    background: color-mix(in srgb, var(--widget-primary) 16%, white 84%);
    color: color-mix(in srgb, var(--widget-primary) 84%, #10212f 16%);
}

.widget-verification-card__body {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(16, 33, 47, 0.72);
}

.widget-verification-feedback {
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.45;
    background: rgba(16, 33, 47, 0.06);
    color: rgba(16, 33, 47, 0.8);
}

.widget-verification-feedback.is-success {
    background: color-mix(in srgb, var(--widget-primary) 12%, white 88%);
    color: color-mix(in srgb, var(--widget-primary) 86%, #10212f 14%);
}

.widget-verification-feedback.is-error {
    background: rgba(160, 31, 31, 0.08);
    color: #8a1f1f;
}

.widget-verification-feedback.is-info {
    background: color-mix(in srgb, var(--widget-secondary) 12%, white 88%);
    color: color-mix(in srgb, var(--widget-secondary) 78%, #5e2f00 22%);
}

.widget-verification-actions,
.widget-verification-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.widget-verification-form {
    display: grid;
    gap: 0.7rem;
}

.widget-field {
    display: grid;
    gap: 0.38rem;
}

.widget-field span {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(16, 33, 47, 0.7);
}

.widget-field input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.78rem 0.82rem;
    border-radius: 16px;
    border: 1px solid rgba(12, 22, 33, 0.12);
    background: #fff;
    color: #10212f;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.widget-field input:focus {
    border-color: color-mix(in srgb, var(--widget-primary) 42%, rgba(12, 22, 33, 0.12));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--widget-primary) 12%, transparent);
}

.widget-secondary-button,
.widget-link-button {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.widget-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 62%, #0b2131 38%));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(12, 22, 33, 0.1);
}

.widget-secondary-button.is-active {
    outline: 2px solid color-mix(in srgb, var(--widget-primary) 28%, rgba(12, 22, 33, 0.14));
    outline-offset: 2px;
    filter: brightness(1.03);
}

.widget-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0;
    background: transparent;
    color: color-mix(in srgb, var(--widget-primary) 82%, #0b2131 18%);
    font-size: 0.78rem;
    font-weight: 700;
}

.widget-verification-form__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(16, 33, 47, 0.58);
}

.widget-form {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(12, 22, 33, 0.08);
    border-bottom-left-radius: var(--widget-radius);
    border-bottom-right-radius: var(--widget-radius);
    position: relative;
}

.widget-handoff-confirm[hidden] {
    display: none;
}

.widget-handoff-confirm {
    padding: 0.95rem 1rem;
    border-radius: calc(var(--widget-radius) - 8px);
    background: #fff;
    border: 1px solid rgba(12, 22, 33, 0.08);
    box-shadow: 0 14px 28px rgba(12, 22, 33, 0.1);
    display: grid;
    gap: 0.75rem;
}

.widget-handoff-confirm__text {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(16, 33, 47, 0.85);
}

.widget-handoff-confirm__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.widget-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: end;
}

.widget-form textarea {
    width: 100%;
    min-height: 3.35rem;
    max-height: 8.75rem;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(12, 22, 33, 0.12);
    background: #fff;
    color: #10212f;
    font: inherit;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.widget-form textarea:focus {
    border-color: color-mix(in srgb, var(--widget-primary) 42%, rgba(12, 22, 33, 0.12));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--widget-primary) 12%, transparent);
}

.widget-send-button {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--widget-secondary), color-mix(in srgb, var(--widget-primary) 45%, var(--widget-secondary) 55%));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--widget-secondary) 28%, transparent);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.widget-send-button:hover,
.widget-send-button:focus-visible {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--widget-secondary) 36%, transparent);
}

.widget-send-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Typing indicator */
.widget-typing-bubble {
    display: flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.7rem 1rem !important;
}

.widget-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.widget-typing-dots span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: widget-typing-bounce 1.2s infinite ease-in-out;
}

.widget-typing-dots span:nth-child(1) { animation-delay: 0s; }
.widget-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.widget-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes widget-typing-bounce {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.widget-form__hint {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(16, 33, 47, 0.56);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 0.9rem;
    right: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(12, 22, 33, 0.1);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 2px 8px rgba(12, 22, 33, 0.08);
    transition: opacity 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-form:has(#widget-input:placeholder-shown:not(:focus)):hover .widget-form__hint {
    opacity: 1;
}

.widget-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.widget-form__feedback {
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(16, 33, 47, 0.58);
    text-align: right;
    width: 100%;
}

.widget-form__feedback.is-success {
    color: #0f766e;
}

.widget-form__feedback.is-error {
    color: #b42318;
}

@media (max-width: 640px) {
    .widget-header {
        padding-inline: 0.8rem;
    }

    .widget-body,
    .widget-form {
        padding-inline: 0.8rem;
    }

    .widget-status-pill {
        display: none;
    }

    .widget-header__actions {
        margin-left: auto;
    }

    .widget-message {
        max-width: 90%;
    }

    .widget-form__actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .widget-form__feedback {
        text-align: left;
    }

    .widget-product-card {
        grid-template-columns: 1fr;
    }

    .widget-product-card__image {
        aspect-ratio: 1.4 / 1;
    }
}

.widget-status-pill--branding {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
}

.widget-growth-links,
.widget-message-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.widget-growth-link,
.widget-message-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 83, 45, 0.14);
    background: rgba(20, 83, 45, 0.06);
    color: #14532d;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.widget-growth-link:hover,
.widget-message-cta:hover {
    background: rgba(20, 83, 45, 0.11);
}

.widget-message-branding {
    margin-top: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(16, 33, 47, 0.5);
}

.widget-context-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.widget-context-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 33, 47, 0.06);
    color: rgba(16, 33, 47, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.widget-context-pill--topic {
    background: color-mix(in srgb, var(--widget-secondary) 18%, white 82%);
    color: color-mix(in srgb, var(--widget-secondary) 76%, #6b2d00 24%);
}

.widget-context-pill--recipe {
    background: rgba(20, 83, 45, 0.09);
    color: #14532d;
}

.widget-context-pill--state {
    background: rgba(217, 119, 6, 0.1);
    color: #9a3412;
}

.widget-shopping-guidance {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 83, 45, 0.12);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(236, 253, 245, 0.94));
}

.widget-shopping-guidance__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #14532d;
    font-size: 0.86rem;
}

.widget-shopping-guidance__row,
.widget-shopping-guidance__prompt {
    margin: 0;
    color: #14532d;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-shopping-guidance__row + .widget-shopping-guidance__row,
.widget-shopping-guidance__row + .widget-shopping-guidance__prompt,
.widget-shopping-guidance__prompt + .widget-shopping-guidance__row,
.widget-shopping-guidance__prompt + .widget-shopping-guidance__prompt {
    margin-top: 0.4rem;
}

.widget-shopping-guidance__row span,
.widget-shopping-guidance__prompt span {
    color: rgba(20, 83, 45, 0.78);
    font-weight: 700;
}


.widget-comparison-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(8, 145, 178, 0.14);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98), rgba(207, 250, 254, 0.92));
}

.widget-comparison-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f766e;
    font-size: 0.86rem;
}

.widget-comparison-summary__row {
    margin: 0;
    color: #155e75;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-comparison-summary__row + .widget-comparison-summary__row {
    margin-top: 0.4rem;
}

.widget-comparison-summary__row span {
    color: rgba(21, 94, 117, 0.72);
    font-weight: 700;
}

.widget-compatibility-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(30, 64, 175, 0.14);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.98), rgba(224, 231, 255, 0.92));
}

.widget-compatibility-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #1d4ed8;
    font-size: 0.86rem;
}

.widget-compatibility-summary__row {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-compatibility-summary__row + .widget-compatibility-summary__row {
    margin-top: 0.4rem;
}

.widget-compatibility-summary__row span {
    color: rgba(30, 58, 138, 0.72);
    font-weight: 700;
}

.widget-clarify-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.widget-clarify-option {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--widget-primary) 35%, transparent 65%);
    background: color-mix(in srgb, var(--widget-primary) 6%, white 94%);
    color: color-mix(in srgb, var(--widget-primary) 80%, #000 20%);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.widget-clarify-option:hover {
    background: color-mix(in srgb, var(--widget-primary) 14%, white 86%);
    border-color: color-mix(in srgb, var(--widget-primary) 55%, transparent 45%);
}

.widget-review-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(180, 83, 9, 0.14);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.92));
}

.widget-review-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #b45309;
    font-size: 0.86rem;
}

.widget-review-summary__row {
    margin: 0;
    color: #9a3412;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-review-summary__row + .widget-review-summary__row {
    margin-top: 0.4rem;
}

.widget-review-summary__row span {
    color: rgba(154, 52, 18, 0.72);
    font-weight: 700;
}

.widget-stock-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 101, 52, 0.14);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
}

.widget-stock-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #166534;
    font-size: 0.86rem;
}

.widget-stock-summary__row {
    margin: 0;
    color: #14532d;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-stock-summary__row + .widget-stock-summary__row {
    margin-top: 0.4rem;
}

.widget-stock-summary__row span {
    color: rgba(20, 83, 45, 0.72);
    font-weight: 700;
}

.widget-delivery-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98), rgba(207, 250, 254, 0.92));
}

.widget-delivery-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f766e;
    font-size: 0.86rem;
}

.widget-delivery-summary__row {
    margin: 0;
    color: #155e75;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-delivery-summary__row + .widget-delivery-summary__row {
    margin-top: 0.4rem;
}

.widget-delivery-summary__row span {
    color: rgba(21, 94, 117, 0.72);
    font-weight: 700;
}

.widget-shopping-request {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.92));
}

.widget-shopping-request__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #6d28d9;
    font-size: 0.86rem;
}

.widget-shopping-request__row {
    margin: 0;
    color: #5b21b6;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-shopping-request__row + .widget-shopping-request__row {
    margin-top: 0.4rem;
}

.widget-shopping-request__row span {
    color: rgba(91, 33, 182, 0.72);
    font-weight: 700;
}

.widget-bundle-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 101, 52, 0.14);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
}

.widget-bundle-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #166534;
    font-size: 0.86rem;
}

.widget-bundle-summary__row {
    margin: 0;
    color: #166534;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-bundle-summary__row + .widget-bundle-summary__row {
    margin-top: 0.4rem;
}

.widget-bundle-summary__row span {
    color: rgba(22, 101, 52, 0.72);
    font-weight: 700;
}

.widget-size-summary {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(8, 145, 178, 0.14);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98), rgba(207, 250, 254, 0.92));
}

.widget-size-summary__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f766e;
    font-size: 0.86rem;
}

.widget-size-summary__row {
    margin: 0;
    color: #155e75;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-size-summary__row + .widget-size-summary__row {
    margin-top: 0.4rem;
}

.widget-size-summary__row span {
    color: rgba(21, 94, 117, 0.72);
    font-weight: 700;
}

.widget-policy-preview {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.92));
}

.widget-policy-preview__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #1d4ed8;
    font-size: 0.86rem;
}

.widget-policy-preview__row {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-policy-preview__row + .widget-policy-preview__row {
    margin-top: 0.4rem;
}

.widget-policy-preview__row span {
    color: rgba(30, 58, 138, 0.72);
    font-weight: 700;
}

.widget-warranty-preview {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 101, 52, 0.14);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
}

.widget-warranty-preview__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #166534;
    font-size: 0.86rem;
}

.widget-warranty-preview__row {
    margin: 0;
    color: #14532d;
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-warranty-preview__row + .widget-warranty-preview__row {
    margin-top: 0.4rem;
}

.widget-warranty-preview__row span {
    color: rgba(20, 83, 45, 0.72);
    font-weight: 700;
}

.widget-knowledge-graph {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(16, 33, 47, 0.1);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
}

.widget-knowledge-graph__title {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(16, 33, 47, 0.88);
    font-size: 0.86rem;
}

.widget-knowledge-graph__row {
    margin: 0;
    color: rgba(16, 33, 47, 0.78);
    font-size: 0.77rem;
    line-height: 1.5;
}

.widget-knowledge-graph__row + .widget-knowledge-graph__row {
    margin-top: 0.4rem;
}

.widget-knowledge-graph__row span {
    color: rgba(16, 33, 47, 0.62);
    font-weight: 700;
}

.widget-comparison-card {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(12, 22, 33, 0.08);
    background: rgba(248, 250, 252, 0.96);
    overflow-x: auto;
}

.widget-comparison-card__title {
    display: block;
    margin-bottom: 0.65rem;
    color: #10212f;
    font-size: 0.86rem;
}

.widget-order-diagnosis {
    margin-top: 0.85rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.95));
}

.widget-order-diagnosis__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #9a3412;
    font-size: 0.86rem;
}

.widget-order-diagnosis__body {
    margin: 0;
    color: #7c2d12;
    font-size: 0.78rem;
    line-height: 1.5;
}

.widget-order-diagnosis__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.widget-order-diagnosis__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #9a3412;
    font-size: 0.7rem;
    font-weight: 700;
}

.widget-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #10212f;
}

.widget-comparison-table th,
.widget-comparison-table td {
    padding: 0.5rem 0.45rem;
    border-top: 1px solid rgba(12, 22, 33, 0.08);
    text-align: left;
    vertical-align: top;
}

.widget-comparison-table thead th {
    border-top: 0;
    color: rgba(16, 33, 47, 0.68);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.widget-comparison-table tbody th {
    min-width: 7rem;
    color: rgba(16, 33, 47, 0.72);
    font-weight: 700;
}

/* ============================================================
   LAYOUT VARIANTS
   ============================================================ */

/* ------------------------------------------------------------
   MODERN – clean white, minimal, professional
   ------------------------------------------------------------ */
.widget-frame--modern {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 0 24px 60px rgba(12, 22, 33, 0.14);
}

.widget-frame--modern .widget-header {
    background: #ffffff;
    background-image: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #10212f;
    box-shadow: none;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--widget-primary);
}

.widget-frame--modern .widget-header__copy strong {
    color: #10212f;
}

.widget-frame--modern .widget-header__copy span {
    color: rgba(16, 33, 47, 0.56);
}

.widget-frame--modern .widget-status-pill {
    background: color-mix(in srgb, var(--widget-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--widget-primary) 22%, transparent);
    color: color-mix(in srgb, var(--widget-primary) 80%, #10212f 20%);
}

.widget-frame--modern .widget-close-button {
    background: rgba(16, 33, 47, 0.05);
    border-color: rgba(16, 33, 47, 0.12);
    color: rgba(16, 33, 47, 0.68);
    box-shadow: none;
}

.widget-frame--modern .widget-close-button:hover,
.widget-frame--modern .widget-close-button:focus-visible {
    background: rgba(16, 33, 47, 0.09);
    border-color: rgba(16, 33, 47, 0.16);
    color: #10212f;
    transform: none;
    box-shadow: none;
}

.widget-frame--modern .widget-body {
    background: #f4f5f7;
    padding-top: 1rem;
}

.widget-frame--modern .widget-welcome-card {
    background: #ffffff;
    background-image: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(12, 22, 33, 0.05);
}

.widget-frame--modern .widget-welcome-card__eyebrow {
    color: color-mix(in srgb, var(--widget-primary) 80%, #10212f 20%);
}

.widget-frame--modern .widget-avatar--hero {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.widget-frame--modern .widget-avatar--message {
    border-radius: 10px;
}

.widget-frame--modern .widget-message--bot .widget-message__bubble {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 2px 8px rgba(12, 22, 33, 0.05);
}

.widget-frame--modern .widget-message--user .widget-message__bubble {
    background: var(--widget-primary);
    background-image: none;
    border-radius: 18px 4px 18px 18px;
}

.widget-frame--modern .widget-suggestion-chip {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.widget-frame--modern .widget-suggestion-chip:hover,
.widget-frame--modern .widget-suggestion-chip:focus-visible {
    transform: none;
    background: color-mix(in srgb, var(--widget-primary) 6%, #ffffff 94%);
    border-color: color-mix(in srgb, var(--widget-primary) 28%, rgba(0, 0, 0, 0.1));
    box-shadow: 0 4px 12px rgba(12, 22, 33, 0.07);
}

.widget-frame--modern .widget-form {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.8rem;
}

.widget-frame--modern .widget-form textarea {
    background: #f4f5f7;
    border-radius: 12px;
    border-color: rgba(0, 0, 0, 0.1);
}

.widget-frame--modern .widget-send-button {
    background: var(--widget-primary);
    background-image: none;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--widget-primary) 32%, transparent);
}

/* ------------------------------------------------------------
   ELEVATED – bold primary header, large centered avatar
   ------------------------------------------------------------ */
.widget-frame--elevated {
    background: #ffffff;
    border: none;
    overflow: visible;
}

.widget-frame--elevated .widget-header {
    background: var(--widget-primary);
    background-image: none;
    padding: 1.3rem 1rem 4.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    position: relative;
    min-height: 110px;
    overflow: visible;
}

.widget-frame--elevated .widget-header__identity {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.widget-frame--elevated .widget-header__copy {
    align-items: center;
}

.widget-frame--elevated .widget-avatar--hero {
    width: 4.4rem;
    height: 4.4rem;
    flex-basis: 4.4rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    margin-top: 0.2rem;
}

.widget-frame--elevated .widget-header__actions {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    margin-left: 0;
}

.widget-frame--elevated .widget-header__copy strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.widget-frame--elevated .widget-status-pill {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.widget-frame--elevated .widget-body {
    position: relative;
    margin-top: -2.6rem;
    padding-top: 0;
    background: #f5f4f0;
    z-index: 1;
}

.widget-frame--elevated .widget-welcome-card {
    border-radius: 20px 20px calc(var(--widget-radius) - 10px) calc(var(--widget-radius) - 10px);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.09), 0 16px 30px rgba(12, 22, 33, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ee 100%);
    background-image: none;
    border: none;
}

.widget-frame--elevated .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, var(--widget-secondary), color-mix(in srgb, var(--widget-secondary) 72%, #6b2d00 28%));
}

.widget-frame--elevated .widget-send-button {
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 72%, #000 28%));
    width: 3.2rem;
    height: 3.2rem;
}

.widget-frame--elevated .widget-form {
    background: #f5f4f0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.widget-frame--elevated .widget-form textarea {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(0, 0, 0, 0.09);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: BUBBLE
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--bubble .widget-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(12, 22, 33, 0.06);
}
.widget-frame--bubble .widget-body {
    background: #f0f4ff;
}
.widget-frame--bubble .widget-message__bubble {
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(12, 22, 33, 0.08);
}
.widget-frame--bubble .widget-message--user .widget-message__bubble {
    border-radius: 18px 18px 4px 18px;
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 70%, #000 30%));
}
.widget-frame--bubble .widget-form {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.widget-frame--bubble .widget-send-button {
    background: var(--widget-primary);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: GLASS
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--glass .widget-header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(12, 22, 33, 0.06);
}
.widget-frame--glass .widget-body {
    background: linear-gradient(165deg, color-mix(in srgb, var(--widget-primary) 5%, #f8faff), #f4f7fb);
}
.widget-frame--glass .widget-message__bubble {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 12px rgba(12, 22, 33, 0.07);
}
.widget-frame--glass .widget-message--user .widget-message__bubble {
    background: color-mix(in srgb, var(--widget-primary) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.widget-frame--glass .widget-form {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.widget-frame--glass .widget-send-button {
    background: var(--widget-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: DARK
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--dark .widget-header {
    background: #0d1117;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.widget-frame--dark .widget-header__copy strong,
.widget-frame--dark .widget-header__copy p {
    color: #e8edf2;
}
.widget-frame--dark .widget-body {
    background: #161b22;
}
.widget-frame--dark .widget-welcome-card {
    background: #1c2333;
    border-color: rgba(255, 255, 255, 0.08);
}
.widget-frame--dark .widget-welcome-card p {
    color: #c9d1d9;
}
.widget-frame--dark .widget-message__bubble {
    background: #21262d;
    color: #c9d1d9;
    border-color: rgba(255, 255, 255, 0.08);
}
.widget-frame--dark .widget-message__text {
    color: #c9d1d9;
}
.widget-frame--dark .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 70%, #000 30%));
    color: #ffffff;
    border: none;
}
.widget-frame--dark .widget-message--user .widget-message__text {
    color: #ffffff;
}
.widget-frame--dark .widget-form {
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.widget-frame--dark .widget-form textarea {
    background: #1c2333;
    color: #c9d1d9;
    border-color: rgba(255, 255, 255, 0.12);
}
.widget-frame--dark .widget-form textarea::placeholder {
    color: rgba(201, 209, 217, 0.5);
}
.widget-frame--dark .widget-send-button {
    background: var(--widget-primary);
}
.widget-frame--dark .widget-status-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(201, 209, 217, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: MINIMAL
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--minimal .widget-header {
    background: #ffffff;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    padding: 0.75rem 1rem;
}
.widget-frame--minimal .widget-avatar--hero {
    display: none;
}
.widget-frame--minimal .widget-body {
    background: #ffffff;
}
.widget-frame--minimal .widget-welcome-card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}
.widget-frame--minimal .widget-message__bubble {
    border-radius: 6px;
    background: #f5f5f5;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.widget-frame--minimal .widget-message--user .widget-message__bubble {
    background: var(--widget-primary);
    border: none;
}
.widget-frame--minimal .widget-form {
    background: #ffffff;
    border-top: 1.5px solid rgba(0, 0, 0, 0.1);
}
.widget-frame--minimal .widget-send-button {
    background: var(--widget-primary);
    border-radius: 6px;
    width: 2.6rem;
    height: 2.6rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: BOLD
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--bold .widget-header {
    background: linear-gradient(160deg, var(--widget-primary) 0%, color-mix(in srgb, var(--widget-primary) 65%, var(--widget-secondary) 35%) 100%);
    padding: 1.5rem 1rem 5rem;
    position: relative;
    min-height: 140px;
}
.widget-frame--bold .widget-header__copy strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.widget-frame--bold .widget-header__identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.widget-frame--bold .widget-avatar--hero {
    width: 3.8rem;
    height: 3.8rem;
    flex-basis: 3.8rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
}
.widget-frame--bold .widget-header__actions {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    margin-left: 0;
}
.widget-frame--bold .widget-body {
    position: relative;
    margin-top: -3rem;
    background: #f8f9fb;
    z-index: 1;
}
.widget-frame--bold .widget-welcome-card {
    border-radius: 20px 20px calc(var(--widget-radius) - 10px) calc(var(--widget-radius) - 10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(12, 22, 33, 0.05);
}
.widget-frame--bold .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, var(--widget-secondary), color-mix(in srgb, var(--widget-secondary) 72%, #000 28%));
}
.widget-frame--bold .widget-form {
    background: #f8f9fb;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.widget-frame--bold .widget-send-button {
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 72%, #000 28%));
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: SOFT
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--soft .widget-header {
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--widget-primary) 14%, #fff3e0 86%),
        color-mix(in srgb, var(--widget-secondary) 10%, #fff8f0 90%));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.widget-frame--soft .widget-header__copy strong {
    color: color-mix(in srgb, var(--widget-primary) 90%, #000 10%);
}
.widget-frame--soft .widget-body {
    background: #fef9f2;
}
.widget-frame--soft .widget-welcome-card {
    background: linear-gradient(180deg, #ffffff 0%, #fef5e7 100%);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(12, 22, 33, 0.06);
}
.widget-frame--soft .widget-message__bubble {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(12, 22, 33, 0.06);
}
.widget-frame--soft .widget-message--user .widget-message__bubble {
    border-radius: 20px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--widget-primary) 80%, #fff 20%),
        var(--widget-primary));
}
.widget-frame--soft .widget-form {
    background: #fef9f2;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.widget-frame--soft .widget-form textarea {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}
.widget-frame--soft .widget-send-button {
    background: linear-gradient(135deg, var(--widget-secondary),
        color-mix(in srgb, var(--widget-secondary) 72%, var(--widget-primary) 28%));
    border-radius: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: NEON
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--neon .widget-header {
    background: #0d1117;
    border-bottom: 2px solid var(--widget-primary);
    box-shadow: 0 0 20px color-mix(in srgb, var(--widget-primary) 30%, transparent);
}
.widget-frame--neon .widget-header__copy strong,
.widget-frame--neon .widget-header__copy p {
    color: #e8edf2;
}
.widget-frame--neon .widget-body {
    background: #0d1117;
}
.widget-frame--neon .widget-welcome-card {
    background: #161b22;
    border-color: color-mix(in srgb, var(--widget-primary) 40%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--widget-primary) 15%, transparent);
}
.widget-frame--neon .widget-welcome-card p {
    color: #c9d1d9;
}
.widget-frame--neon .widget-message__bubble {
    background: #161b22;
    color: #c9d1d9;
    border: 1px solid color-mix(in srgb, var(--widget-primary) 25%, rgba(255,255,255,0.08));
    box-shadow: none;
}
.widget-frame--neon .widget-message__text {
    color: #c9d1d9;
}
.widget-frame--neon .widget-message--user .widget-message__bubble {
    background: color-mix(in srgb, var(--widget-primary) 90%, #000 10%);
    border: none;
    box-shadow: 0 0 16px color-mix(in srgb, var(--widget-primary) 40%, transparent);
    color: #ffffff;
}
.widget-frame--neon .widget-message--user .widget-message__text {
    color: #ffffff;
}
.widget-frame--neon .widget-form {
    background: #0d1117;
    border-top: 1px solid color-mix(in srgb, var(--widget-primary) 30%, rgba(255,255,255,0.06));
}
.widget-frame--neon .widget-form textarea {
    background: #161b22;
    color: #c9d1d9;
    border-color: color-mix(in srgb, var(--widget-primary) 35%, rgba(255,255,255,0.1));
}
.widget-frame--neon .widget-form textarea::placeholder {
    color: rgba(201, 209, 217, 0.4);
}
.widget-frame--neon .widget-send-button {
    background: var(--widget-primary);
    box-shadow: 0 0 16px color-mix(in srgb, var(--widget-primary) 55%, transparent);
}
.widget-frame--neon .widget-status-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: color-mix(in srgb, var(--widget-primary) 30%, rgba(255,255,255,0.1));
    color: color-mix(in srgb, var(--widget-primary) 80%, #e8edf2 20%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: COMPACT
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--compact .widget-header {
    padding: 0.6rem 0.8rem;
    min-height: unset;
}
.widget-frame--compact .widget-avatar--hero {
    width: 2.4rem;
    height: 2.4rem;
    flex-basis: 2.4rem;
}
.widget-frame--compact .widget-header__copy strong {
    font-size: 0.88rem;
}
.widget-frame--compact .widget-header__copy p {
    font-size: 0.72rem;
}
.widget-frame--compact .widget-body {
    padding: 0.6rem;
}
.widget-frame--compact .widget-message {
    gap: 0.35rem;
    margin-bottom: 0.3rem;
}
.widget-frame--compact .widget-message__bubble {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 10px;
}
.widget-frame--compact .widget-message__avatar {
    width: 1.6rem;
    height: 1.6rem;
}
.widget-frame--compact .widget-form {
    padding: 0.5rem 0.7rem;
}
.widget-frame--compact .widget-form textarea {
    font-size: 0.82rem;
    min-height: 38px;
}
.widget-frame--compact .widget-send-button {
    width: 2.4rem;
    height: 2.4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.widget-frame--sidebar .widget-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--widget-primary);
    box-shadow: none;
}
.widget-frame--sidebar .widget-header__copy strong {
    color: color-mix(in srgb, var(--widget-primary) 85%, #0f172a 15%);
}
.widget-frame--sidebar .widget-body {
    background: #f8f9fa;
    border-left: 4px solid color-mix(in srgb, var(--widget-primary) 12%, transparent);
}
.widget-frame--sidebar .widget-welcome-card {
    border-left: 3px solid var(--widget-primary);
    border-radius: 0 var(--widget-radius) var(--widget-radius) 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(12, 22, 33, 0.06);
}
.widget-frame--sidebar .widget-message--bot .widget-message__bubble {
    background: #ffffff;
    border-left: 3px solid color-mix(in srgb, var(--widget-primary) 40%, transparent);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 1px 6px rgba(12, 22, 33, 0.06);
}
.widget-frame--sidebar .widget-message--user .widget-message__bubble {
    background: var(--widget-primary);
    border-radius: 12px 0 0 12px;
}
.widget-frame--sidebar .widget-form {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--widget-primary);
}
.widget-frame--sidebar .widget-send-button {
    background: var(--widget-primary);
    border-radius: 6px;
}

/* ═══ AURORA ═══════════════════════════════════════════════════════════════ */
.widget-frame--aurora .widget-header {
    background: linear-gradient(135deg, #4c1d95 0%, #0f766e 100%);
}
.widget-frame--aurora .widget-body { background: #f5f0ff; }
.widget-frame--aurora .widget-welcome-card { background: linear-gradient(180deg, #fff 0%, #f3e8ff 100%); }
.widget-frame--aurora .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, #7c3aed, #0f766e);
}
.widget-frame--aurora .widget-send-button { background: linear-gradient(135deg, #7c3aed, #0f766e); }
.widget-frame--aurora .widget-form { border-top: 1px solid rgba(124,58,237,.12); }

/* ═══ OCEAN ═════════════════════════════════════════════════════════════════ */
.widget-frame--ocean .widget-header {
    background: linear-gradient(160deg, #1e3a5f 0%, #0284c7 100%);
}
.widget-frame--ocean .widget-body { background: #f0f7ff; }
.widget-frame--ocean .widget-welcome-card { background: linear-gradient(180deg, #fff 0%, #e0f2fe 100%); }
.widget-frame--ocean .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, #1e3a5f, #0284c7);
}
.widget-frame--ocean .widget-send-button { background: linear-gradient(135deg, #1e3a5f, #0284c7); }
.widget-frame--ocean .widget-form { border-top: 1px solid rgba(2,132,199,.12); }

/* ═══ SUNSET ════════════════════════════════════════════════════════════════ */
.widget-frame--sunset .widget-header {
    background: linear-gradient(160deg, #c2410c 0%, #d97706 100%);
}
.widget-frame--sunset .widget-body { background: #fff7ed; }
.widget-frame--sunset .widget-welcome-card { background: linear-gradient(180deg, #fff 0%, #ffedd5 100%); }
.widget-frame--sunset .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, #c2410c, #d97706);
}
.widget-frame--sunset .widget-send-button { background: linear-gradient(135deg, #c2410c, #d97706); }
.widget-frame--sunset .widget-form { background: #fff7ed; border-top: 1px solid rgba(194,65,12,.1); }

/* ═══ FOREST ════════════════════════════════════════════════════════════════ */
.widget-frame--forest .widget-header {
    background: linear-gradient(160deg, #14532d 0%, #713f12 100%);
}
.widget-frame--forest .widget-body { background: #f0fdf4; }
.widget-frame--forest .widget-welcome-card { background: linear-gradient(180deg, #fff 0%, #dcfce7 100%); }
.widget-frame--forest .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, #14532d, #713f12);
}
.widget-frame--forest .widget-send-button { background: linear-gradient(135deg, #14532d, #713f12); }
.widget-frame--forest .widget-form { background: #f0fdf4; border-top: 1px solid rgba(20,83,45,.1); }

/* ═══ PAPER ═════════════════════════════════════════════════════════════════ */
.widget-frame--paper .widget-header {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
}
.widget-frame--paper .widget-header__copy strong { color: #1c1c1e; }
.widget-frame--paper .widget-body { background: #fdfcfa; }
.widget-frame--paper .widget-welcome-card { background: #fff; border: 1px solid #e5e5e5; box-shadow: none; }
.widget-frame--paper .widget-message__bubble { background: #f5f5f0; border: 1px solid #e8e8e4; box-shadow: none; border-radius: 6px; }
.widget-frame--paper .widget-message--user .widget-message__bubble { background: var(--widget-primary); border: none; }
.widget-frame--paper .widget-form { background: #fafafa; border-top: 1px solid #e5e5e5; box-shadow: none; }
.widget-frame--paper .widget-send-button { background: var(--widget-primary); border-radius: 6px; }

/* ═══ CORPORATE ══════════════════════════════════════════════════════════════ */
.widget-frame--corporate .widget-header { background: #1e3a8a; }
.widget-frame--corporate .widget-header__copy strong,
.widget-frame--corporate .widget-header__copy p { color: #ffffff; }
.widget-frame--corporate .widget-body { background: #f8fafc; }
.widget-frame--corporate .widget-welcome-card { background: #fff; border-color: rgba(30,58,138,.12); }
.widget-frame--corporate .widget-message--user .widget-message__bubble { background: #1e3a8a; }
.widget-frame--corporate .widget-send-button { background: #1e3a8a; border-radius: 4px; }
.widget-frame--corporate .widget-form { background: #f8fafc; border-top: 1px solid rgba(30,58,138,.12); }
.widget-frame--corporate .widget-status-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); }

/* ═══ CANDY ══════════════════════════════════════════════════════════════════ */
.widget-frame--candy .widget-header {
    background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
}
.widget-frame--candy .widget-body { background: #fdf4ff; }
.widget-frame--candy .widget-welcome-card { background: linear-gradient(180deg, #fff 0%, #fce7f3 100%); }
.widget-frame--candy .widget-message__bubble { border-radius: 20px; }
.widget-frame--candy .widget-message--user .widget-message__bubble {
    border-radius: 20px;
    background: linear-gradient(135deg, #db2777, #9333ea);
}
.widget-frame--candy .widget-send-button { background: linear-gradient(135deg, #db2777, #9333ea); border-radius: 50%; }
.widget-frame--candy .widget-form { background: #fdf4ff; border-top: 1px solid rgba(219,39,119,.12); }

/* ═══ MIDNIGHT ═══════════════════════════════════════════════════════════════ */
.widget-frame--midnight .widget-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(148,163,184,.1);
}
.widget-frame--midnight .widget-header__copy strong,
.widget-frame--midnight .widget-header__copy p { color: #e2e8f0; }
.widget-frame--midnight .widget-body { background: #0f172a; }
.widget-frame--midnight .widget-welcome-card { background: #1e293b; border-color: rgba(148,163,184,.1); }
.widget-frame--midnight .widget-welcome-card p { color: #94a3b8; }
.widget-frame--midnight .widget-message__bubble { background: #1e293b; color: #cbd5e1; border-color: rgba(148,163,184,.12); }
.widget-frame--midnight .widget-message__text { color: #cbd5e1; }
.widget-frame--midnight .widget-message--user .widget-message__bubble {
    background: linear-gradient(135deg, var(--widget-primary), color-mix(in srgb, var(--widget-primary) 70%, #334155 30%));
    color: #fff; border: none;
}
.widget-frame--midnight .widget-message--user .widget-message__text { color: #fff; }
.widget-frame--midnight .widget-form { background: #0f172a; border-top: 1px solid rgba(148,163,184,.1); }
.widget-frame--midnight .widget-form textarea { background: #1e293b; color: #cbd5e1; border-color: rgba(148,163,184,.14); }
.widget-frame--midnight .widget-form textarea::placeholder { color: rgba(148,163,184,.5); }
.widget-frame--midnight .widget-send-button { background: var(--widget-primary); }
.widget-frame--midnight .widget-status-pill { background: rgba(255,255,255,.06); border-color: rgba(148,163,184,.15); color: #94a3b8; }

/* ═══ VERIFICATION CARD — CLOSE BUTTON & TRIGGER ═════════════════════════════ */
.widget-verify-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(16, 33, 47, 0.06);
    color: rgba(16, 33, 47, 0.48);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.widget-verify-close:hover {
    background: rgba(16, 33, 47, 0.12);
    color: rgba(16, 33, 47, 0.8);
}

.widget-verify-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

/* ═══ PRESTINE — clean white minimal, closest to boutique style ══════════════ */
.widget-frame--prestine {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.09);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.widget-frame--prestine .widget-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #111111;
}
.widget-frame--prestine .widget-header__copy span { color: rgba(17,17,17,0.55); }
.widget-frame--prestine .widget-status-pill {
    background: rgba(17,17,17,0.05);
    border: 1px solid rgba(17,17,17,0.10);
    color: rgba(17,17,17,0.72);
}
.widget-frame--prestine .widget-close-button {
    background: #111111;
    border: 0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.widget-frame--prestine .widget-close-button:hover,
.widget-frame--prestine .widget-close-button:focus-visible { background: #333333; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.widget-frame--prestine .widget-avatar--hero { border: 2px solid rgba(0,0,0,0.08); box-shadow: none; }
.widget-frame--prestine .widget-body { background: #f9fafb; }
.widget-frame--prestine .widget-welcome-card { background: #ffffff; border: 1px solid rgba(0,0,0,0.07); box-shadow: none; }
.widget-frame--prestine .widget-welcome-card__eyebrow { color: rgba(17,17,17,0.50); }
.widget-frame--prestine .widget-message--bot .widget-message__bubble { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); box-shadow: none; }
.widget-frame--prestine .widget-message--user .widget-message__bubble { background: #111111; color: #ffffff; }
.widget-frame--prestine .widget-suggestion-chip { background: #ffffff; border: 1px solid rgba(0,0,0,0.10); }
.widget-frame--prestine .widget-form { background: #ffffff; border-top: 1px solid rgba(0,0,0,0.08); box-shadow: none; }
.widget-frame--prestine .widget-send-button { background: #111111; border-radius: 50%; }
.widget-frame--prestine .widget-send-button:hover,
.widget-frame--prestine .widget-send-button:focus-visible { background: #333333; }
.widget-frame--prestine .widget-message__meta { color: rgba(17,17,17,0.40); }

/* ═══ WARMCARD — warm cream card ═════════════════════════════════════════════ */
.widget-frame--warmcard {
    background: #faf7f2;
    border: 1px solid rgba(45,31,19,0.10);
    box-shadow: 0 8px 40px rgba(45,31,19,0.12), 0 2px 8px rgba(45,31,19,0.06);
}
.widget-frame--warmcard .widget-header {
    background: #faf7f2;
    border-bottom: 1px solid rgba(45,31,19,0.09);
    color: #2d1f13;
}
.widget-frame--warmcard .widget-header__copy span { color: rgba(45,31,19,0.55); }
.widget-frame--warmcard .widget-status-pill {
    background: rgba(45,31,19,0.06);
    border: 1px solid rgba(45,31,19,0.12);
    color: rgba(45,31,19,0.72);
}
.widget-frame--warmcard .widget-close-button { background: #2d1f13; border: 0; color: #ffffff; box-shadow: 0 4px 12px rgba(45,31,19,0.25); }
.widget-frame--warmcard .widget-close-button:hover,
.widget-frame--warmcard .widget-close-button:focus-visible { background: #4a3424; }
.widget-frame--warmcard .widget-avatar--hero { border: 2px solid rgba(45,31,19,0.10); box-shadow: none; }
.widget-frame--warmcard .widget-body { background: #f4ede3; }
.widget-frame--warmcard .widget-welcome-card { background: #faf7f2; border: 1px solid rgba(45,31,19,0.08); box-shadow: none; }
.widget-frame--warmcard .widget-welcome-card__eyebrow { color: rgba(45,31,19,0.52); }
.widget-frame--warmcard .widget-welcome-card p { color: rgba(45,31,19,0.65); }
.widget-frame--warmcard .widget-message--bot .widget-message__bubble { background: #faf7f2; border: 1px solid rgba(45,31,19,0.09); box-shadow: none; color: #2d1f13; }
.widget-frame--warmcard .widget-message--user .widget-message__bubble { background: #2d1f13; color: #ffffff; }
.widget-frame--warmcard .widget-suggestion-chip { background: #faf7f2; border: 1px solid rgba(45,31,19,0.12); color: #2d1f13; }
.widget-frame--warmcard .widget-form { background: #faf7f2; border-top: 1px solid rgba(45,31,19,0.09); box-shadow: none; }
.widget-frame--warmcard .widget-send-button { background: #2d1f13; border-radius: 50%; }
.widget-frame--warmcard .widget-send-button:hover,
.widget-frame--warmcard .widget-send-button:focus-visible { background: #4a3424; }
.widget-frame--warmcard .widget-message__meta { color: rgba(45,31,19,0.40); }

/* ═══ NIGHTCARD — dark minimal ════════════════════════════════════════════════ */
.widget-frame--nightcard {
    background: #0c0c0e;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    color: #f5f5f5;
}
.widget-frame--nightcard .widget-header { background: #0c0c0e; border-bottom: 1px solid rgba(255,255,255,0.07); color: #f5f5f5; }
.widget-frame--nightcard .widget-header__copy span { color: rgba(245,245,245,0.55); }
.widget-frame--nightcard .widget-status-pill { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(245,245,245,0.75); }
.widget-frame--nightcard .widget-close-button { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14); color: #f5f5f5; box-shadow: none; }
.widget-frame--nightcard .widget-close-button:hover,
.widget-frame--nightcard .widget-close-button:focus-visible { background: rgba(255,255,255,0.18); }
.widget-frame--nightcard .widget-avatar--hero { border: 2px solid rgba(255,255,255,0.15); box-shadow: none; }
.widget-frame--nightcard .widget-body { background: #121216; }
.widget-frame--nightcard .widget-welcome-card { background: #1a1a1e; border: 1px solid rgba(255,255,255,0.07); box-shadow: none; }
.widget-frame--nightcard .widget-welcome-card__eyebrow { color: rgba(245,245,245,0.45); }
.widget-frame--nightcard .widget-welcome-card p { color: rgba(245,245,245,0.65); }
.widget-frame--nightcard .widget-message--bot .widget-message__bubble { background: #1a1a1e; border: 1px solid rgba(255,255,255,0.08); box-shadow: none; color: #e8e8ea; }
.widget-frame--nightcard .widget-message--user .widget-message__bubble { background: #f5f5f5; color: #111111; }
.widget-frame--nightcard .widget-suggestion-chip { background: #1a1a1e; border: 1px solid rgba(255,255,255,0.10); color: #e8e8ea; }
.widget-frame--nightcard .widget-form { background: #0c0c0e; border-top: 1px solid rgba(255,255,255,0.07); box-shadow: none; }
.widget-frame--nightcard .widget-form textarea { background: #1a1a1e; color: #f5f5f5; border-color: rgba(255,255,255,0.10); }
.widget-frame--nightcard .widget-form textarea::placeholder { color: rgba(245,245,245,0.35); }
.widget-frame--nightcard .widget-send-button { background: #f5f5f5; color: #111111; border-radius: 50%; }
.widget-frame--nightcard .widget-send-button:hover,
.widget-frame--nightcard .widget-send-button:focus-visible { background: #ffffff; }
.widget-frame--nightcard .widget-message__meta { color: rgba(245,245,245,0.38); }

/* ═══ PURPLECHAT — purple icon launcher, no assistant photo ══════════════ */
.widget-frame--purplechat {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.widget-frame--purplechat .widget-header { background: #4f46e5; color: #ffffff; }
.widget-frame--purplechat .widget-header__copy span { color: rgba(255,255,255,0.75); }
.widget-frame--purplechat .widget-status-pill { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.88); }
.widget-frame--purplechat .widget-close-button { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.30); color: #ffffff; box-shadow: none; }
.widget-frame--purplechat .widget-close-button:hover,
.widget-frame--purplechat .widget-close-button:focus-visible { background: rgba(255,255,255,0.28); }
.widget-frame--purplechat .widget-avatar--hero { border: 2px solid rgba(255,255,255,0.5); }
.widget-frame--purplechat .widget-body { background: #ffffff; }
.widget-frame--purplechat .widget-welcome-card { background: #f5f3ff; border: 1px solid rgba(79,70,229,0.10); box-shadow: none; }
.widget-frame--purplechat .widget-welcome-card__eyebrow { color: rgba(79,70,229,0.65); }
.widget-frame--purplechat .widget-message--bot .widget-message__bubble { background: #eef2ff; border: 1px solid rgba(79,70,229,0.10); box-shadow: none; color: #1e1b4b; }
.widget-frame--purplechat .widget-message--user .widget-message__bubble { background: #4f46e5; color: #ffffff; }
.widget-frame--purplechat .widget-suggestion-chip { background: #f5f3ff; border: 1px solid rgba(79,70,229,0.18); color: #4f46e5; }
.widget-frame--purplechat .widget-form { background: #ffffff; border-top: 1px solid rgba(0,0,0,0.07); box-shadow: none; }
.widget-frame--purplechat .widget-form textarea { border-color: rgba(79,70,229,0.28); border-radius: 999px; padding: 0.75rem 1.1rem; }
.widget-frame--purplechat .widget-form textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.widget-frame--purplechat .widget-send-button { background: #4f46e5; border-radius: 50%; box-shadow: 0 6px 16px rgba(79,70,229,0.40); }
.widget-frame--purplechat .widget-send-button:hover,
.widget-frame--purplechat .widget-send-button:focus-visible { background: #4338ca; }
.widget-frame--purplechat .widget-message__meta { color: rgba(0,0,0,0.38); }

/* ═══ TEALCHAT — teal icon launcher, no assistant photo ═════════════════ */
.widget-frame--tealchat {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.widget-frame--tealchat .widget-header { background: #0891b2; color: #ffffff; }
.widget-frame--tealchat .widget-header__copy span { color: rgba(255,255,255,0.75); }
.widget-frame--tealchat .widget-status-pill { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.88); }
.widget-frame--tealchat .widget-close-button { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.30); color: #ffffff; box-shadow: none; }
.widget-frame--tealchat .widget-close-button:hover,
.widget-frame--tealchat .widget-close-button:focus-visible { background: rgba(255,255,255,0.28); }
.widget-frame--tealchat .widget-avatar--hero { border: 2px solid rgba(255,255,255,0.5); }
.widget-frame--tealchat .widget-body { background: #ffffff; }
.widget-frame--tealchat .widget-welcome-card { background: #ecfeff; border: 1px solid rgba(8,145,178,0.10); box-shadow: none; }
.widget-frame--tealchat .widget-welcome-card__eyebrow { color: rgba(8,145,178,0.70); }
.widget-frame--tealchat .widget-message--bot .widget-message__bubble { background: #e0f7fa; border: 1px solid rgba(8,145,178,0.12); box-shadow: none; color: #083344; }
.widget-frame--tealchat .widget-message--user .widget-message__bubble { background: #0891b2; color: #ffffff; }
.widget-frame--tealchat .widget-suggestion-chip { background: #ecfeff; border: 1px solid rgba(8,145,178,0.20); color: #0891b2; }
.widget-frame--tealchat .widget-form { background: #ffffff; border-top: 1px solid rgba(0,0,0,0.07); box-shadow: none; }
.widget-frame--tealchat .widget-form textarea { border-color: rgba(8,145,178,0.28); border-radius: 999px; padding: 0.75rem 1.1rem; }
.widget-frame--tealchat .widget-form textarea:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }
.widget-frame--tealchat .widget-send-button { background: #0891b2; border-radius: 50%; box-shadow: 0 6px 16px rgba(8,145,178,0.40); }
.widget-frame--tealchat .widget-send-button:hover,
.widget-frame--tealchat .widget-send-button:focus-visible { background: #0e7490; }
.widget-frame--tealchat .widget-message__meta { color: rgba(0,0,0,0.38); }

/* ═══ GREENCHAT — emerald icon launcher, no assistant photo ═════════════ */
.widget-frame--greenchat {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.widget-frame--greenchat .widget-header { background: #059669; color: #ffffff; }
.widget-frame--greenchat .widget-header__copy span { color: rgba(255,255,255,0.75); }
.widget-frame--greenchat .widget-status-pill { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.88); }
.widget-frame--greenchat .widget-close-button { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.30); color: #ffffff; box-shadow: none; }
.widget-frame--greenchat .widget-close-button:hover,
.widget-frame--greenchat .widget-close-button:focus-visible { background: rgba(255,255,255,0.28); }
.widget-frame--greenchat .widget-avatar--hero { border: 2px solid rgba(255,255,255,0.5); }
.widget-frame--greenchat .widget-body { background: #ffffff; }
.widget-frame--greenchat .widget-welcome-card { background: #ecfdf5; border: 1px solid rgba(5,150,105,0.10); box-shadow: none; }
.widget-frame--greenchat .widget-welcome-card__eyebrow { color: rgba(5,150,105,0.70); }
.widget-frame--greenchat .widget-message--bot .widget-message__bubble { background: #d1fae5; border: 1px solid rgba(5,150,105,0.12); box-shadow: none; color: #064e3b; }
.widget-frame--greenchat .widget-message--user .widget-message__bubble { background: #059669; color: #ffffff; }
.widget-frame--greenchat .widget-suggestion-chip { background: #ecfdf5; border: 1px solid rgba(5,150,105,0.20); color: #059669; }
.widget-frame--greenchat .widget-form { background: #ffffff; border-top: 1px solid rgba(0,0,0,0.07); box-shadow: none; }
.widget-frame--greenchat .widget-form textarea { border-color: rgba(5,150,105,0.28); border-radius: 999px; padding: 0.75rem 1.1rem; }
.widget-frame--greenchat .widget-form textarea:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.widget-frame--greenchat .widget-send-button { background: #059669; border-radius: 50%; box-shadow: 0 6px 16px rgba(5,150,105,0.40); }
.widget-frame--greenchat .widget-send-button:hover,
.widget-frame--greenchat .widget-send-button:focus-visible { background: #047857; }
.widget-frame--greenchat .widget-message__meta { color: rgba(0,0,0,0.38); }
