/* *
 * SpinCycles AI Assistant Chat Modal Styles
 * Dedicated Stylesheet for #aiChatModal
 */

:root {
    --ai-primary: #35093f;
    --ai-primary-alt: #380a42;
    --ai-primary-dark: #2a0533;
    --ai-primary-darker: #1e0324;
    --ai-accent: #10B981;
    --ai-accent-dark: #059669;
    --ai-border: #E2E8F0;
    --ai-danger: #EF4444;
    --ai-font: 'Quicksand', Arial, sans-serif;
    --ai-radius-panel: 20px;
    --ai-radius-pill: 999px;

    /* Category Specific Accent Colors from Screenshot */
    --ai-cat-price-bg: #FEE2E2;
    --ai-cat-price-fg: #EF4444;
    --ai-cat-service-bg: #EDE9FE;
    --ai-cat-service-fg: #7C3AED;
    --ai-cat-pickup-bg: #DCFCE7;
    --ai-cat-pickup-fg: #10B981;
    --ai-cat-track-bg: #DBEAFE;
    --ai-cat-track-fg: #2563EB;
    --ai-cat-stain-bg: #CFFAFE;
    --ai-cat-stain-fg: #06B6D4;
    --ai-cat-offers-bg: #FEF3C7;
    --ai-cat-offers-fg: #F59E0B;
}


/* =========================================================
   Root & Overlay Modes
========================================================= */
.ai-chat-modal-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483640;
    display: none;
    font-family: var(--ai-font);
}

.ai-chat-modal-root.centered {
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-modal-root.centered.opaque {
    background: rgba(0, 0, 0, 0.85);
}

.ai-chat-modal-root.fullpage {
    inset: 0 !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.ai-chat-modal-root.fullpage .ai-chat-panel {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
}

.ai-chat-modal-root.fullpage .chat-header {
    border-radius: 0 !important;
}

.ai-chat-modal-root.fullpage .ai-history-panel {
    max-width: 340px;
}

/* =========================================================
   Modal Entrance & Exit Animations
========================================================= */
@media (min-width: 1025px) {
    #aiChatModal.ai-modal-open .ai-chat-panel {
        animation: aiModalPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
        transform-origin: bottom right;
    }

    #aiChatModal.ai-modal-closing .ai-chat-panel {
        animation: aiModalPopOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
        transform-origin: bottom right;
    }
}

@media (max-width: 1024px) {
    #aiChatModal.ai-modal-open {
        animation: aiModalMobileSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    }

    #aiChatModal.ai-modal-closing {
        animation: aiModalMobileSlideDown 0.2s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    }
}

@keyframes aiModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(24px);
    }

    68% {
        opacity: 1;
        transform: scale(1.015) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes aiModalPopOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }
}

@keyframes aiModalMobileSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiModalMobileSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}


/* =========================================================
   Main Chat Panel
========================================================= */
.ai-chat-panel {
    height: min(600px, calc(100vh - 32px));
    width: calc(min(600px, calc(100vh - 32px)) * 11 / 16);
    aspect-ratio: 11 / 16;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    flex-shrink: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: var(--ai-radius-panel);
    box-shadow: 0 10px 30px rgba(111, 54, 103, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ai-border);
    font-family: var(--ai-font);
    position: relative;
}

/* =========================================================
   Header & Action Buttons
========================================================= */
.ai-chat-panel .chat-header {
    padding: 8px 14px;
    background: linear-gradient(135deg, #3e0c48 0%, #30073a 100%) !important;
    background-color: #35093f !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
    border-radius: var(--ai-radius-panel) var(--ai-radius-panel) 0 0;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 58px;
    width: 100%;
}

.ai-chat-panel .chat-header .chat-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.ai-chat-panel .chat-header img,
.ai-chat-panel .chat-header .chat-header-logo {
    height: 54px;
    max-height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 1;
}

.ai-chat-panel .chat-header .chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ai-chat-panel .chat-header .ai-chat-history,
.ai-chat-panel .chat-header .ai-chat-new,
.ai-chat-panel .chat-header .ai-chat-maximize,
.ai-chat-panel .chat-header .ai-chat-close {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.18s ease, transform 0.15s ease, opacity 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.ai-chat-panel .chat-header .ai-chat-history:hover,
.ai-chat-panel .chat-header .ai-chat-new:hover,
.ai-chat-panel .chat-header .ai-chat-maximize:hover,
.ai-chat-panel .chat-header .ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.ai-chat-panel .chat-header .ai-chat-history:active,
.ai-chat-panel .chat-header .ai-chat-new:active,
.ai-chat-panel .chat-header .ai-chat-maximize:active,
.ai-chat-panel .chat-header .ai-chat-close:active {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(0.94);
}

.ai-chat-panel .chat-header .ai-chat-history:disabled,
.ai-chat-panel .chat-header .ai-chat-new:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.ai-chat-panel .chat-header svg {
    display: block;
    pointer-events: none;
}

/* =========================================================
   Messages Area & Bubbles
========================================================= */
.ai-chat-panel .messages {
    flex: 1;
    padding: 18px 16px;
    overflow-y: auto;
    background: #FFFFFF;
}

.ai-chat-panel .message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    animation: aiMsgIn 0.25s ease-out;
}

@keyframes aiMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-panel .message.user {
    align-items: flex-end;
}

.ai-chat-panel .message.ai {
    position: relative;
    padding-left: 0;
    align-items: flex-start;
}

.ai-chat-panel .message.ai::before {
    display: none !important;
}

.ai-chat-panel .message-content {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 14.5px;
    font-weight: 500;
    box-sizing: border-box;
}

.ai-chat-panel .message.user .message-content {
    background: #88D317 !important;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    border: none !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 2px 8px rgba(136, 211, 23, 0.32) !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
}

.ai-chat-panel .message.ai .message-content {
    background: #F0F4FA;
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 18px 18px 18px 4px;
    position: relative;
    padding-right: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    font-weight: 500;
    font-size: 14.5px;
}

.ai-chat-panel .message.ai.wizard-prompt .message-content {
    background: #EDE9FE !important;
    color: #4C1D95 !important;
    border: 1px solid rgba(167, 139, 250, 0.5) !important;
    font-weight: 500 !important;
    font-size: 14.5px;
}

.ai-chat-panel .message-content mark,
.ai-chat-panel .message-content .ai-highlight {
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.ai-chat-panel .message-content .ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    margin: 2px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.ai-chat-panel .message-content .ai-badge-id {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    font-family: monospace;
    font-size: 12px;
}

.ai-chat-panel .message-content .ai-badge-success {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.ai-chat-panel .message-content .ai-badge-info {
    background: #EDE9FE;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
}

.ai-chat-panel .message-content .ai-badge-danger {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.ai-chat-panel .message-content .ai-badge-currency {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
    font-weight: 700;
}

.ai-chat-panel .message-content strong {
    color: #1E293B;
    font-weight: 700;
}

.ai-chat-panel .message-content a,
.ai-chat-panel .message-content .ai-chat-link-btn {
    display: inline !important;
    color: #0C4A6E !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    word-break: break-word !important;
    transition: color 0.15s ease !important;
    cursor: pointer !important;
}

.ai-chat-panel .message-content a:hover,
.ai-chat-panel .message-content .ai-chat-link-btn:hover {
    color: #075985 !important;
    text-decoration: underline !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.ai-chat-panel .message-time {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-top: 4px;
    padding: 0 4px;
    letter-spacing: 0.2px;
}

.ai-chat-panel .message.user .message-time {
    align-self: flex-end;
    margin-right: 4px;
}

.ai-chat-panel .message.ai .message-time {
    align-self: flex-start;
    margin-left: 4px;
}

/* =========================================================
   Image Attachment Preview & Msg Image
========================================================= */
.ai-image-preview-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f9f4f8;
    border-top: 1px solid var(--ai-border);
}

.ai-preview-thumb-wrap {
    position: relative;
    width: 46px;
    height: 46px;
}

.ai-preview-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ai-primary-alt);
}

.ai-remove-img-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-preview-label {
    font-size: 12px;
    color: var(--ai-primary-alt);
    font-weight: 600;
}

.ai-msg-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    margin-bottom: 6px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =========================================================
   AI Message Menu & Dropdown
========================================================= */
.ai-msg-menu-wrap {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
}

.ai-msg-more-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ai-msg-more-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
    transform: scale(1.05);
}

.ai-msg-dropdown {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(111, 54, 103, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 32px -4px rgba(85, 39, 79, 0.22), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    padding: 6px;
    min-width: 185px;
    z-index: 50;
    transform-origin: top right;
    animation: aiDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-msg-dropdown.show {
    display: block;
}

@keyframes aiDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-report-menu-item {
    width: 100%;
    background: transparent;
    border: none;
    color: #4A3B4C;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.18s ease;
    font-family: inherit;
}

.ai-report-menu-item:hover:not(:disabled) {
    background: linear-gradient(135deg, #FAF5FA 0%, #F3EAF2 100%);
    color: var(--ai-primary-dark);
    transform: translateX(2px);
}

.ai-report-menu-item.ai-menu-item-copy:hover:not(:disabled) {
    background: linear-gradient(135deg, #F5EEF4 0%, #EDE4EC 100%);
    color: var(--ai-primary-dark);
}

.ai-report-menu-item.ai-menu-item-report:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFF0F0 0%, #FDE2E2 100%);
    color: var(--ai-danger);
}

.ai-report-menu-item .ai-report-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(111, 54, 103, 0.07);
    transition: transform 0.18s ease;
}

.ai-report-menu-item:hover:not(:disabled) .ai-report-icon {
    transform: scale(1.15);
}

.ai-report-menu-item:disabled {
    color: #5D932B;
    cursor: default;
    background: #F2F9EC;
    font-weight: 700;
}

/* =========================================================
   In-Chat Report Card
========================================================= */
.ai-report-card {
    background: #ffffff;
    border: 1.5px solid #E5DCE4;
    border-radius: 14px;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(111, 54, 103, 0.14);
    font-size: 13px;
    animation: aiMsgIn 0.2s ease-out;
    width: 100%;
    max-width: 330px;
}

.ai-report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--ai-primary-dark);
    margin-bottom: 10px;
    font-size: 13px;
    border-bottom: 1px dashed #E5DCE4;
    padding-bottom: 6px;
}

.ai-report-close-btn {
    background: #F4EFF4;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #8C7B8D;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ai-report-close-btn:hover {
    background: #E8DCE7;
    color: var(--ai-primary-dark);
}

.ai-report-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ai-primary-alt);
    margin: 8px 0 4px;
}

