/* =====================================================
   Herit Chatbot — chatbot.css
   Matches the design from chatbot.html exactly.
   ===================================================== */

/* ─────────────────────────────────────────
   0. BASE OVERRIDES for this page
───────────────────────────────────────── */

body:has(.cb-wrapper) {
    overflow: hidden;
}

/* ─────────────────────────────────────────
   1. FULL-PAGE WRAPPER
───────────────────────────────────────── */

.cb-wrapper {
    display: flex;
    width: 100%;
    /* Fill from below the site header to viewport bottom */
    height: calc(100vh - 74px);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    position: relative;
}

/* ─────────────────────────────────────────
   2. SIDEBAR
───────────────────────────────────────── */

.cb-sidebar {
    width: 380px;
    min-width: 380px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ececec;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 20;
    transition: transform 0.3s ease;
}

.cb-sidebar::-webkit-scrollbar { width: 7px; }
.cb-sidebar::-webkit-scrollbar-thumb { background: #bfbfbf; border-radius: 20px; }
.cb-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Sidebar action items (New Chat, Search) ── */
.cb-side-action {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.cb-side-action:hover { background: #fff5ee; color: #F47419; }
.cb-side-action:focus-visible { outline: 2px solid #F47419; outline-offset: 2px; border-radius: 8px; }

.cb-side-action i {
    color: #F47419;
    font-size: 22px;
    flex-shrink: 0;
}

/* ── Progress inside sidebar ── */
.cb-progress-wrap {
    margin: 8px 0 28px;
    padding: 16px;
    background: #fff9f5;
    border: 1px solid #ffe0c4;
    border-radius: 16px;
}

.cb-progress-stages {
    display: flex;
    align-items: center;
    gap: 0;
}

.cb-progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    position: relative;
}

.cb-stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cb-stage-name {
    font-size: 10px;
    font-weight: 500;
    color: #bbb;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cb-progress-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin-bottom: 17px;
    transition: background 0.3s ease;
}

/* Active stage */
.cb-stage--active .cb-stage-dot {
    background: #F47419;
    border-color: #F47419;
    box-shadow: 0 0 0 3px rgba(244,116,25,0.2);
    transform: scale(1.2);
}
.cb-stage--active .cb-stage-name { color: #F47419; font-weight: 700; }

/* Completed stage */
.cb-stage--done .cb-stage-dot {
    background: #22c55e;
    border-color: #22c55e;
}
.cb-stage--done .cb-stage-name { color: #22c55e; }
.cb-stage--done + .cb-progress-connector { background: #22c55e; }

/* ── History title ── */
.cb-history-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-top: 4px;
    margin-bottom: 16px;
}

/* ── Chat list ── */
.cb-chat-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.cb-chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 13px 4px;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-chat-item i { color: #ccc; font-size: 13px; flex-shrink: 0; }
.cb-chat-item:hover { color: #F47419; }
.cb-chat-item:hover i { color: #F47419; }
.cb-chat-item:focus-visible { outline: 2px solid #F47419; border-radius: 4px; }

.cb-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    color: #bbb;
    font-size: 13px;
    text-align: center;
}
.cb-chat-empty i { font-size: 28px; }

/* ── Login prompt (guests) ── */
.cb-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.cb-login-prompt i { font-size: 36px; color: #e0e0e0; }
.cb-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s;
}
.cb-login-btn:hover { opacity: 0.88; }

/* ── Sidebar footer ── */
.cb-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #efefef;
}

.cb-start-over-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #f0d5c4;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    width: 100%;
}
.cb-start-over-btn:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.cb-start-over-btn i { font-size: 14px; }

/* ─────────────────────────────────────────
   3. MAIN CHAT AREA
───────────────────────────────────────── */

.cb-main {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ── Offline banner ── */
.cb-offline-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Thread ── */
.cb-thread {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 40px 60px 40px;
    background: #f7f7f7;

    /* Dot pattern background matching chatbot.html */
    background-image: radial-gradient(rgba(244, 116, 25, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
}

.cb-thread::-webkit-scrollbar { width: 8px; }
.cb-thread::-webkit-scrollbar-thumb { background: #bfbfbf; border-radius: 20px; }
.cb-thread::-webkit-scrollbar-track { background: transparent; }

/* ── Fixed input bar ── */
.cb-input-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 82px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    margin: 0 40px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    flex-shrink: 0;
    z-index: 10;
}

.cb-input-field {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    font-size: 17px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}
.cb-input-field::placeholder { color: #aaa; }
.cb-input-field:disabled { opacity: 0.5; cursor: not-allowed; }

.cb-send-btn,
.cb-mic-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cb-mic-btn { margin-left: 10px; }
.cb-send-btn:hover, .cb-mic-btn:hover { transform: translateY(-2px); }
.cb-send-btn:disabled, .cb-mic-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cb-send-btn:focus-visible, .cb-mic-btn:focus-visible { outline: 3px solid #F47419; outline-offset: 3px; }

/* ─────────────────────────────────────────
   4. MESSAGES
───────────────────────────────────────── */

.message-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 28px;
    animation: msgIn 0.25s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Icons */
.bot-icon,
.user-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #F47419, #d86314);
}
.bot-icon  { margin-right: 12px; }
.user-icon { margin-left: 12px; }

/* Message content */
.message-content { max-width: 780px; }

/* Bubble */
.bubble {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(244,116,25,0.15);
    line-height: 1.6;
    word-break: break-word;
}

/* User bubble */
.user .bubble {
    background: #ececec;
    color: #555;
    box-shadow: none;
}

/* Error bubble */
.bubble--error {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: none;
    border: 1px solid #fecaca;
}

/* ─────────────────────────────────────────
   5. OPTION / QUICK-REPLY BUTTONS
───────────────────────────────────────── */

.option-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.option {
    border: none;
    padding: 11px 20px;
    border-radius: 14px;
    background: #ececec;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.option:hover {
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    box-shadow: 0 6px 18px rgba(244,116,25,0.2);
}

.option.active,
.option--selected {
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    box-shadow: 0 10px 20px rgba(244,116,25,0.18);
}

.option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.option:focus-visible {
    outline: 3px solid #F47419;
    outline-offset: 2px;
}

.option--skip {
    background: #f5f5f5;
    color: #999;
    border: 1px dashed #ddd;
}
.option--skip:hover { background: #f0f0f0; color: #777; box-shadow: none; }

/* ─────────────────────────────────────────
   6. PACKAGE / RICH CARDS
───────────────────────────────────────── */

.package-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.package-wrapper::-webkit-scrollbar { height: 4px; }
.package-wrapper::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 99px; }

.card {
    min-width: 280px;
    width: 280px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.card--selected {
    border-color: #22c55e;
    box-shadow: 0 10px 30px rgba(34,197,94,0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.card:hover .card-image img { transform: scale(1.06); }

/* Skeleton shimmer */
.card-image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.card-image-skeleton.hidden { display: none; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 12px;
    font-weight: 600;
    color: #F47419;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #888;
    margin-bottom: 14px;
}

.card-meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}

.card-stars { color: #f59e0b; font-size: 12px; margin-bottom: 6px; }

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.price span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.book-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.book-btn:hover { opacity: 0.88; }
.book-btn--selected { background: linear-gradient(135deg, #22c55e, #16a34a); }
.book-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.book-btn:focus-visible { outline: 3px solid #F47419; outline-offset: 2px; }

/* ─────────────────────────────────────────
   7. TYPING INDICATOR
───────────────────────────────────────── */

.typing-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.typing-bubble {
    background: linear-gradient(135deg, #F47419, #d86314);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(244,116,25,0.12);
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1.1); opacity: 1; }
}

/* ─────────────────────────────────────────
   8. GUEST FORM (inline in chat)
───────────────────────────────────────── */

.guest-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 22px 24px;
    max-width: 460px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-top: 4px;
}

.guest-form-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.gf-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.gf-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gf-field label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gf-input {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.18s ease;
    width: 100%;
    background: #fff;
}
.gf-input:focus { border-color: #F47419; }
.gf-input--error { border-color: #ef4444; }

.gf-error-text {
    font-size: 11px;
    color: #ef4444;
    margin-top: 1px;
}

.gf-hint {
    font-size: 10px;
    color: #bbb;
}

.gf-phone-wrap {
    display: flex;
    gap: 6px;
}

.gf-cc-select {
    width: 90px;
    flex-shrink: 0;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 9px 8px;
    font-size: 13px;
    color: #444;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    cursor: pointer;
}

.gf-submit-btn {
    margin-top: 14px;
    width: 100%;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(244,116,25,0.2);
    transition: opacity 0.2s ease;
}
.gf-submit-btn:hover { opacity: 0.88; }
.gf-submit-btn:focus-visible { outline: 3px solid #F47419; outline-offset: 2px; }

/* ─────────────────────────────────────────
   9. DATE PICKER (inline)
───────────────────────────────────────── */

.cb-date-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.cb-date-input {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    cursor: pointer;
}
.cb-date-input:focus { border-color: #F47419; }

/* ─────────────────────────────────────────
   10. COUPON INPUT
───────────────────────────────────────── */

.cb-coupon-wrap {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-width: 380px;
}

.cb-coupon-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    background: #fff;
}
.cb-coupon-input:focus { border-color: #F47419; }

.cb-coupon-apply {
    padding: 11px 20px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   11. REVIEW SUMMARY CARD
───────────────────────────────────────── */

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-top: 4px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 10px;
}
.review-row:last-child { border-bottom: none; }

.review-row__label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.review-row__value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    text-align: right;
    margin: 0 10px;
}

.review-row__change {
    font-size: 12px;
    color: #F47419;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}
.review-row__change:hover { color: #d86314; }
.review-row__change:focus-visible { outline: 2px solid #F47419; border-radius: 3px; }

/* ─────────────────────────────────────────
   12. PRICE SUMMARY
───────────────────────────────────────── */

.price-summary-card {
    background: #fff9f5;
    border: 1.5px solid #ffe0c4;
    border-radius: 20px;
    padding: 18px 20px;
    max-width: 380px;
    margin-top: 14px;
}

.ps-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    color: #555;
}

.ps-row--discount {
    color: #16a34a;
    font-weight: 600;
}

.ps-row--total {
    border-top: 1.5px solid #F47419;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #F47419;
}

/* ─────────────────────────────────────────
   13. PAY BUTTON
───────────────────────────────────────── */

.cb-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F47419, #d86314);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 28px rgba(244,116,25,0.28);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.cb-pay-btn:hover { transform: translateY(-2px); }
.cb-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.cb-pay-btn:focus-visible { outline: 3px solid #F47419; outline-offset: 3px; }

.cb-pay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

/* ─────────────────────────────────────────
   14. SUCCESS BANNER
───────────────────────────────────────── */

.cb-success-card {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 24px;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(34,197,94,0.12);
    margin-top: 4px;
}

.cb-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 8px;
}

.cb-success-code {
    font-size: 28px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: 2px;
    display: block;
    margin: 10px 0 14px;
}

.cb-success-summary {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.cb-success-link {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 12px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(34,197,94,0.2);
    transition: opacity 0.2s;
}
.cb-success-link:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   15. MOBILE SIDEBAR TOGGLE
───────────────────────────────────────── */

.cb-sidebar-toggle {
    display: none;
    position: fixed;
    top: 84px;
    left: 12px;
    z-index: 100;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #F47419;
    transition: background 0.2s;
}
.cb-sidebar-toggle:hover { background: #fff5ee; }

/* ─────────────────────────────────────────
   16. OFFLINE STATE
───────────────────────────────────────── */

.chat-ui--offline .cb-input-field,
.chat-ui--offline .cb-send-btn,
.chat-ui--offline .option,
.chat-ui--offline .book-btn {
    pointer-events: none;
    opacity: 0.5;
}

/* ─────────────────────────────────────────
   17. ACCESSIBILITY — focus ring
───────────────────────────────────────── */

:focus-visible {
    outline: 2px solid #F47419;
    outline-offset: 2px;
}

/* ─────────────────────────────────────────
   18. RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 1200px) {
    .cb-sidebar { width: 320px; min-width: 320px; }
}

@media (max-width: 991px) {
    .cb-sidebar {
        position: fixed;
        top: 74px;
        left: 0;
        height: calc(100vh - 74px);
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    }
    .cb-sidebar--open { transform: translateX(0); }
    .cb-sidebar-toggle { display: flex; }

    .cb-thread { padding: 24px 20px 40px; }
    .cb-input-bar { margin: 0 12px 12px; }
    .message-content { max-width: 100%; }
    .package-wrapper { flex-wrap: nowrap; }
    .card { min-width: 240px; width: 240px; }
}

@media (max-width: 600px) {
    .cb-thread { padding: 16px 14px 36px; }
    .cb-input-bar { height: 72px; border-radius: 18px; }
    .cb-send-btn, .cb-mic-btn { width: 50px; height: 50px; font-size: 18px; border-radius: 14px; }
    .cb-input-field { font-size: 15px; }
    .bubble { font-size: 14px; padding: 12px 16px; }
    .bot-icon, .user-icon { width: 36px; height: 36px; font-size: 15px; }
    .gf-row { flex-direction: column; }
    .guest-form-wrap { padding: 16px; }
    .card { min-width: 220px; width: 220px; }
    .message-row { margin-bottom: 20px; }
    .option { padding: 9px 14px; font-size: 13px; }
}
