.cb-root {
    --cb-color: #1f6feb;
    --cb-border: #e5e7eb;
    --cb-muted: #6b7280;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #1c1c1e
}

.cb-root *,
.cb-root *::before,
.cb-root *::after {
    box-sizing: border-box
}

.cb-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--cb-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    z-index: 2147483000;
}

.cb-launcher svg {
    width: 26px;
    height: 26px;
    fill: currentColor
}

.cb-launcher:focus-visible,
.cb-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--cb-color)
}

.cb-panel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 400px;
    max-width: calc(100vw - 24px);
    height: 580px;
    max-height: calc(100vh - 108px);
    background: #fff;
    border: 1px solid var(--cb-border);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 2147483000
}

.cb-panel.cb-open {
    display: flex
}

.cb-header {
    background: var(--cb-color);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600
}

.cb-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px
}

.cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9fafb
}

.cb-msg {
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.cb-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--cb-border)
}

.cb-user {
    align-self: flex-end;
    background: var(--cb-color);
    color: #fff
}

.cb-typing {
    color: var(--cb-muted);
    font-style: italic
}

.cb-cards {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.cb-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cb-border);
    border-radius: 10px;
    padding: 8px
}

.cb-card--product {
    border-color: #dbe4f0;
    background: #fbfdff
}

.cb-card--category {
    border-color: #e4e0d8;
    background: #fcfbf8
}

.cb-card img,
.cb-card-icon {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex: none
}

.cb-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe3;
    color: #6b5e4e
}

.cb-card-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor
}

.cb-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.cb-card-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cb-muted)
}

.cb-card--category .cb-card-type {
    color: #8a7a63
}

.cb-card--product .cb-card-type {
    color: #5b7394
}

.cb-card a {
    color: var(--cb-color);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere
}

.cb-card a:hover {
    text-decoration: underline
}

.cb-meta {
    color: var(--cb-muted);
    font-size: 13px
}

.cb-badge {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #256029;
    width: fit-content;
}

.cb-badge.cb-out {
    background: #fdecea;
    color: #8a2c22
}

.cb-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--cb-border);
    background: #fff;
    overflow-y: auto;
    flex: none
}

.cb-form input[type=text],
.cb-form input[type=email],
.cb-form input[type=tel],
.cb-form textarea,
.cb-inputbar input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    color: inherit;
    background: #fff
}

.cb-form textarea {
    resize: vertical
}

.cb-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--cb-muted);
    cursor: pointer;
    margin-top: 8px;
}

/* Reset global site `input { width:100%; padding:… }` so the box stays a checkbox */
.cb-consent input[type=checkbox] {
    flex: none;
    width: 1em;
    height: 1em;
    padding: 0;
    border: 1px solid var(--cb-border);
    border-radius: 3px;
    accent-color: var(--cb-color);
    -webkit-appearance: checkbox;
    appearance: auto
}

.cb-consent span {
    flex: 1;
    min-width: 0
}

.cb-consent a {
    color: var(--cb-color)
}

.cb-form-msg {
    color: #b42318;
    font-size: 13px;
    min-height: 0
}

.cb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0
}

.cb-submit,
.cb-send {
    border: 0;
    border-radius: 8px;
    background: var(--cb-color);
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer
}

.cb-submit {
    width: 100%
}

.cb-submit:disabled,
.cb-send:disabled,
.cb-inputbar input:disabled {
    opacity: .55;
    cursor: not-allowed
}

.cb-inputbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--cb-border);
    background: #fff
}

.cb-inputbar input {
    flex: 1;
    min-width: 0;
    width: auto
}

@media (max-width:480px) {
    .cb-panel {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        max-height: 100%;
        border-radius: 0
    }
}

@media (prefers-reduced-motion:no-preference) {
    .cb-launcher {
        transition: transform .15s
    }

    .cb-launcher:hover {
        transform: scale(1.06)
    }
}