.ai-report-select,
.ai-report-textarea {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--ai-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
    outline: none;
    background: #FCFAFC;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-report-select:focus,
.ai-report-textarea:focus {
    border-color: var(--ai-primary-alt);
    box-shadow: 0 0 0 3px rgba(111, 54, 103, 0.1);
}

.ai-report-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.ai-report-submit-btn {
    background: var(--ai-danger);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.ai-report-submit-btn:hover:not(:disabled) {
    background: #B71C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.35);
}

.ai-report-cancel-btn {
    background: #F4EFF4;
    color: var(--ai-primary-dark);
    border: 1px solid #E4D9E3;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ai-report-cancel-btn:hover {
    background: #E8DCE7;
}

/* =========================================================
   Suggestions Chips
/* =========================================================
   Related Questions (Suggestions in Chat Stream)
========================================================= */
.ai-chat-panel .suggestions {
    display: flex;
    flex-direction: column;
    padding: 6px 0 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ai-chat-panel .ai-related-questions-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.3;
    padding-left: 2px;
}

.ai-chat-panel .ai-related-questions-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.ai-chat-panel .suggestion-chip,
.ai-chat-panel .ai-related-question-chip {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start !important;
    gap: 10px;
    width: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 9px 16px !important;
    background: #FAF5FF !important;
    border: 1.5px solid #D8B4FE !important;
    border-radius: 9999px !important;
    color: #581C87 !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    white-space: normal;
}

/* Colorful cycle for quick response & related question chips */
.ai-chat-panel .suggestion-chip:nth-child(4n+1),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+1) {
    background: #FAF5FF !important;
    border-color: #D8B4FE !important;
    color: #581C87 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+1) .ai-rq-icon svg,
.ai-chat-panel .ai-related-question-chip:nth-child(4n+1) .ai-rq-icon svg {
    stroke: #9333EA !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+1):hover:not(:disabled),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+1):hover:not(:disabled) {
    background: #F3E8FF !important;
    border-color: #A855F7 !important;
    color: #3B0764 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.22);
}

.ai-chat-panel .suggestion-chip:nth-child(4n+2),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+2) {
    background: #ECFDF5 !important;
    border-color: #86EFAC !important;
    color: #065F46 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+2) .ai-rq-icon svg,
.ai-chat-panel .ai-related-question-chip:nth-child(4n+2) .ai-rq-icon svg {
    stroke: #059669 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+2):hover:not(:disabled),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+2):hover:not(:disabled) {
    background: #D1FAE5 !important;
    border-color: #34D399 !important;
    color: #022C22 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.22);
}

.ai-chat-panel .suggestion-chip:nth-child(4n+3),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+3) {
    background: #F0F9FF !important;
    border-color: #7DD3FC !important;
    color: #075985 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+3) .ai-rq-icon svg,
.ai-chat-panel .ai-related-question-chip:nth-child(4n+3) .ai-rq-icon svg {
    stroke: #0284C7 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+3):hover:not(:disabled),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+3):hover:not(:disabled) {
    background: #E0F2FE !important;
    border-color: #38BDF8 !important;
    color: #0C4A6E !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.22);
}

.ai-chat-panel .suggestion-chip:nth-child(4n+4),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+4) {
    background: #FFF7ED !important;
    border-color: #FDBA74 !important;
    color: #9A3412 !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+4) .ai-rq-icon svg,
.ai-chat-panel .ai-related-question-chip:nth-child(4n+4) .ai-rq-icon svg {
    stroke: #EA580C !important;
}

.ai-chat-panel .suggestion-chip:nth-child(4n+4):hover:not(:disabled),
.ai-chat-panel .ai-related-question-chip:nth-child(4n+4):hover:not(:disabled) {
    background: #FFEDD5 !important;
    border-color: #FB923C !important;
    color: #431407 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.22);
}

.ai-chat-panel .suggestion-chip:disabled,
.ai-chat-panel .ai-related-question-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-chat-panel .ai-rq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: #2563EB;
}

.ai-chat-panel .ai-rq-text {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

/* =========================================================
   Wizard Step Boxes (Pickup Scheduling Tabs)
========================================================= */
.ai-chat-panel .ai-wizard-box-container {
    padding: 6px 0 2px;
    margin-top: 8px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ai-chat-panel .ai-wizard-box-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ai-chat-panel .ai-wizard-box-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-panel .ai-wizard-box-list::-webkit-scrollbar {
    display: none;
}

.ai-chat-panel .ai-step-box {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    max-width: 240px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    background: #FAFAFD;
    color: #334155;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-panel .ai-step-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Colorful cycle for wizard scheduling tabs */
.ai-chat-panel .ai-step-box:nth-child(4n+1) {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
    border-color: #D8B4FE;
}

.ai-chat-panel .ai-step-box:nth-child(4n+1) .ai-box-top {
    color: #7E22CE;
}

.ai-chat-panel .ai-step-box:nth-child(4n+1) .ai-box-main {
    color: #3B0764;
}

.ai-chat-panel .ai-step-box:nth-child(4n+2) {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #86EFAC;
}

.ai-chat-panel .ai-step-box:nth-child(4n+2) .ai-box-top {
    color: #15803D;
}

.ai-chat-panel .ai-step-box:nth-child(4n+2) .ai-box-main {
    color: #14532D;
}

.ai-chat-panel .ai-step-box:nth-child(4n+3) {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-color: #7DD3FC;
}

.ai-chat-panel .ai-step-box:nth-child(4n+3) .ai-box-top {
    color: #0369A1;
}

.ai-chat-panel .ai-step-box:nth-child(4n+3) .ai-box-main {
    color: #082F49;
}

.ai-chat-panel .ai-step-box:nth-child(4n+4) {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
}

.ai-chat-panel .ai-step-box:nth-child(4n+4) .ai-box-top {
    color: #B45309;
}

.ai-chat-panel .ai-step-box:nth-child(4n+4) .ai-box-main {
    color: #451A03;
}

.ai-chat-panel .ai-step-box .ai-box-top {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
}

.ai-chat-panel .ai-step-box .ai-box-main {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chat-panel .ai-step-box .ai-box-sub {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    line-height: 1.25;
    margin-top: 3px;
    white-space: nowrap;
}

/* Selected / Active State (Brand Purple Gradient) */
.ai-chat-panel .ai-step-box.selected,
.ai-chat-panel .ai-step-box.recommended,
.ai-chat-panel .ai-step-box.active {
    border: 2px solid #5a144c !important;
    background: linear-gradient(135deg, #7c2069 0%, #992882 100%) !important;
    box-shadow: 0 4px 14px rgba(124, 32, 105, 0.3) !important;
    transform: translateY(-1px);
}

.ai-chat-panel .ai-step-box.selected .ai-box-top,
.ai-chat-panel .ai-step-box.recommended .ai-box-top,
.ai-chat-panel .ai-step-box.active .ai-box-top {
    color: #FCE7F3 !important;
    font-weight: 750 !important;
}

.ai-chat-panel .ai-step-box.selected .ai-box-main,
.ai-chat-panel .ai-step-box.recommended .ai-box-main,
.ai-chat-panel .ai-step-box.active .ai-box-main {
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

.ai-chat-panel .ai-step-box.selected .ai-box-sub,
.ai-chat-panel .ai-step-box.recommended .ai-box-sub,
.ai-chat-panel .ai-step-box.active .ai-box-sub {
    color: #FEF08A !important;
    font-weight: 700 !important;
}

/* Top-right corner checkmark badge */
.ai-chat-panel .ai-step-box .ai-box-badge-check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563EB;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
    pointer-events: none;
    z-index: 2;
}

/* Hover & Focus */
.ai-chat-panel .ai-step-box:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #3B82F6;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.ai-chat-panel .ai-step-box:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Multi-Select Continue Button */
.ai-chat-panel .ai-step-multi-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0 6px 0;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c2069 0%, #9d2b85 100%);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(124, 32, 105, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
}

.ai-chat-panel .ai-step-multi-continue-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(124, 32, 105, 0.35);
    background: linear-gradient(135deg, #6c185a 0%, #8d2376 100%);
}

.ai-chat-panel .ai-step-multi-continue-btn:active:not(:disabled) {
    transform: translateY(0.5px);
    box-shadow: 0 2px 6px rgba(124, 32, 105, 0.2);
}

.ai-chat-panel .ai-step-multi-continue-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #94A3B8;
}

/* =========================================================
   Typing Indicator
========================================================= */
.ai-chat-panel .typing {
    display: none;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 22px 12px;
    padding: 6px 16px 6px 8px;
    background: #ffffff;
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-pill);
    box-shadow: 0 4px 14px rgba(111, 54, 103, 0.10);
    color: var(--ai-primary-dark);
    font-size: 12.5px;
    font-weight: 600;
}

/* =========================================================
   Input Area & Controls
========================================================= */
.ai-chat-panel .chat-input-area {
    position: relative;
    border-top: 1px solid #ECE7EB;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.ai-chat-panel .ai-input-pill-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #22C55E !important;
    border-radius: var(--ai-radius-pill) !important;
    padding: 4px 8px 4px 18px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
    min-height: 48px;
    box-sizing: border-box;
}

.ai-chat-panel .ai-input-pill-wrapper:focus-within {
    border-color: #16A34A !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

.ai-chat-panel .chat-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    padding: 8px 0 !important;
    font-family: inherit;
    min-width: 0;
    box-shadow: none !important;
}

.ai-chat-panel .chat-input::placeholder {
    color: #64748B;
    font-weight: 450;
}

.ai-chat-panel .chat-input:disabled {
    background: transparent !important;
    color: #94A3B8 !important;
    cursor: not-allowed;
}

.ai-chat-panel .ai-input-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    flex-shrink: 0;
}

.ai-chat-panel .ai-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: all 0.15s ease;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ai-chat-panel .ai-action-btn:hover:not(:disabled) {
    background: #F1F5F9;
    color: #0F172A;
    transform: scale(1.08);
}

.ai-chat-panel .ai-attach-btn:hover:not(:disabled) {
    color: #2563EB;
    background: #EFF6FF;
}

.ai-chat-panel .ai-emoji-btn:hover:not(:disabled) {
    color: #F59E0B;
    background: #FFFBEB;
}

.ai-chat-panel .ai-action-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.ai-chat-panel .ai-action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ai-chat-panel .ai-attach-btn,
.ai-chat-panel .ai-emoji-btn {
    color: #64748B;
}

.ai-chat-panel .ai-emoji-btn.active {
    background: #EDE9FE;
    color: #6D28D9;
}

.ai-chat-panel .send-button {
    width: 0;
    min-width: 0;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.35);
}

.ai-chat-panel .send-button.visible {
    width: 36px;
    min-width: 36px;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    overflow: visible;
}

.ai-chat-panel .send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.5);
}

