:root {
    --ccai-orange: #e87519;
    --ccai-orange-dark: #c9590b;
    --ccai-navy: #183b56;
    --ccai-green: #109b22;
    --ccai-green-dark: #0b7a1a;
    --ccai-ink: #17212b;
    --ccai-muted: #647381;
    --ccai-line: #e3e8ec;
    --ccai-soft: #f4f7f9;
    --ccai-white: #ffffff;
    --ccai-success: #28a96b;
}

.ccai-root,
.ccai-root * {
    box-sizing: border-box;
}

.ccai-root {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483000;
    color: var(--ccai-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.ccai-launcher {
    min-height: 58px;
    padding: 8px 20px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--ccai-orange);
    color: var(--ccai-white);
    font: inherit;
    font-weight: 750;
    letter-spacing: .01em;
    box-shadow: 0 12px 32px rgba(20, 45, 65, .24), 0 3px 8px rgba(20, 45, 65, .14);
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, max-width .18s ease, min-height .18s ease, padding .18s ease;
}

.ccai-launcher:hover {
    background: var(--ccai-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 36px rgba(20, 45, 65, .28), 0 4px 9px rgba(20, 45, 65, .16);
}

.ccai-launcher:focus-visible,
.ccai-close:focus-visible,
.ccai-send:focus-visible,
.ccai-action:focus-visible,
.ccai-suggestion:focus-visible,
.ccai-input:focus-visible {
    outline: 3px solid rgba(232, 117, 25, .32);
    outline-offset: 2px;
}

.ccai-launcher-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
}

.ccai-launcher-label {
    white-space: nowrap;
}

.ccai-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(390px, calc(100vw - 28px));
    height: min(640px, calc(100vh - 118px));
    height: min(640px, calc(100dvh - 118px));
    min-height: 470px;
    padding: 0; /* Override the website's global section spacing. */
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    overflow: hidden;
    border: 1px solid rgba(19, 59, 86, .12);
    border-radius: 22px;
    background: var(--ccai-white);
    box-shadow: 0 24px 70px rgba(17, 39, 56, .28), 0 5px 18px rgba(17, 39, 56, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(.975);
    transform-origin: right bottom;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ccai-root.ccai-open .ccai-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ccai-root.ccai-open .ccai-launcher {
    visibility: hidden;
    pointer-events: none;
}

.ccai-header {
    min-height: 74px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ccai-white);
    background: linear-gradient(135deg, var(--ccai-orange-dark), var(--ccai-orange));
}

.ccai-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border: 2px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    color: var(--ccai-white);
    background: var(--ccai-orange);
    font-size: 20px;
    font-weight: 850;
}

.ccai-header-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ccai-header-copy strong {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccai-header-copy > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
}

.ccai-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #4ce39a;
    box-shadow: 0 0 0 3px rgba(76, 227, 154, .17);
}

.ccai-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 0;
    border-radius: 50%;
    color: var(--ccai-white);
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
}

.ccai-close:hover {
    background: rgba(255, 255, 255, .19);
}

.ccai-messages {
    min-height: 0;
    padding: 17px 14px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #f9fbfc 0%, var(--ccai-white) 30%);
    scrollbar-width: thin;
    scrollbar-color: #bdc8cf transparent;
}

.ccai-message-row {
    margin: 0 0 10px;
    display: flex;
}

.ccai-message-row.ccai-assistant {
    flex-direction: column;
    align-items: flex-start;
}

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

.ccai-message {
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 15px 15px 15px 5px;
    color: var(--ccai-ink);
    background: var(--ccai-soft);
    box-shadow: 0 1px 1px rgba(20, 45, 65, .05);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    -webkit-user-select: text;
    user-select: text;
}

.ccai-user .ccai-message {
    border-radius: 15px 15px 5px 15px;
    color: var(--ccai-white);
    background: var(--ccai-green-dark);
}

.ccai-message a {
    color: var(--ccai-orange-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    -webkit-user-select: text;
    user-select: text;
}

.ccai-user .ccai-message a {
    color: var(--ccai-white);
}

.ccai-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 48px;
    min-height: 21px;
}

.ccai-typing i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: #8a98a3;
    animation: ccai-bounce 1.15s infinite ease-in-out;
}

.ccai-typing i:nth-child(2) { animation-delay: .13s; }
.ccai-typing i:nth-child(3) { animation-delay: .26s; }

@keyframes ccai-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.ccai-suggestions {
    padding: 3px 12px 9px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    cursor: grab;
    background: var(--ccai-white);
}

.ccai-suggestions.ccai-dragging,
.ccai-suggestions.ccai-dragging .ccai-suggestion {
    cursor: grabbing;
    user-select: none;
}

.ccai-suggestions::-webkit-scrollbar { display: none; }