.ai-chat-panel .send-button:disabled {
    opacity: 0.35;
    background: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   Emoji Picker Popover
========================================================= */
.ai-emoji-picker-container {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 14px;
    width: 320px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: aiEmojiPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiEmojiPop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-emoji-search-box {
    position: relative;
    margin: 14px 14px 6px;
    border: 1.5px solid #2563EB;
    border-radius: 12px;
    padding: 4px 10px;
    background: #ffffff;
}

.ai-emoji-search-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #ffffff;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #2563EB;
    line-height: 1;
}

.ai-emoji-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #1E293B;
    padding: 4px 0;
    font-family: inherit;
}

.ai-emoji-search-input::placeholder {
    color: #94A3B8;
}

.ai-emoji-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    padding: 8px 16px 4px;
    letter-spacing: -0.2px;
}

.ai-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 6px 12px 12px;
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ai-emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.ai-emoji-grid::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: var(--ai-radius-pill);
}

.ai-emoji-item {
    font-size: 22px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    outline: none;
    padding: 0;
}

.ai-emoji-item:hover {
    background: #F1F5F9;
    transform: scale(1.22);
}

/* =========================================================
   Read-Only Banner
========================================================= */
.ai-chat-panel .ai-readonly-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #FBF3E9;
    border-top: 1px solid #F0E0C8;
    font-size: 12.5px;
    font-weight: 600;
    color: #7A5A26;
}

.ai-chat-panel .ai-readonly-return {
    border: none;
    background: var(--ai-accent);
    color: #16310a;
    font-weight: 700;
    font-family: inherit;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: var(--ai-radius-pill);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================================
   History Backdrop & Drawer Panel
========================================================= */
.ai-history-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.ai-history-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.ai-history-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 78%;
    max-width: 280px;
    background: #ffffff;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-history-panel.open {
    transform: translateX(0);
}

.ai-history-panel-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #3e0c48 0%, #30073a 100%) !important;
    background-color: #35093f !important;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-history-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.ai-history-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ai-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.ai-history-item {
    display: block;
    width: 100%;
    text-align: left;
    background: #F5EEF4;
    border: 1px solid var(--ai-border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.ai-history-item:hover {
    background: #EAE0E8;
}

.ai-history-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ai-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-history-item-date {
    font-size: 11px;
    font-weight: 600;
    color: #9C8FA0;
    margin-top: 3px;
}

.ai-history-empty,
.ai-history-loading {
    text-align: center;
    color: #9C8FA0;
    font-size: 13px;
    font-weight: 600;
    padding: 20px 10px;
}

.ai-history-load-more {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1.5px dashed #C9BCC7;
    color: var(--ai-primary-alt);
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.ai-history-load-more:hover:not(:disabled) {
    background: #F5EEF4;
}

.ai-history-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   Desktop Resize Handle & Floating Scroll Pill
========================================================= */
.ai-resize-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    right: 6px;
    bottom: 50px;
    cursor: se-resize;
    z-index: 3000;
}

.ai-resize-handle::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #c4b5be;
    border-bottom: 2px solid #c4b5be;
    opacity: 0.7;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ai-resize-handle:hover::after {
    opacity: 1;
    border-color: var(--ai-accent);
}

.ai-new-msg-pill {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ai-primary-alt);
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(111, 54, 103, 0.35);
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    animation: aiMsgIn 0.2s ease-out;
}

.ai-new-msg-pill:hover {
    background: var(--ai-primary-dark);
    transform: translateX(-50%) translateY(-2px);
}

/* =========================================================
   Attachment Image Lightbox
========================================================= */
.ai-attachment-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2147483642;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aiAttachmentFadeIn 0.2s ease-out;
}

@keyframes aiAttachmentFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ai-attachment-modal-content {
    position: relative;
    width: 50vw;
    max-width: 90vw;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
    animation: aiAttachmentZoomIn 0.2s ease-out;
}

@keyframes aiAttachmentZoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-attachment-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ai-attachment-modal-close:hover {
    background: var(--ai-danger);
    transform: scale(1.1);
}

.ai-attachment-modal-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.ai-attachment-modal-body img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .ai-attachment-modal-content {
        width: 90vw;
    }
}

/* =========================================================
   Responsive Mobile & Tablet (<=1024px)
========================================================= */
@media (max-width: 1024px) {

    html.ai-chat-open,
    body.ai-chat-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    #aiChatModal:not([style*="display: none"]):not([style*="display:none"]) {
        position: fixed !important;
        top: var(--ai-vv-top, 0px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100vw !important;
        height: var(--ai-vv-height, 100dvh) !important;
        max-height: var(--ai-vv-height, 100dvh) !important;
        z-index: 2147483640 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    #aiChatModal[style*="display: none"],
    #aiChatModal[style*="display:none"] {
        display: none !important;
    }

    .ai-resize-handle {
        display: none !important;
    }

    .ai-chat-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        flex: 1 1 auto !important;
    }

    .ai-chat-panel .chat-header {
        border-radius: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 30 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    .ai-chat-panel .chat-header img,
    .ai-chat-panel .chat-header .chat-header-logo {
        height: 48px !important;
        max-height: 50px !important;
    }

    .ai-chat-panel .chat-header .ai-chat-maximize {
        display: none !important;
    }

    .ai-chat-panel .messages {
        padding: 14px 18px !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
    }

    .ai-chat-panel .message-content {
        max-width: 85% !important;
        font-size: 15px !important;
        padding: 9px 13px !important;
        line-height: 1.42 !important;
        word-break: break-word !important;
    }

    .ai-chat-panel .message.ai .message-content {
        padding-right: 32px !important;
    }

    .ai-chat-panel .chat-input-area {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 30 !important;
        padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) 14px !important;
        gap: 10px !important;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .ai-chat-panel .ai-input-pill-wrapper {
        min-height: 46px !important;
        padding: 3px 6px 3px 14px !important;
    }

    .ai-chat-panel .chat-input {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .ai-emoji-picker-container {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
        bottom: calc(100% + 8px) !important;
    }

    .ai-chat-panel .suggestions {
        padding: 4px 0 8px !important;
    }

    .ai-chat-panel .suggestion-chip,
    .ai-chat-panel .ai-related-question-chip {
        width: auto !important;
        width: fit-content !important;
        max-width: 100% !important;
        align-self: flex-start !important;
        font-size: 13px !important;
        padding: 9px 14px !important;
    }

    .ai-history-panel {
        width: 85% !important;
        max-width: 360px !important;
        z-index: 1000000 !important;
    }

    .ai-history-backdrop {
        z-index: 999999 !important;
    }

    .ai-report-card {
        max-width: 100% !important;
    }

    .ai-msg-dropdown {
        min-width: 165px !important;
    }

    .ai-new-msg-pill {
        bottom: 80px !important;
        z-index: 50 !important;
    }

    .ai-guest-form-container {
        top: 56px !important;
        border-radius: 0 !important;
        padding: 14px 12px !important;
    }

    /* Category choosing view 90% screen width on phone & tablet */
    .ai-welcome-content {
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ai-welcome-header-row,
    .ai-welcome-search-box,
    .ai-category-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   Micro-Screen Mobile (<=380px)
========================================================= */
@media (max-width: 380px) {
    .ai-chat-panel .chat-header {
        padding: 6px 10px !important;
        gap: 6px !important;
        min-height: 52px !important;
    }

    .ai-chat-panel .chat-header img,
    .ai-chat-panel .chat-header .chat-header-logo {
        height: 42px !important;
        max-height: 44px !important;
    }

    .ai-chat-panel .chat-header-actions {
        gap: 5px !important;
    }

    .ai-chat-panel .chat-header .ai-chat-history,
    .ai-chat-panel .chat-header .ai-chat-new,
    .ai-chat-panel .chat-header .ai-chat-close {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    .ai-guest-help-grid {
        gap: 4px;
    }

    .ai-guest-help-circle {
        width: 38px;
        height: 38px;
        margin-bottom: 5px;
    }

    .ai-guest-help-img {
        width: 18px;
        height: 18px;
    }

    .ai-guest-help-label {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* =========================================================
   Floating AI Support & Pickup Trigger Widget (Desktop)
========================================================= */
.sc-desktop-float-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    background: #390a43;
    border-radius: 9999px;
    padding: 4px;
    box-shadow: 0 8px 30px rgba(25, 4, 30, 0.45), 0 0 16px rgba(184, 245, 54, 0.2);
    border: 1.5px solid rgba(175, 75, 210, 0.4);
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-desktop-float-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(25, 4, 30, 0.55), 0 0 22px rgba(184, 245, 54, 0.35);
}

/* Ambient Sparkle Stars */
.sc-sparkle-acc {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 4px #facc15);
    animation: scSparkleFloat 2.8s ease-in-out infinite alternate;
}

.sc-sparkle-top-left {
    top: -8px;
    left: 2px;
    animation-delay: 0s;
}

.sc-sparkle-bottom-left {
    bottom: -6px;
    left: 6px;
    animation-delay: 0.7s;
}

.sc-sparkle-top-mid {
    top: -7px;
    left: 48%;
    animation-delay: 1.4s;
}

.sc-sparkle-far-right {
    top: -6px;
    right: -2px;
    animation-delay: 0.9s;
}

@keyframes scSparkleFloat {
    0% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.15) rotate(15deg);
        opacity: 1;
    }
}

/* Ask SPIN Lime Button */
.sc-desktop-ask-spin-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 16px 0 12px;
    border-radius: 9999px;
    background: linear-gradient(180deg, #ddff60 0%, #b2f22e 60%, #9fe71d 100%);
    box-shadow: 0 0 14px rgba(184, 245, 54, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.sc-desktop-ask-spin-pill:active {
    transform: scale(0.97);
}

.sc-desktop-spin-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-desktop-text-block {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.sc-desktop-title-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-desktop-spin-title {
    color: #2e0638;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.sc-inline-sparkle {
    flex-shrink: 0;
}

.sc-desktop-spin-desc {
    color: #3b0947;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.1px;
    opacity: 0.9;
}

/* Schedule a Pickup Link Button */
.sc-desktop-pickup-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 18px 0 12px;
    border-radius: 9999px;
    text-decoration: none !important;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.sc-desktop-pickup-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sc-desktop-pickup-link:active {
    transform: scale(0.97);
}

.sc-desktop-cal-icon {
    flex-shrink: 0;
}

.sc-desktop-pickup-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.sc-desktop-pickup-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

/* Legacy Support Button & Visibility Rules */
.ai-chat-trigger-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99998;
    background: linear-gradient(135deg, #6F3667, #55274F);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-family: 'Quicksand', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(111, 54, 103, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-trigger-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(111, 54, 103, 0.45);
    background: linear-gradient(135deg, #7C3B73, #5F2C58);
}

@media (max-width: 768px) {

    .sc-desktop-float-widget,
    .ai-chat-trigger-btn {
        display: none !important;
    }
}

body.ai-chat-open .sc-desktop-float-widget,
body.ai-chat-open .ai-chat-trigger-btn {
    display: none !important;
}

/* =========================================================
   Garment Horizontal Carousel & Price Cards
   ========================================================= */
.ai-garment-carousel-wrapper {
    margin-top: 6px;
    width: 100%;
}

.ai-garment-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 12px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ai-garment-carousel::-webkit-scrollbar {
    height: 5px;
}

.ai-garment-carousel::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.ai-carousel-item {
    min-width: 96px;
    max-width: 96px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-carousel-item:hover {
    transform: translateY(-2px);
    border-color: #7C3AED;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18);
}

.ai-carousel-img-wrap {
    width: 100%;
    height: 90px;
    background: #F9FAFB;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-carousel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-carousel-name {
    padding: 7px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-carousel-toggle-btn {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-family: var(--ai-font);
    margin: 8px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ai-carousel-toggle-btn:hover {
    background: #F9FAFB;
    border-color: #CBD5E1;
    color: #111827;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-toggle-chevron {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-carousel-toggle-btn.is-expanded .ai-toggle-chevron {
    transform: rotate(180deg);
}

.ai-garment-more-container {
    margin-top: 6px;
    animation: aiMoreFadeIn 0.25s ease-out;
}

/* 4b. Garment Pricing Horizontal Carousel */
.ai-pricing-carousel-wrap {
    margin-top: 10px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    white-space: normal !important;
}

.ai-pricing-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 14px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ai-pricing-carousel::-webkit-scrollbar {
    height: 6px;
}

.ai-pricing-carousel::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.ai-pricing-carousel::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}

.ai-pricing-card {
    min-width: 165px;
    max-width: 180px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ai-pricing-card:hover {
    transform: translateY(-2px);
    border-color: #6F3667;
    box-shadow: 0 6px 16px rgba(111, 54, 103, 0.15);
}

.ai-pricing-card-media {
    width: 100%;
    height: 110px;
    background: #F8FAFC;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #F1F5F9;
}

.ai-pricing-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ai-pricing-card:hover .ai-pricing-card-media img {
    transform: scale(1.03);
}

.ai-pricing-card-body {
    padding: 9px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #FFFFFF;
}

.ai-pricing-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ai-pricing-card-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-pricing-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 6px;
    background: #F8FAFC;
    border-radius: 6px;
    border: 1px solid #F1F5F9;
}

.ai-rate-label {
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
}

.ai-rate-val {
    color: #6F3667;
    font-weight: 700;
    font-size: 11.5px;
    white-space: nowrap;
}

/* 5. Detailed Garment Card (Image 2) */
.ai-garment-card {
    background: #FFFFFF;
    border: 1.5px solid #EDE9FE;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 18px rgba(109, 40, 217, 0.08);
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
    box-sizing: border-box;
}

.ai-garment-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ai-garment-img-wrap {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
}

.ai-garment-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-garment-meta {
    flex: 1;
    min-width: 0;
}

.ai-garment-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-garment-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-garment-chevron {
    color: #9CA3AF;
    font-size: 16px;
    font-weight: 700;
}

.ai-garment-sub {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 2px;
}

.ai-garment-price {
    font-size: 21px;
    font-weight: 800;
    color: #059669;
}

.ai-garment-details {
    border-top: 1px solid #F3F4F6;
    margin-top: 12px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-garment-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4B5563;
    font-weight: 500;
}

.ai-garment-detail-icon {
    width: 14px;
    height: 14px;
    color: #7C3AED;
    flex-shrink: 0;
}

.ai-garment-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ai-garment-btn {
    border: none;
    border-radius: 12px;
    height: 40px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: var(--ai-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ai-garment-btn.primary {
    background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28);
}

.ai-garment-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.4);
}

.ai-garment-btn.secondary {
    background: #F5F3FF;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
}

.ai-garment-btn.secondary:hover {
    background: #EDE9FE;
    border-color: #C4B5FD;
}

/* Related Questions Section (Image 2) */
.ai-related-questions {
    margin-top: 14px;
    width: 100%;
}

.ai-related-title {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.ai-related-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ai-related-chip {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 24px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    font-family: var(--ai-font);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-related-chip:hover {
    border-color: #7C3AED;
    color: #6D28D9;
    background: #FAF5FF;
}

.ai-related-chip-icon {
    width: 14px;
    height: 14px;
    color: #7C3AED;
    flex-shrink: 0;
}

/* Ensure embed cards and carousels don't inherit pre-wrap */
.ai-garment-card,
.ai-garment-carousel-wrapper,
.ai-pricing-carousel-wrap,
.ai-related-questions {
    white-space: normal !important;
}

.ai-chat-panel .message.ai .message-content.has-pricing-carousel {
    max-width: 95% !important;
}

.ai-chat-panel .message.ai .message-content.has-garment-embed {
    max-width: 95% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ai-chat-panel .message.ai .message-content.has-garment-embed .ai-msg-bubble-text {
    background: #F0F4FA !important;
    color: #334155 !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    padding: 10px 32px 10px 14px;
    display: inline-block;
    max-width: 88%;
    white-space: pre-wrap;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 4px;
}

.ai-chat-panel .message.ai .message-content.has-garment-embed .ai-msg-bubble-wrap {
    position: relative;
    display: inline-block;
    max-width: 88%;
}

.ai-chat-panel .message.ai .message-content.has-garment-embed .ai-msg-bubble-wrap .ai-msg-bubble-text {
    max-width: 100%;
    margin-bottom: 0;
}

.ai-chat-panel .message.ai .message-content.has-basket-embed {
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ai-chat-panel .message.ai .message-content.has-basket-embed .ai-msg-bubble-wrap {
    position: relative;
    display: inline-block;
    max-width: 88%;
    margin-bottom: 8px;
}

.ai-chat-panel .message.ai .message-content.has-basket-embed .ai-msg-bubble-wrap .ai-msg-bubble-text {
    background: #F0F4FA !important;
    color: #334155 !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    padding: 10px 14px !important;
    display: inline-block;
    max-width: 100%;
    white-space: pre-wrap;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0;
}

/* =========================================================
   Ask SPIN Category & Query Welcome View (Themed)
========================================================= */
.ai-welcome-category-view {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 18px 14px;
    box-sizing: border-box;
    animation: aiWelcomeFadeIn 0.22s ease-out;
}

@keyframes aiWelcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-view-close-btn {
    display: none !important;
}

.ai-welcome-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 392px;
    margin: 0 auto;
    padding: 2px 0 8px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

/* Header Row: Text on Left, Mascot on Right */
.ai-welcome-header-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 2px 0 0 2px;
}

.ai-welcome-header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.ai-welcome-title-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    margin-bottom: 4px;
}

/* Green Online Status Dot with subtle pulse */
.ai-online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2.5px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
    display: inline-block;
    animation: aiOnlinePulse 2s infinite ease-in-out;
}

@keyframes aiOnlinePulse {

    0%,
    100% {
        box-shadow: 0 0 0 2.5px rgba(34, 197, 94, 0.25);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
    }
}

.ai-welcome-title {
    font-size: 22px;
    font-weight: 800;
    color: #3b0947;
    margin: 0;
    letter-spacing: -0.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.ai-title-sparkles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
}

.ai-welcome-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5563;
    text-align: left;
    margin: 0;
    line-height: 1.35;
}

/* Bot Mascot on the Right */
.ai-welcome-avatar-wrap {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ai-welcome-mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Radiating burst accents on mascot head */
.ai-head-burst {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.ai-head-burst-left {
    top: 2px;
    left: -2px;
}

.ai-head-burst-right {
    top: 2px;
    right: -2px;
}

/* Search Bar */
.ai-welcome-search-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin: 2px 0 12px 0;
    box-sizing: border-box;
}

.ai-welcome-input {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border: 1.5px solid #e5dcf0;
    border-radius: 22px;
    padding: 0 46px 0 16px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1f2937;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

.ai-welcome-input::placeholder {
    color: #8c7e97;
    font-size: 13px;
}

.ai-welcome-input:focus {
    border-color: #543050;
    box-shadow: 0 0 0 3px rgba(84, 48, 80, 0.14), 0 2px 8px rgba(84, 48, 80, 0.08);
}

.ai-welcome-submit-btn {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #543050, #390a43);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(57, 10, 67, 0.35);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ai-welcome-submit-btn:hover {
    background: linear-gradient(135deg, #6e3667, #4a154b);
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(57, 10, 67, 0.45);
}

.ai-welcome-submit-btn:active {
    transform: scale(0.96);
}

/* Visibility Rules for Search Category Box:
   - Visible in phone / mobile view (<=768px)
   - Hidden in desktop minimized view
   - Visible in desktop maximized / fullpage view
*/
@media (min-width: 769px) {

    #aiChatModal.minimized .ai-welcome-search-box,
    #aiChatModal:not(.fullpage):not(.centered) .ai-welcome-search-box {
        display: none !important;
    }

    #aiChatModal.fullpage .ai-welcome-search-box,
    #aiChatModal.centered .ai-welcome-search-box {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .ai-welcome-search-box {
        display: flex !important;
    }
}

/* Section Heading */
.ai-welcome-help-heading {
    font-size: 16.5px;
    font-weight: 800;
    color: #2e0638;
    margin: 0 0 10px 0;
    text-align: left;
    letter-spacing: -0.2px;
}

/* 8 Category Cards (4 columns x 2 rows) */
.ai-category-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 12px 0;
}

.ai-category-card {
    background: #ffffff;
    border: 1px solid #f0ebf5;
    border-radius: 13px;
    padding: 10px 4px 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    min-height: 84px;
    user-select: none;
    box-sizing: border-box;
}

.ai-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(84, 48, 80, 0.1);
    border-color: #d8b4fe;
}

.ai-category-card:active {
    transform: scale(0.97);
}

.ai-category-icon-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    background: transparent !important;
    transition: transform 0.16s ease;
}

.ai-category-card:hover .ai-category-icon-wrap {
    transform: scale(1.12);
}

.ai-category-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.ai-category-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.15px;
    white-space: normal;
    text-align: center;
}

.ai-category-sublabel {
    font-size: 9.5px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.15;
    margin-top: 2px;
    letter-spacing: -0.1px;
}

/* Category hover border subtle accents */
.ai-category-card[data-category="Check Price"]:hover {
    border-color: #fca5a5 !important;
}

.ai-category-card[data-category="Choose Service"]:hover {
    border-color: #c4b5fd !important;
}

.ai-category-card[data-category="Book a Pickup"]:hover {
    border-color: #86efac !important;
}

.ai-category-card[data-category="Track My Order"]:hover,
.ai-category-card[data-category="Track Order"]:hover {
    border-color: #93c5fd !important;
}

.ai-category-card[data-category="Stain Help"]:hover {
    border-color: #7dd3fc !important;
}

.ai-category-card[data-category*="Repairs"]:hover {
    border-color: #fda4af !important;
}

.ai-category-card[data-category="Bag & Shoe Care"]:hover {
    border-color: #d8b4fe !important;
}

.ai-category-card[data-category="Offers & Points"]:hover {
    border-color: #fed7aa !important;
}

/* 💡 Try asking: Container */
.ai-try-asking-box {
    width: 100%;
    background: #f8f6fc;
    border: 1px solid #ede7f6;
    border-radius: 14px;
    padding: 10px 12px 10px 12px;
    margin: 0 0 12px 0;
    box-sizing: border-box;
}

.ai-try-asking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
}

.ai-try-asking-icon {
    font-size: 14px;
    line-height: 1;
}

.ai-try-asking-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    letter-spacing: -0.1px;
}

.ai-try-asking-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-try-asking-chips {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.ai-try-asking-chip {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #FAF5FF;
    border: 1px solid #E9D5FF;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #581C87;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.25;
}

.ai-try-asking-chip:nth-child(4n+1) {
    background: #FAF5FF;
    border-color: #E9D5FF;
    color: #6B21A8;
}

.ai-try-asking-chip:nth-child(4n+2) {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.ai-try-asking-chip:nth-child(4n+3) {
    background: #F0F9FF;
    border-color: #BAE6FD;
    color: #0369A1;
}

.ai-try-asking-chip:nth-child(4n+4) {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.ai-try-asking-chip:hover {
    background: #543050;
    color: #ffffff;
    border-color: #543050;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(84, 48, 80, 0.2);
}

.ai-try-asking-chip:active {
    transform: scale(0.97);
}

.ai-try-asking-next-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #543050;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ai-try-asking-next-btn:hover {
    background: #543050;
    color: #ffffff;
    border-color: #543050;
    transform: scale(1.06);
}

.ai-try-asking-next-btn:active {
    transform: scale(0.95);
}

/* Bottom "Let's get started" Banner */
.ai-welcome-start-banner {
    width: 100%;
    background: linear-gradient(135deg, #440e4f 0%, #2a0533 100%);
    border: 1px solid rgba(175, 75, 210, 0.3);
    border-radius: 16px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(42, 5, 51, 0.28);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    user-select: none;
    box-sizing: border-box;
}

.ai-welcome-start-banner:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(42, 5, 51, 0.38);
    background: linear-gradient(135deg, #4d1059 0%, #30063a 100%);
}

.ai-welcome-start-banner:active {
    transform: scale(0.98);
}

.ai-start-banner-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}

.ai-start-banner-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.ai-start-banner-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.ai-start-banner-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.15px;
}

.ai-start-banner-desc {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.2;
    margin-top: 2px;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-start-banner-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ai-welcome-start-banner:hover .ai-start-banner-arrow {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 340px) {
    .ai-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-welcome-title {
        font-size: 19px;
    }

    .ai-welcome-avatar-wrap {
        width: 70px;
        height: 70px;
    }
}

/* Bottom Bar Hidden */
.ai-welcome-bottom-bar {
    display: none !important;
}

/* =========================================================
   Guest Pre-Chat Lead Form (Themed & Vertically Centered)
========================================================= */
.ai-guest-form-container {
    position: absolute !important;
    top: 58px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #FCF8FB !important;
    z-index: 20 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px !important;
    animation: aiWelcomeFadeIn 0.22s ease-out;
}

.ai-guest-form-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto 0;
    flex-shrink: 0;
}

.ai-guest-avatar-circle {
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    flex-shrink: 0 !important;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #EDE9FE 100%);
    border: 2px solid #DDD6FE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.18);
    overflow: hidden;
}

.ai-guest-avatar-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    flex-shrink: 0 !important;
}

.ai-guest-intro-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.ai-guest-title {
    font-size: 24.15px;
    font-weight: 800;
    color: #1E1B4B;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.ai-guest-title .ai-sparkle {
    color: #F59E0B;
}

.ai-guest-subtitle {
    font-size: 14.4px;
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
}

.ai-guest-form-card .ai-form-group {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

.ai-guest-form-card .ai-form-group:last-of-type {
    margin-bottom: 20px !important;
}

.ai-guest-form-container .ai-form-label {
    display: block !important;
    font-size: 13.8px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

.ai-input-with-icon {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
    height: 42px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-input-with-icon:focus-within {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.ai-field-icon {
    stroke: #9ca3af;
    margin-right: 8px;
    flex-shrink: 0;
}

.ai-input-with-icon:focus-within .ai-field-icon {
    stroke: #7C3AED;
}

.ai-phone-wrap .ai-phone-prefix {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin-right: 6px;
    user-select: none;
}

.ai-phone-wrap .ai-phone-sep {
    color: #d1d5db;
    margin-right: 8px;
    user-select: none;
}

.ai-input-with-icon .ai-form-input {
    border: none !important;
    background: transparent !important;
    height: 100% !important;
    padding: 0 !important;
    flex: 1;
    font-size: 15px;
    color: #111827;
    outline: none !important;
    box-shadow: none !important;
}

.ai-input-with-icon .ai-form-input::placeholder {
    font-size: 15px;
}

.ai-guest-form-container .ai-form-error {
    font-size: 12.65px;
}

.ai-select-wrap {
    position: relative;
}

.ai-input-with-icon .ai-form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px !important;
}

.ai-select-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    stroke: #6b7280;
}

.ai-guest-submit-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #6D28D9 0%, #7C3AED 100%) !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.32);
    transition: all 0.18s ease;
}

.ai-guest-submit-btn:hover {
    background: linear-gradient(90deg, #5B21B6 0%, #6D28D9 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.45);
}

.ai-guest-submit-btn:active {
    transform: translateY(0);
}

.ai-guest-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13.2px;
    color: #6b7280;
    margin-top: 14px;
    line-height: 1.4;
    text-align: left;
}

.ai-guest-privacy-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #6b7280;
}

/* =========================================================
   Order History Interactive Cards & Order Details Breakdown
   (Matching User Screenshot with Status Themes & Quick RQ Button)
========================================================= */
.ai-chat-panel .message.ai .message-content.has-order-cards {
    max-width: 95% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100%;
}

.ai-order-intro-wrap {
    position: relative;
    display: inline-block;
    max-width: 88%;
    margin-bottom: 8px;
}

.ai-order-intro-wrap.ai-order-outro-wrap {
    margin-top: 8px;
    margin-bottom: 0;
}

.ai-order-intro-text {
    background: #F0F4FA !important;
    color: #334155 !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    padding: 12px 34px 12px 16px;
    display: inline-block;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-order-intro-text p {
    margin: 0 0 8px 0;
}

.ai-order-intro-text p:last-child {
    margin-bottom: 0;
}

.ai-orders-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 10px 2px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.ai-orders-container::-webkit-scrollbar {
    height: 5px;
}

.ai-orders-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 9999px;
}

.ai-orders-container::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

.ai-orders-container::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.ai-order-card {
    flex: 0 0 85%;
    min-width: 275px;
    max-width: 330px;
    scroll-snap-align: start;
    border-radius: 18px;
    padding: 18px 18px 16px 18px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.ai-order-card-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-order-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    flex-shrink: 0;
}

.ai-order-card-line1 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-order-card-line2 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 14px;
}

.ai-order-card-line2:last-child {
    margin-bottom: 2px;
}

/* Status: Delivered Theme (Mint Green - Exact Screenshot Style) */
.ai-order-card.card-status-delivered {
    background: #EDFAF3;
    border: 1.5px solid #A1E3C8;
}

.ai-order-card.card-status-delivered .ai-order-card-title {
    color: #0A3828;
}

.ai-order-card.card-status-delivered .ai-order-status-badge {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.ai-order-card.card-status-delivered .ai-order-card-line1 {
    color: #164E38;
}

.ai-order-card.card-status-delivered .ai-order-card-line2 {
    color: #245844;
}

/* Status: Under Process / Factory Theme (Amber / Warm Gold) */
.ai-order-card.card-status-process {
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
}

.ai-order-card.card-status-process .ai-order-card-title {
    color: #78350F;
}

.ai-order-card.card-status-process .ai-order-status-badge {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.ai-order-card.card-status-process .ai-order-card-line1 {
    color: #92400E;
}

.ai-order-card.card-status-process .ai-order-card-line2 {
    color: #A16207;
}

/* Status: Out for Delivery Theme (Sky / Crisp Blue) */
.ai-order-card.card-status-delivery {
    background: #F0F7FF;
    border: 1.5px solid #93C5FD;
}

.ai-order-card.card-status-delivery .ai-order-card-title {
    color: #1E3A8A;
}

.ai-order-card.card-status-delivery .ai-order-status-badge {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.ai-order-card.card-status-delivery .ai-order-card-line1 {
    color: #1D4ED8;
}

.ai-order-card.card-status-delivery .ai-order-card-line2 {
    color: #2563EB;
}

/* Status: Cancelled Theme (Rose / Crimson) */
.ai-order-card.card-status-cancelled {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
}

.ai-order-card.card-status-cancelled .ai-order-card-title {
    color: #991B1B;
}

.ai-order-card.card-status-cancelled .ai-order-status-badge {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.ai-order-card.card-status-cancelled .ai-order-card-line1 {
    color: #7F1D1D;
}

.ai-order-card.card-status-cancelled .ai-order-card-line2 {
    color: #991B1B;
}

/* Status: Pending / Taken Theme (Soft Violet) */
.ai-order-card.card-status-pending {
    background: #F5F3FF;
    border: 1.5px solid #DDD6FE;
}

.ai-order-card.card-status-pending .ai-order-card-title {
    color: #5B21B6;
}

.ai-order-card.card-status-pending .ai-order-status-badge {
    background: #EDE9FE;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
}

.ai-order-card.card-status-pending .ai-order-card-line1 {
    color: #6D28D9;
}

.ai-order-card.card-status-pending .ai-order-card-line2 {
    color: #7C3AED;
}

/* Status: Resolved / Closed Ticket Theme (Mint Green) */
.ai-order-card.card-status-resolved {
    background: #EDFAF3;
    border: 1.5px solid #A1E3C8;
}

.ai-order-card.card-status-resolved .ai-order-card-title {
    color: #0A3828;
}

.ai-order-card.card-status-resolved .ai-order-status-badge {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.ai-order-card.card-status-resolved .ai-order-card-line1 {
    color: #164E38;
}

.ai-order-card.card-status-resolved .ai-order-card-line2 {
    color: #245844;
}

/* Status: Open / Pending Ticket Theme (Little Orange Shade) */
.ai-order-card.card-status-open {
    background: #FFF7ED;
    border: 1.5px solid #FDBA74;
}

.ai-order-card.card-status-open .ai-order-card-title {
    color: #9A3412;
}

.ai-order-card.card-status-open .ai-order-status-badge {
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

.ai-order-card.card-status-open .ai-order-card-line1 {
    color: #7C2D12;
}

.ai-order-card.card-status-open .ai-order-card-line2 {
    color: #9A3412;
}

/* "Show details" Button - Exact Color & Style of Quick Related Questions */
.ai-order-show-details-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    background: #EDF4FF !important;
    border: 1.5px solid #3B82F6 !important;
    border-radius: 12px !important;
    color: #0F387A !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.ai-order-show-details-btn:hover {
    background: #DBEAFE !important;
    border-color: #1D4ED8 !important;
    color: #082F49 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2) !important;
}

.ai-order-show-details-btn:active {
    transform: translateY(0) !important;
}

.ai-order-show-details-btn svg.ai-chevron-down {
    stroke: #0F387A !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ai-order-show-details-btn:hover svg.ai-chevron-down {
    stroke: #082F49 !important;
    transform: translateY(1px);
}

/* Responsive Table for Order Details & Item Pricing Cards */
.ai-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 6px 0 6px 0;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    white-space: normal;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    white-space: normal;
}

.ai-chat-table th {
    background: #F8FAFC;
    color: #0F172A;
    font-weight: 700;
    padding: 8px 12px;
    border-bottom: 1.5px solid #E2E8F0;
    font-size: 13px;
    letter-spacing: -0.1px;
}

.ai-chat-table th:last-child {
    text-align: right;
}

.ai-chat-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    font-weight: 500;
    font-size: 13px;
    vertical-align: middle;
}

.ai-chat-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ai-chat-table tr:last-child td {
    border-bottom: none;
}

.ai-chat-table tbody tr:hover td {
    background: #F8FAFC;
}

.ai-chat-divider {
    border: 0;
    height: 1px;
    background: #E2E8F0;
    margin: 6px 0;
    opacity: 0.8;
}

.ai-chat-heading {
    margin: 12px 0 8px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.35;
}

/* =========================================================
   In-Chat Login & Verification Component (Matching Screenshot)
========================================================= */

@keyframes aiAuthCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-inchat-auth-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 18px 16px;
    margin: 10px 0 14px 0;
    box-shadow: 0 4px 18px rgba(119, 68, 113, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    width: 100%;
    animation: aiAuthCardSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    position: relative;
}

.ai-auth-step {
    display: flex;
    flex-direction: column;
}

.ai-auth-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-auth-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #F7EFF6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #774471;
}

.ai-auth-header-text {
    flex: 1;
    min-width: 0;
}

.ai-auth-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.ai-auth-desc {
    font-size: 12px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

.ai-auth-change-phone-btn {
    background: none;
    border: none;
    color: #774471;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
    margin-left: 2px;
}

.ai-auth-phone-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    padding: 2px 10px;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 46px;
    box-sizing: border-box;
}

.ai-auth-phone-row:focus-within {
    border-color: #774471;
    box-shadow: 0 0 0 3px rgba(119, 68, 113, 0.12);
}

.ai-auth-country-code {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 13.5px;
    color: #334155;
    padding-right: 10px;
    border-right: 1.5px solid #E2E8F0;
    user-select: none;
}

.ai-auth-phone-input {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    width: 100%;
    padding: 6px 10px;
    background: transparent;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.ai-auth-phone-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: normal;
}

.ai-auth-btn-primary {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #774471 0%, #5F345A 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    font-family: inherit;
}

.ai-auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(119, 68, 113, 0.32);
}

.ai-auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.ai-auth-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ai-auth-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94A3B8;
    margin-top: 10px;
}

/* Signup extra inputs */
.ai-auth-signup-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-auth-input-group label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ai-auth-text-input {
    width: 100%;
    height: 38px;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
    background: #FFFFFF;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ai-auth-text-input:focus {
    border-color: #774471;
    box-shadow: 0 0 0 3px rgba(119, 68, 113, 0.12);
}

/* 4-digit OTP Boxes */
.ai-auth-otp-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 10px 0;
}

.ai-auth-otp-digit {
    width: 48px;
    height: 52px;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: #0F172A;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.ai-auth-otp-digit:focus {
    border-color: #774471;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(119, 68, 113, 0.15);
}

.ai-auth-otp-digit.filled {
    border-color: #774471;
    background: #FAF5F9;
}

.ai-auth-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    color: #64748B;
    margin-bottom: 12px;
}