.ccai-suggestion {
    padding: 7px 10px;
    flex: 0 0 auto;
    border: 1px solid rgba(232, 117, 25, .34);
    border-radius: 999px;
    color: #9c4809;
    background: #fff8f2;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.ccai-suggestion:hover {
    border-color: var(--ccai-orange);
    background: #fff1e5;
}

.ccai-suggestion:disabled {
    opacity: .55;
    cursor: wait;
}

.ccai-actions {
    padding: 0 12px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--ccai-white);
}

.ccai-actions-single {
    grid-template-columns: 1fr;
}

.ccai-action {
    min-height: 37px;
    padding: 8px 9px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    font-family: inherit;
    cursor: pointer;
}

.ccai-action-secondary {
    border: 1px solid #cbd6dc;
    color: var(--ccai-navy) !important;
    background: var(--ccai-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ccai-handover-row {
    margin: 2px 0 12px;
}

.ccai-handover-card {
    padding: 13px;
    border: 1px solid #bddbc4;
    border-radius: 15px;
    background: #f5fbf6;
    box-shadow: 0 4px 14px rgba(11, 122, 26, .08);
}

.ccai-handover-title {
    display: block;
    color: var(--ccai-green-dark);
    font-size: 14px;
}

.ccai-handover-intro,
.ccai-handover-privacy,
.ccai-handover-error {
    margin: 5px 0 9px;
    color: #42515d;
    font-size: 11.5px;
    line-height: 1.4;
}

.ccai-handover-field {
    margin-top: 8px;
    display: block;
    color: var(--ccai-navy);
    font-size: 11.5px;
    font-weight: 700;
}

.ccai-handover-field input {
    width: 100%;
    min-height: 40px;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #c6d4da;
    border-radius: 9px;
    color: var(--ccai-ink);
    background: var(--ccai-white);
    font: inherit;
    font-weight: 400;
}

.ccai-handover-field input:focus {
    border-color: var(--ccai-green);
    outline: 3px solid rgba(16, 155, 34, .13);
}

.ccai-handover-error {
    min-height: 16px;
    margin-bottom: 2px;
    color: #a32318;
    font-weight: 700;
}

.ccai-handover-controls {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 7px;
}

.ccai-handover-continue,
.ccai-handover-cancel,
.ccai-emergency-button {
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.ccai-handover-continue {
    border: 1px solid var(--ccai-green-dark);
    color: var(--ccai-white);
    background: var(--ccai-green-dark);
}

.ccai-handover-cancel {
    border: 1px solid #c6d4da;
    color: var(--ccai-navy);
    background: var(--ccai-white);
}

.ccai-handover-privacy { margin-bottom: 0; }

.ccai-emergency-actions {
    width: min(100%, 330px);
    margin-top: 7px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    border: 1px solid #edb8b2;
    border-radius: 12px;
    background: #fff7f6;
}

.ccai-emergency-title {
    grid-column: 1 / -1;
    color: #922d24;
    font-size: 12px;
}

.ccai-emergency-button {
    display: grid;
    place-items: center;
    border: 1px solid #d2dbe0;
    color: var(--ccai-navy);
    background: var(--ccai-white);
}

.ccai-emergency-call,
.ccai-emergency-whatsapp {
    border-color: var(--ccai-green-dark);
    color: var(--ccai-green-dark);
}

.ccai-emergency-112 {
    grid-column: 1 / -1;
    border-color: #b73328;
    color: var(--ccai-white);
    background: #b73328;
}

.ccai-whatsapp-icon { flex: 0 0 16px; color: #25a85a; }

.ccai-action-secondary:hover { background: var(--ccai-soft); }

.ccai-form {
    margin: 0 12px;
    padding: 5px 5px 5px 12px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    border: 1px solid #ccd7dd;
    border-radius: 14px;
    background: var(--ccai-white);
    box-shadow: 0 2px 8px rgba(24, 59, 86, .06);
}

.ccai-form:focus-within {
    border-color: var(--ccai-orange);
    box-shadow: 0 0 0 3px rgba(232, 117, 25, .12);
}

.ccai-input {
    width: 100%;
    min-height: 37px;
    max-height: 92px;
    padding: 8px 0 6px;
    resize: none;
    overflow-y: auto;
    border: 0;
    outline: 0 !important;
    color: var(--ccai-ink);
    background: transparent;
    box-shadow: none !important;
    font: inherit;
    line-height: 1.35;
}

.ccai-input::placeholder { color: #84919b; }

.ccai-send {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 0;
    border-radius: 11px;
    color: var(--ccai-white);
    background: var(--ccai-orange);
    cursor: pointer;
}

.ccai-send:hover { background: var(--ccai-orange-dark); }
.ccai-send:disabled { opacity: .48; cursor: wait; }

.ccai-privacy {
    margin: 0;
    padding: 7px 12px 10px;
    color: var(--ccai-muted);
    background: var(--ccai-white);
    font-size: 10.5px;
    line-height: 1.3;
    text-align: center;
}

.ccai-privacy a {
    margin-left: 4px;
    color: var(--ccai-navy);
    font-weight: 700;
}

.ccai-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ccai-live-row {
    margin: 2px 0 12px;
    width: 100%;
}

.ccai-live-card {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7e1e6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(17, 57, 78, .08);
}

.ccai-live-title {
    display: block;
    margin-bottom: 10px;
    color: var(--ccai-green-dark);
    font-size: 15px;
}

.ccai-live-conversation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 9px;
}

.ccai-live-conversation-message {
    max-width: 88%;
    padding: 8px 10px;
    border-radius: 12px;
    color: #26343d;
    background: #f1f4f6;
    font-size: 12px;
    line-height: 1.4;
}

.ccai-live-conversation-user {
    align-self: flex-end;
    color: #fff;
    background: var(--ccai-green-dark);
}

.ccai-live-conversation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
}

.ccai-live-choice {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--ccai-green);
    border-radius: 18px;
    color: var(--ccai-green-dark);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ccai-live-choice:hover {
    color: #fff;
    background: var(--ccai-green);
}

.ccai-live-date-fields,
.ccai-live-time-fields {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.ccai-live-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #33434e;
    font-size: 11px;
    font-weight: 700;
}

.ccai-live-field-wide,
.ccai-live-submit,
.ccai-live-status,
.ccai-live-results {
    grid-column: 1 / -1;
}

.ccai-live-field select,
.ccai-live-field input {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #cbd6dc;
    border-radius: 9px;
    outline: 0;
    color: var(--ccai-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
}

.ccai-live-field select:focus,
.ccai-live-field input:focus {
    border-color: var(--ccai-green);
    box-shadow: 0 0 0 3px rgba(16, 155, 34, .12);
}

.ccai-live-submit,
.ccai-live-continue {
    min-height: 38px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--ccai-orange);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ccai-live-submit:hover,
.ccai-live-continue:hover { background: var(--ccai-orange-dark); }
.ccai-live-submit:disabled { opacity: .55; cursor: wait; }

.ccai-live-status,
.ccai-live-summary,
.ccai-live-note {
    margin: 0;
    color: #52636f;
    font-size: 11.5px;
    line-height: 1.4;
}

.ccai-live-results {
    display: grid;
    gap: 8px;
}

.ccai-live-summary { font-weight: 700; }

.ccai-live-result {
    padding: 8px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid #e0e7eb;
    border-radius: 11px;
    background: #f8fafb;
}

.ccai-live-result-no-image {
    grid-template-columns: minmax(0, 1fr);
}

.ccai-live-result img {
    width: 58px;
    height: 48px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

.ccai-live-result-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ccai-live-result-copy strong {
    color: var(--ccai-navy);
    font-size: 12.5px;
}

.ccai-live-result-copy span,
.ccai-live-result-copy small {
    color: #5c6a74;
    font-size: 10.5px;
    overflow-wrap: anywhere;
}

.ccai-live-result-copy b {
    color: var(--ccai-green-dark);
    font-size: 12px;
}

.ccai-live-continue {
    grid-column: 1 / -1;
    width: 100%;
}

.ccai-live-note { padding-top: 2px; }

@media (max-width: 540px) {
    .ccai-root {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .ccai-launcher {
        min-height: 48px;
        max-width: 104px;
        padding: 6px 13px 6px 6px;
        gap: 7px;
    }

    .ccai-launcher-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .ccai-root.ccai-launcher-expanded .ccai-launcher {
        min-height: 54px;
        max-width: 260px;
        padding: 6px 17px 6px 7px;
    }

    .ccai-panel {
        position: fixed;
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: min(720px, calc(100vh - 20px));
        height: min(720px, calc(100dvh - 20px));
        min-height: 0;
        border-radius: 20px;
        transform-origin: right bottom;
    }

    .ccai-root.ccai-open .ccai-launcher { display: none; }

    .ccai-message-row.ccai-assistant .ccai-message {
        color: #10171e;
        font-weight: 300;
    }

    .ccai-live-card {
        padding: 10px;
    }

    .ccai-live-date-fields,
    .ccai-live-time-fields {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccai-panel,
    .ccai-launcher,
    .ccai-typing i {
        animation: none !important;
        transition: none !important;
    }
}
.ccai-feedback{display:flex;align-items:center;gap:6px;margin:4px 8px 0;color:#52636f;font-size:11px}
.ccai-feedback button{border:1px solid #cbd6dc;background:#fff;border-radius:14px;padding:2px 7px;cursor:pointer;line-height:1.35}
.ccai-feedback button:disabled{opacity:.55;cursor:default}