.ai-auth-resend-timer {
    font-weight: 700;
    color: #774471;
}

.ai-auth-resend-btn {
    background: none;
    border: none;
    color: #774471;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Consent checkboxes */
.ai-auth-consent-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0 4px 0;
}

.ai-auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11px;
    line-height: 1.4;
    color: #64748B;
    cursor: pointer;
    user-select: none;
}

.ai-auth-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #774471;
    cursor: pointer;
}

.ai-auth-checkbox-label a {
    color: #774471;
    text-decoration: underline;
}

/* Error message banner */
.ai-auth-error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
}

/* Success state */
.ai-auth-success-badge {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.ai-auth-success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #059669;
}

.ai-auth-success-text {
    flex: 1;
}

.ai-auth-success-title {
    font-size: 14px;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 2px 0;
}

.ai-auth-success-desc {
    font-size: 11.5px;
    color: #047857;
    margin: 0;
    line-height: 1.35;
}

.ai-auth-btn-continue {
    background: linear-gradient(135deg, #774471 0%, #5F345A 100%);
    margin-top: 10px;
}

.ai-auth-secure-badge-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #94A3B8;
    margin-top: 10px;
}

.ai-auth-secure-badge-footer strong {
    color: #774471;
    font-weight: 700;
}

/* Spinner */
.ai-auth-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: aiAuthSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes aiAuthSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   In-Message Pickup Confirmation Button
========================================================= */
.ai-confirm-pickup-wrap {
    margin-top: 14px;
    margin-bottom: 2px;
    width: 100%;
    display: flex;
}

.ai-confirm-pickup-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: #7c2069 !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(124, 32, 105, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    user-select: none !important;
}

.ai-confirm-pickup-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ai-confirm-pickup-btn:hover {
    background: #6a1758 !important;
    box-shadow: 0 5px 14px rgba(124, 32, 105, 0.35) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

.ai-confirm-pickup-btn:hover svg {
    transform: translateX(2px);
}

.ai-confirm-pickup-btn:active {
    transform: translateY(0.5px) !important;
    box-shadow: 0 2px 6px rgba(124, 32, 105, 0.25) !important;
}

.ai-confirm-pickup-btn:disabled,
.ai-confirm-pickup-btn.is-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

/* =========================================================
   In-Chat Address Card & Map
========================================================= */
.ai-inchat-address-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px;
    margin: 10px 0 14px 0;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    animation: aiAuthCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ai-addr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ai-addr-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ai-addr-pin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-addr-title-wrap {
    min-width: 0;
}

.ai-addr-area-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1E293B;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-addr-gps-text {
    font-size: 11px;
    color: #64748B;
    display: block;
    margin-top: 1px;
}

.ai-addr-edit-pin-btn {
    background: none;
    border: none;
    color: #2563EB;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.ai-addr-edit-pin-btn:hover {
    background: #EFF6FF;
    text-decoration: underline;
}

.ai-addr-map-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #E2E8F0;
    background: #F1F5F9;
}

.ai-addr-map-canvas {
    width: 100%;
    height: 100%;
}

.ai-addr-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-addr-pin-pulse {
    width: 28px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 32, 105, 0.35);
    margin-top: -3px;
    animation: aiPinPulse 1.8s ease-out infinite;
}

@keyframes aiPinPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.6);
        opacity: 0.8;
    }
}

.ai-addr-locate-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #475569;
    transition: all 0.15s ease;
}

.ai-addr-locate-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.ai-addr-saved-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FAF5F9;
    border: 1px solid #F3E8F1;
    margin-bottom: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-addr-saved-toggle:hover {
    background: #F5EBF3;
    border-color: #E6D0E2;
}

.ai-addr-saved-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ai-addr-saved-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EDE0EB;
    color: #7c2069;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-addr-saved-text strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #3B0730;
    display: block;
}

.ai-addr-saved-text small {
    font-size: 11px;
    color: #774471;
    display: block;
}

.ai-addr-saved-action {
    color: #7c2069;
    font-size: 13px;
    font-weight: 700;
}

.ai-addr-field-group {
    margin-bottom: 11px;
}

.ai-addr-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.ai-addr-label span.req {
    color: #EF4444;
}

.ai-addr-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    color: #1E293B;
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.ai-addr-input:focus {
    border-color: #7c2069;
    box-shadow: 0 0 0 3px rgba(124, 32, 105, 0.12);
}

.ai-addr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 14px 0;
    cursor: pointer;
    font-size: 11.5px;
    color: #334155;
    line-height: 1.35;
    user-select: none;
}

.ai-addr-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #7c2069;
    cursor: pointer;
}

.ai-addr-checkbox-label strong {
    display: block;
    color: #1E293B;
}

.ai-addr-checkbox-label small {
    display: block;
    color: #64748B;
    font-size: 10.5px;
    margin-top: 1px;
}

.ai-addr-error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.ai-addr-submit-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: #7c2069 !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(124, 32, 105, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-addr-submit-btn:hover {
    background: #6a1758 !important;
    box-shadow: 0 5px 14px rgba(124, 32, 105, 0.38) !important;
    transform: translateY(-1px) !important;
}

.ai-addr-submit-btn:hover svg {
    transform: translateX(2px);
}

.ai-addr-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* =========================================================
   Google Places Autocomplete Dropdown
   Ensures address predictions appear clearly above modal
========================================================= */
.pac-container {
    z-index: 2147483647 !important;
    position: absolute !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08) !important;
    font-family: var(--ai-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    margin-top: 6px !important;
    padding: 6px 0 !important;
    pointer-events: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: 250px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f1f5f9 !important;
}

.pac-container::-webkit-scrollbar {
    height: 5px !important;
    width: 5px !important;
}

.pac-container::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

.pac-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.pac-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.pac-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
    cursor: pointer !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    transition: background-color 0.15s ease !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

.pac-item span {
    white-space: nowrap !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #f8fafc !important;
}

.pac-icon {
    margin-top: 0 !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.pac-item-query {
    font-size: 13px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    padding-right: 4px !important;
}

.pac-matched {
    font-weight: 700 !important;
    color: #7c2069 !important;
}

@media (max-width: 600px) {
    .pac-container {
        max-width: calc(100vw - 32px) !important;
    }
}


/* ==========================================================================
   AI Smart Basket & Cost Estimator Component
   ========================================================================== */

.ai-basket-builder-wrap,
.ai-inchat-basket-card {
    background: #FFFFFF;
    border: 1.5px solid #ECDCE9;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(124, 32, 105, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 6px 0;
    overflow: hidden;
    animation: aiAuthCardSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    font-family: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 170px);
}

@media (min-width: 1025px) {
    .ai-inchat-basket-card {
        height: 490px;
        max-height: 490px;
    }
}

@media (max-width: 1024px) {
    .ai-inchat-basket-card {
        height: calc(var(--ai-vv-height, 100vh) - 140px);
        max-height: calc(var(--ai-vv-height, 100vh) - 140px);
    }
}

.ai-chat-panel .messages.has-active-basket {
    overflow-y: hidden !important;
    display: flex;
    flex-direction: column;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.ai-chat-panel .message.ai.is-basket-message {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.ai-chat-panel .message.ai.is-basket-message .message-content.has-basket-embed {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-basket-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: linear-gradient(135deg, #FAF2F8 0%, #FFFFFF 100%);
    border-bottom: 1.5px solid #F0DFED;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ai-basket-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ai-basket-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c2069 0%, #9e2a85 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 32, 105, 0.28);
}

.ai-basket-header-text {
    flex: 1;
    min-width: 0;
}

.ai-basket-header-title {
    font-size: 15px;
    font-weight: 800;
    color: #1E1022;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.ai-basket-header-subtitle {
    font-size: 11.5px;
    color: #64748B;
    margin: 3px 0 0 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.ai-basket-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: aiBasketPulse 2s infinite ease-in-out;
}

@keyframes aiBasketPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.7;
    }
}

.ai-basket-dot-sep {
    color: #CBD5E1;
    font-size: 10px;
}

.ai-basket-zero-gst-badge {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 10px;
    font-weight: 800;
    padding: 1.5px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.ai-basket-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ai-basket-header-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ai-basket-header-close-btn:hover {
    background: #FEE2E2;
    color: #EF4444;
    border-color: #FECACA;
}

.ai-basket-catalog-view,
.ai-basket-cart-view {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.ai-basket-btn-view-cart {
    padding: 9px 14px;
    background: #FDF2F8;
    color: #831843;
    border: 1.5px solid #F9A8D4;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.ai-basket-btn-view-cart:hover:not(:disabled) {
    background: #7c2069;
    color: #FFFFFF;
    border-color: #7c2069;
    box-shadow: 0 4px 12px rgba(124, 32, 105, 0.25);
    transform: translateY(-1px);
}

.ai-basket-btn-view-cart:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #F8FAFC;
    color: #94A3B8;
    border-color: #E2E8F0;
}

/* Dedicated Cart Details View */
.ai-basket-cart-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FAF2F8 0%, #FFFFFF 100%);
    border-bottom: 1.5px solid #F0DFED;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 9;
}

.ai-basket-cart-view-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-basket-cart-view-title {
    font-size: 14px;
    font-weight: 800;
    color: #7c2069;
}

.ai-basket-tray-count-badge {
    font-size: 11px;
    font-weight: 800;
    background: #F3E2F0;
    color: #7c2069;
    padding: 2px 9px;
    border-radius: 12px;
}

.ai-basket-cart-back-btn {
    padding: 7px 14px;
    background: #FFFFFF;
    color: #475569;
    border: 1.5px solid #CBD5E1;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.ai-basket-cart-back-btn:hover {
    background: #FAF4F8;
    color: #7c2069;
    border-color: #7c2069;
}

.ai-basket-btn-add-more {
    padding: 8px 14px;
    background: #FFFFFF;
    color: #7c2069;
    border: 1.5px solid #FBCFE8;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.ai-basket-btn-add-more:hover {
    background: #FDF2F8;
    color: #5B2B56;
}

.ai-basket-cart-view-footer {
    padding: 11px 16px 13px 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF2F7 100%);
    border-top: 1.5px solid #F0DFED;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 16px rgba(124, 32, 105, 0.05);
}

.ai-basket-cart-empty {
    padding: 38px 16px;
    text-align: center;
}

.ai-basket-cart-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.ai-basket-cart-empty-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 12px;
}

.ai-basket-cart-empty-btn {
    padding: 8px 18px;
    font-size: 12px;
    color: #7c2069;
    border-color: #FBCFE8;
    background: #FDF2F8;
    font-weight: 700;
    border-radius: 10px;
}

.ai-basket-cart-empty-btn:hover {
    background: #7c2069;
    color: #FFFFFF;
    border-color: #7c2069;
}

.ai-basket-search-section {
    padding: 10px 16px 9px 16px;
    background: #FAF5F9;
    border-bottom: 1px solid #EFE2ED;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 9;
}

.ai-basket-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ai-basket-search-icon {
    position: absolute;
    left: 12px;
    color: #94A3B8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.ai-basket-search-input-wrap:focus-within .ai-basket-search-icon {
    color: #7c2069;
}

.ai-basket-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9.5px 32px 9.5px 36px;
    border: 1.5px solid #7c2069;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(124, 32, 105, 0.04);
}

.ai-basket-search-input:focus {
    border-color: #7c2069;
    box-shadow: 0 0 0 3.5px rgba(124, 32, 105, 0.16);
}

.ai-basket-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}

.ai-basket-search-clear:hover {
    color: #0F172A;
}

.ai-basket-quick-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.ai-basket-quick-tags::-webkit-scrollbar {
    display: none;
}

.ai-basket-tag-btn {
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
}

/* Shirt: Soft Blue */
.ai-basket-tag-btn.ai-tag-shirt {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}
.ai-basket-tag-btn.ai-tag-shirt:hover {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #93C5FD;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15);
    transform: translateY(-1px);
}

/* T-shirt: Soft Violet */
.ai-basket-tag-btn.ai-tag-tshirt {
    background: #F5F3FF;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
}
.ai-basket-tag-btn.ai-tag-tshirt:hover {
    background: #EDE9FE;
    color: #5B21B6;
    border-color: #C4B5FD;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.15);
    transform: translateY(-1px);
}

/* Jeans: Soft Indigo */
.ai-basket-tag-btn.ai-tag-jeans {
    background: #EEF2FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
}
.ai-basket-tag-btn.ai-tag-jeans:hover {
    background: #E0E7FF;
    color: #3730A3;
    border-color: #A5B4FC;
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.15);
    transform: translateY(-1px);
}

/* Saree: Spin Cycles Signature Berry / Rose */
.ai-basket-tag-btn.ai-tag-saree {
    background: #FDF2F8;
    color: #BE185D;
    border: 1px solid #FBCFE8;
}
.ai-basket-tag-btn.ai-tag-saree:hover {
    background: #FCE7F3;
    color: #9D174D;
    border-color: #F9A8D4;
    box-shadow: 0 2px 6px rgba(190, 24, 93, 0.15);
    transform: translateY(-1px);
}

/* Bedsheet: Warm Amber */
.ai-basket-tag-btn.ai-tag-bedsheet {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}
.ai-basket-tag-btn.ai-tag-bedsheet:hover {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15);
    transform: translateY(-1px);
}

/* Blanket: Fresh Emerald */
.ai-basket-tag-btn.ai-tag-blanket {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.ai-basket-tag-btn.ai-tag-blanket:hover {
    background: #D1FAE5;
    color: #065F46;
    border-color: #6EE7B7;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.15);
    transform: translateY(-1px);
}

.ai-basket-selected-tray-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    max-height: none;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.ai-basket-tray-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 13px;
    background: #FAF4F9;
    border: 1.5px solid #E2CFDF;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.ai-basket-tray-item:nth-child(4n + 1) {
    background: linear-gradient(135deg, #FFF7FC 0%, #FFFFFF 100%);
    border-color: #F1D4EA;
}

.ai-basket-tray-item:nth-child(4n + 2) {
    background: linear-gradient(135deg, #F4F8FF 0%, #FFFFFF 100%);
    border-color: #D6E4FF;
}

.ai-basket-tray-item:nth-child(4n + 3) {
    background: linear-gradient(135deg, #F3FDF7 0%, #FFFFFF 100%);
    border-color: #D1F2DF;
}

.ai-basket-tray-item:nth-child(4n + 4) {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
    border-color: #FCECC8;
}

.ai-basket-tray-item:hover {
    border-color: #7c2069;
    box-shadow: 0 3px 10px rgba(124, 32, 105, 0.1);
}

.ai-basket-tray-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ai-basket-tray-item-info {
    min-width: 0;
    flex: 1;
}

.ai-basket-tray-item-name {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-basket-tray-item-meta {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-basket-tray-svc-tag {
    background: #FDF2F8;
    color: #7c2069;
    border: 1px solid #FBCFE8;
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 10.5px;
}

.ai-basket-tray-unit-rate {
    color: #64748B;
    font-weight: 600;
}

.ai-basket-tray-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-basket-tray-subtotal {
    min-width: 52px;
    text-align: right;
    font-size: 14px;
    font-weight: 900;
    color: #7c2069;
}

/* Catalog / Search Results */
.ai-basket-results-wrap {
    padding: 12px 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    max-height: none;
    background: #FFFFFF;
    -webkit-overflow-scrolling: touch;
}

.ai-basket-results-header {
    margin-bottom: 10px;
}

.ai-basket-results-title {
    font-size: 11px;
    font-weight: 800;
    color: #7c2069;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-basket-results-title::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c2069;
    box-shadow: 0 0 0 2px rgba(124, 32, 105, 0.2);
}

.ai-basket-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.ai-basket-loading-indicator,
.ai-basket-empty-results {
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.ai-basket-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border: 1.5px solid #E2CFDF;
    border-radius: 13px;
    background: #FAF4F9;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Distinct high-contrast pastel gradients for item cards */
.ai-basket-item-card:nth-child(4n + 1) {
    background: linear-gradient(135deg, #FFF7FC 0%, #FFFFFF 100%);
    border-color: #F1D4EA;
}
.ai-basket-item-card:nth-child(4n + 1):hover {
    border-color: #C99EC2;
    box-shadow: 0 5px 14px rgba(124, 32, 105, 0.09);
    transform: translateY(-1.5px);
}

.ai-basket-item-card:nth-child(4n + 2) {
    background: linear-gradient(135deg, #F4F8FF 0%, #FFFFFF 100%);
    border-color: #D6E4FF;
}
.ai-basket-item-card:nth-child(4n + 2):hover {
    border-color: #93C5FD;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.09);
    transform: translateY(-1.5px);
}

.ai-basket-item-card:nth-child(4n + 3) {
    background: linear-gradient(135deg, #F3FDF7 0%, #FFFFFF 100%);
    border-color: #D1F2DF;
}
.ai-basket-item-card:nth-child(4n + 3):hover {
    border-color: #86EFAC;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.09);
    transform: translateY(-1.5px);
}

.ai-basket-item-card:nth-child(4n + 4) {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
    border-color: #FCECC8;
}
.ai-basket-item-card:nth-child(4n + 4):hover {
    border-color: #FCD34D;
    box-shadow: 0 5px 14px rgba(217, 119, 6, 0.09);
    transform: translateY(-1.5px);
}

.ai-basket-item-card.has-qty {
    border: 2px solid #7c2069 !important;
    background: linear-gradient(135deg, #FFF4FC 0%, #FFFFFF 100%) !important;
    box-shadow: 0 6px 18px rgba(124, 32, 105, 0.16) !important;
}

.ai-basket-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ai-basket-item-info {
    min-width: 0;
    flex: 1;
}

.ai-basket-item-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.ai-basket-item-card.has-qty .ai-basket-item-name {
    color: #4a0d3f;
}

.ai-basket-service-selector-wrap {
    margin-top: 4px;
}

.ai-basket-service-select {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    border: 1.5px solid #D6C7D5;
    border-radius: 7px;
    padding: 3px 7px;
    background: #FFFFFF;
    max-width: 100%;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.ai-basket-service-select:focus {
    border-color: #7c2069;
    color: #7c2069;
    box-shadow: 0 0 0 2.5px rgba(124, 32, 105, 0.14);
}

.ai-basket-price-unit {
    font-size: 11px;
    color: #64748B;
    margin-top: 3px;
    font-weight: 600;
}

.ai-unit-price-display {
    font-weight: 900;
    color: #7c2069;
    font-size: 13px;
}

/* Stepper buttons - rectangular with slight curved corners */
.ai-basket-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: #F7EDF5;
    border: 1.5px solid #E2BEDC;
    border-radius: 8px;
    padding: 3px 5px;
    transition: all 0.2s ease;
}

.ai-basket-item-card.has-qty .ai-basket-qty-controls,
.ai-basket-tray-item .ai-basket-qty-controls {
    background: #F3DCF0;
    border-color: #7c2069;
}

.ai-basket-qty-btn {
    width: 23px;
    height: 23px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: #7c2069;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    padding: 0;
}

.ai-basket-qty-plus {
    background: linear-gradient(135deg, #7c2069 0%, #9e2a85 100%) !important;
    color: #FFFFFF !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(124, 32, 105, 0.28);
}

.ai-basket-qty-plus:hover {
    background: linear-gradient(135deg, #631554 0%, #851c6e 100%) !important;
    transform: scale(1.06);
}

.ai-basket-qty-minus {
    color: #7c2069;
    border-radius: 5px !important;
}

.ai-basket-qty-minus:hover:not(:disabled) {
    background: #FFFFFF;
    color: #EF4444;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ai-basket-qty-minus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ai-basket-qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: #3e0c48;
}

.ai-basket-item-card.has-qty .ai-basket-qty-val {
    color: #7c2069;
}

/* Summary Footer */
.ai-basket-summary-footer {
    padding: 11px 16px 13px 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF2F7 100%);
    border-top: 1.5px solid #F0DFED;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 16px rgba(124, 32, 105, 0.05);
}

.ai-basket-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12.5px;
}

.ai-basket-stat {
    color: #475569;
    display: flex;
    align-items: center;
}

.ai-basket-stat-lbl {
    color: #64748B;
    font-weight: 600;
}

.ai-basket-total-items {
    background: #F3E4F1;
    color: #7c2069;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 12px;
    margin-left: 6px;
}

.ai-basket-total-cost {
    color: #7c2069;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.ai-basket-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-basket-btn-book {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #7c2069 0%, #4a0d3f 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(124, 32, 105, 0.32);
}

.ai-basket-btn-book:hover:not(:disabled) {
    background: linear-gradient(135deg, #8f2679 0%, #5c144e 100%);
    box-shadow: 0 6px 22px rgba(124, 32, 105, 0.42);
    transform: translateY(-1.5px);
}

.ai-basket-btn-book:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.ai-basket-btn-reset {
    padding: 9px 13px;
    background: #FFF1F2;
    color: #BE123C;
    border: 1.5px solid #FECDD3;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-basket-btn-reset:hover {
    background: #FFE4E6;
    color: #9F1239;
    border-color: #FDA4AF;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}

/* Pricing response CTA to open basket */
.ai-pricing-basket-cta {
    margin: 10px 0 4px 0;
    display: flex;
}

.ai-open-basket-btn {
    background: #FDF2F8;
    color: #7c2069;
    border: 1.5px solid #FBCFE8;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ai-open-basket-btn:hover {
    background: #7c2069;
    color: #FFFFFF;
    border-color: #7c2069;
    box-shadow: 0 3px 10px rgba(124, 32, 105, 0.25);
}

@media (max-width: 600px) {
    .ai-basket-results-grid {
        grid-template-columns: 1fr;
    }
}
