#gab-widget {
    /* GemAstro Blue Theme */
    --primary: #012244;
    /* Deep Blue */
    --primary-light: #17476d;
    --accent: #012244;
    /* Bright Blue */
    --accent-glow: rgba(37, 99, 235, 0.15);
    --bg: #f7f9fc;
    /* Light Beige */
    --surface: #ffffff;
    --text-main: #1a1a2e;
    --text-sub: #64748b;
    --line: #e5e7eb;
    --success: #10b981;
    --shadow-sm: 0 4px 6px -1px rgba(9, 45, 118, 0.1), 0 2px 4px -1px rgba(9, 45, 118, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(9, 45, 118, 0.15), 0 10px 10px -5px rgba(9, 45, 118, 0.04);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hide chatbot on cart and checkout pages */
body.woocommerce-cart #gab-widget,
body.woocommerce-checkout #gab-widget {
    display: none !important;
}

/* --- Base Reset --- */
#gab-widget * {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#gab-widget {
    font-family: var(--font);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    line-height: normal;
}

#gab-widget h1,
#gab-widget h2,
#gab-widget h3,
#gab-widget .brand-logo,
#gab-widget .chip {
    font-family: var(--font-head);
}

/* --- Launcher Button --- */
#gab-widget .launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: rgba(44, 75, 128, 1);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(45, 27, 105, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    color: var(--accent);
    z-index: 9999999;
}

#gab-widget .launcher:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(45, 27, 105, 0.45);
}

#gab-widget .launcher svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#gab-widget .notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #FF4444;
    border: 2px solid white;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

/* --- Chat Main Container --- */
#gab-widget .chat-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 680px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 160px);
    background: var(--bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999999;
    border: 1px solid var(--line);
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#gab-widget .chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
}

/* Hide launcher when chat is open */
#gab-widget .chat-widget.active~.launcher {
    display: none;
}

/* --- Header --- */
#gab-widget .header {
    background: linear-gradient(135deg, var(--primary) 0%, #041e42 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

#gab-widget .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

#gab-widget .brand-logo {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

#gab-widget .brand-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

#gab-widget .brand-info p {
    margin: 0;
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

#gab-widget .live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

#gab-widget .actions {
    display: flex;
    gap: 8px;
}

#gab-widget .icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
    padding: 0;
}

#gab-widget .icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Message Area --- */
#gab-widget .messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-image: radial-gradient(circle at 50% 50%, rgba(45, 27, 105, 0.03) 0%, transparent 50%);
}

#gab-widget .msg-row {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    animation: gabSlideIn 0.3s forwards;
    margin: 0;
}

#gab-widget .msg-row.user {
    justify-content: flex-end;
}

#gab-widget .avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#gab-widget .avatar.system {
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

#gab-widget .bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#gab-widget .msg-row.system .bubble {
    background: var(--surface);
    border-top-left-radius: 4px;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

#gab-widget .msg-row.user .bubble {
    background: var(--primary);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.2);
}

/* --- Rich Elements --- */
#gab-widget .card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow-sm);
}

#gab-widget .chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

#gab-widget .chip {
    background: white;
    border: 1px solid var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin: 0;
    flex-grow: 1;
}

#gab-widget .chip:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Input Area --- */
#gab-widget .input-bar {
    background: white;
    border-top: 1px solid var(--line);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

#gab-widget .input-box {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px 18px;
    font-size: 14px;
    transition: all 0.2s;
    color: var(--text-main);
    margin: 0;
}

#gab-widget .input-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 27, 105, 0.1);
    background: #fff;
}

#gab-widget .send-btn {
    background: var(--primary);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(9, 45, 118, 0.2);
    padding: 0;
    margin: 0;
}

#gab-widget .send-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* --- Animations --- */
@keyframes gabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

#gab-widget .typing-dots span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: gabTyping 1.4s infinite ease-in-out both;
    margin: 0 1px;
}

#gab-widget .typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

#gab-widget .typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes gabTyping {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    #gab-widget .input-bar {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: white;
    }

    #gab-widget .input-box {
        font-size: 16px !important;
    }

    #gab-widget .chat-widget {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 60px !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 20px 20px 0 0 !important;
        max-width: none !important;
    }

    #gab-widget .launcher {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    #gab-widget .launcher svg {
        width: 26px;
        height: 26px;
    }
}

/* --- Product Cards --- */
.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 4px 16px 4px;
    width: 100%;
    scrollbar-width: thin;
}

.product-card {
    min-width: 140px;
    max-width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.p-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f0f0f0;
}

.p-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-price {
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}

.p-btn {
    margin-top: 6px;
    background: var(--primary);
    color: var(--accent);
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.p-btn:hover {
    background: var(--primary-light);
}

#gab-widget .case-card-footer {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* --- Enhanced Big Actions --- */
#gab-widget .big-btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 0;
    background-size: 200% auto;
}

#gab-widget .big-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#gab-widget .btn-wa {
    background: #25D366;
    /* WhatsApp Green */
}

#gab-widget .btn-call {
    background: var(--primary);
    /* Brand Color */
}

/* --- Rating Options --- */
#gab-widget .rating-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#gab-widget .rating-opt {
    background: white;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
}

#gab-widget .rating-opt:hover {
    background: #fffbef;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Modern Calm — GemAstro navy */
#gab-widget .chat-widget { width: 400px; border-radius: 24px; border-color: #dfe7ef; box-shadow: 0 20px 64px rgba(1,34,68,.18); background: #fff; }
#gab-widget .header { background: #f0f5fa; color: var(--primary); padding: 22px 20px; border-bottom: 1px solid #e0e8f0; box-shadow: none; }
#gab-widget .brand { gap: 10px; min-width: 0; }
#gab-widget .brand-logo { width: 42px; height: 42px; background: #e1ebf5; color: var(--primary); border: 0; font-size: 32px; }
#gab-widget .brand-info h3 { color: var(--primary); font-size: 16px; letter-spacing: -.3px; }
#gab-widget .brand-info p { color: #52677d; opacity: 1; margin-top: 6px; font-size: 12px; }
#gab-widget .live-dot { box-shadow: none; }
#gab-widget .actions { gap: 4px; }
#gab-widget .icon-btn { color: var(--primary); background: transparent; border-radius: 50%; }
#gab-widget .icon-btn:hover { background: #dde8f2; }
#gab-widget .messages { padding: 22px 18px; background: #fff; gap: 16px; }
#gab-widget .avatar.system { background: #eaf0f7; border: 0; color: var(--primary); box-shadow: none; font-size: 16px; }
#gab-widget .bubble { padding: 13px 16px; box-shadow: none; font-size: 14px; }
#gab-widget .msg-row.system .bubble { background: #f1f5f9; border: 0; border-radius: 4px 18px 18px 18px; }
#gab-widget .msg-row.user .bubble { background: #012244; box-shadow: none; }
#gab-widget .card { padding: 0; background: transparent; border: 0; box-shadow: none; }
#gab-widget .chips-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#gab-widget .chip { display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 12px 10px; background: #f7f9fc; border: 1px solid #dce6ef; border-radius: 13px; color: #012244; line-height: 1.45; box-shadow: none; overflow-wrap: anywhere; }
#gab-widget .chip:hover { background: #eaf1f8; border-color: #012244; color: #012244; transform: translateY(-1px); box-shadow: none; }
#gab-widget .input-bar { padding: 16px; gap: 10px; border-color: #e7edf3; }
#gab-widget .input-box { min-width: 0; background: #f7f9fc; border-color: #dce6ef; padding: 13px 16px; font-family: var(--font); }
#gab-widget .input-box:focus { box-shadow: 0 0 0 3px rgba(1,34,68,.12); }
#gab-widget .send-btn { width: 44px; height: 44px; background: #012244; box-shadow: none; }
#gab-widget .launcher { background: #012244; border: 0; box-shadow: 0 8px 28px rgba(1,34,68,.24); }
#gab-widget .launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(1,34,68,.28); }
#gab-widget .launcher svg { filter: none; }
#gab-widget .notification-dot { background: #24a37a; animation: none; }
#gab-widget .product-card { border: 1px solid #dce6ef; border-radius: 14px; box-shadow: none; overflow: hidden; }
#gab-widget .p-btn { color: #fff; background: #012244; border-radius: 8px; padding: 9px 12px; text-transform: none; }
#gab-widget :is(button,input,.chip):focus-visible { outline: 2px solid #012244; outline-offset: 3px; }
@media (max-width: 480px) { #gab-widget .header { padding: 16px; } #gab-widget .messages { padding: 18px 14px; } #gab-widget .input-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { #gab-widget *, #gab-widget *::before, #gab-widget *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Action cards and welcome hierarchy */
#gab-widget .header { padding: 20px; background: #f0f5fa; }
#gab-widget .brand-logo { border-radius: 15px; width: 44px; height: 44px; background: #012244; color: #fff; }
#gab-widget .brand-logo svg { width: 27px; height: 27px; }
#gab-widget .avatar svg { width: 20px; height: 20px; }
#gab-widget .chat-widget { height: 660px; max-height: calc(100dvh - 130px); bottom: 98px; }
#gab-widget .messages { gap: 18px; padding: 24px 20px; }
#gab-widget .choices-row, #gab-widget .welcome-row { width: 100%; }
#gab-widget .choices-row > .avatar, #gab-widget .welcome-row > .avatar { display: none; }
#gab-widget .choices-row > .bubble, #gab-widget .welcome-row > .bubble { width: 100%; max-width: none; background: transparent; padding: 0; border: 0; border-radius: 0; }
#gab-widget .welcome-eyebrow { color: #657b91; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
#gab-widget .welcome-panel h2 { color: #012244; font-family: var(--font); font-size: 29px; font-weight: 650; line-height: 1.16; letter-spacing: -1px; margin: 12px 0; }
#gab-widget .welcome-panel p { color: #62758a; font-size: 13px; line-height: 1.6; margin: 0 0 4px; }
#gab-widget .chip { min-height: 84px; padding: 14px 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; text-align: left; font-family: var(--font); position: relative; white-space: normal; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; }
#gab-widget .choice-icon { display: flex; color: #012244; }
#gab-widget .choice-icon svg { width: 24px; height: 24px; }
#gab-widget .choice-arrow { position: absolute; right: 10px; top: 16px; color: #8499ac; }
#gab-widget .choice-arrow svg { width: 14px; height: 14px; }
#gab-widget .chip:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 54px; }
#gab-widget .chip:last-child:nth-child(odd) .choice-arrow { top: 20px; }
#gab-widget .chip:hover { background: #edf3fa; border-color: #9bb2c9; }
#gab-widget .input-box { height: 46px; }
#gab-widget .launcher { width: 58px; height: 58px; }
#gab-widget .launcher:has(+ .chat-widget.active) { display: none; }
@media (max-width: 480px) { #gab-widget .chat-widget { top: 12px !important; max-height: calc(100dvh - 12px) !important; } #gab-widget .welcome-panel h2 { font-size: 27px; } }
#gab-widget .msg-row.system.choices-row > .bubble, #gab-widget .msg-row.system.welcome-row > .bubble { background: transparent; border: 0; padding: 0; max-width: none; }
#gab-widget .chip { min-height: 72px; gap: 7px; }
#gab-widget .welcome-panel h2 { font-size: 26px; }
#gab-widget .welcome-panel p { font-size: 12px; }

/* Store-backed shopping assistant */
#gab-widget .msg-row.system.shopping-row { width: 100%; }
#gab-widget .shopping-row > .avatar { display: none; }
#gab-widget .msg-row.system.shopping-row > .bubble { width: 100%; max-width: none; padding: 0; background: transparent; }
#gab-widget .gab-shop-results { display: grid; gap: 12px; }
#gab-widget .gab-shop-product { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 13px; border: 1px solid #dce6ef; border-radius: 14px; padding: 12px; background: #fff; }
#gab-widget .gab-shop-product img { width: 82px; height: 92px; object-fit: cover; border-radius: 9px; }
#gab-widget .gab-shop-product h3 { color: #012244; font-size: 13px; line-height: 1.45; margin: 0 0 7px; }
#gab-widget .gab-shop-product p { margin: 0 0 4px; font-size: 13px; }
#gab-widget .gab-shop-product small { display: block; color: #62758a; font-size: 11px; }
#gab-widget .gab-shop-product a { display: inline-block; margin-top: 9px; color: #012244; font-size: 12px; font-weight: 650; text-decoration: underline; }
#gab-widget .gab-product-facts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; font-size: 12px; margin: 0; padding: 14px; background: #f1f5f9; border-radius: 12px; }
#gab-widget .gab-product-facts dt { font-weight: 600; } #gab-widget .gab-product-facts dd { margin: 0; }
#gab-widget .gab-policy { padding: 12px; background: #f1f5f9; border-radius: 12px; margin: 10px 0; }
#gab-widget .gab-policy summary { cursor: pointer; font-weight: 600; }
#gab-widget .gab-policy p { white-space: pre-line; font-size: 12px; max-height: 260px; overflow-y: auto; }
#gab-widget .gab-expert { display: block; background: #012244; color: #fff; padding: 13px 16px; text-align: center; text-decoration: none; border-radius: 10px; }
#gab-widget .send-btn:disabled { opacity: .5; cursor: wait; }

/* Persistent chat navigation and readable answer formatting */
#gab-widget .gab-navigation { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 9px 20px; border-bottom: 1px solid #e7edf3; background: #fff; }
#gab-widget .gab-navigation button { font: 600 12px var(--font); color: #012244; padding: 7px 10px; border: 1px solid #dce6ef; background: #f7f9fc; border-radius: 8px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; }
#gab-widget .gab-navigation button:disabled { color: #9aa8b7; cursor: default; background: #fff; }
#gab-widget .chip:disabled { cursor: default; opacity: .55; transform: none; box-shadow: none; }
#gab-widget .bubble strong { font-weight: 700; color: inherit; }
#gab-widget .gab-text-table { max-width: 100%; overflow-x: auto; white-space: pre; margin: 10px 0; padding: 12px; background: #e8eef5; border-radius: 8px; font-size: 11px; line-height: 1.6; }
#gab-widget .gab-shop-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
#gab-widget .gab-shop-price del { color: #7a8999; font-size: 11px; }
#gab-widget .gab-shop-price strong { color: #012244; font-size: 14px; }
#gab-widget .gab-shop-price { display: grid; gap: 4px; margin-bottom: 7px; }
#gab-widget .gab-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
#gab-widget .gab-price-line > span { color: #62758a; font-size: 10px; }
#gab-widget .gab-discount { justify-self: start; background: #e6f5ed; color: #166846; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 700; line-height: 1.4; }
#gab-widget .gab-gem-choice { display: block; width: 56px; height: 40px; object-fit: contain; margin: 0; border: 0; background: transparent; }
#gab-widget .chip:has(.gab-gem-choice) { min-height: 94px; }

/* Concierge refresh: quiet conversation, compact actions and readable results. */
#gab-widget .chat-widget { width: 420px; height: 710px; max-height: calc(100dvh - 110px); border-radius: 22px; border: 1px solid #dbe4ed; box-shadow: 0 18px 70px #01224426; overflow: hidden; }
#gab-widget .header { padding: 18px 20px; background: #012244; color: #fff; }
#gab-widget .brand-info h3 { color: #fff; font-size: 15px; letter-spacing: -.2px; }
#gab-widget .brand-info p { color: #bdccdb; margin-top: 5px; font-size: 11px; }
#gab-widget .brand-logo { background: #ffffff12; border: 1px solid #ffffff25; border-radius: 12px; width: 40px; height: 40px; }
#gab-widget .header .icon-btn { color: #fff; width: 30px; height: 30px; }
#gab-widget .header .icon-btn:hover { background: #ffffff18; }
#gab-widget .gab-navigation { padding: 7px 16px; background: #f6f8fb; }
#gab-widget .gab-navigation button { border: 0; background: transparent; font-size: 11px; padding: 5px; }
#gab-widget .gab-navigation button:disabled { background: transparent; opacity: .4; }
#gab-widget .messages { padding: 22px 18px; gap: 14px; background: #fff; scroll-behavior: smooth; overscroll-behavior: contain; }
#gab-widget .messages > [hidden] { display: none !important; }
#gab-widget .msg-row.system > .avatar { display: none; }
#gab-widget .msg-row.system > .bubble { background: transparent; padding: 3px 2px; max-width: 100%; border-radius: 0; font-size: 14px; line-height: 1.65; color: #263c51; overflow-wrap: anywhere; }
#gab-widget .msg-row.user > .bubble { padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: #edf2f7; color: #012244; font-size: 13px; line-height: 1.5; }
#gab-widget .welcome-eyebrow { color: #718295; font-size: 9px; letter-spacing: 1.8px; }
#gab-widget .welcome-panel h2 { font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; margin: 12px 0; }
#gab-widget .welcome-panel p { font-size: 13px; color: #6b7b8d; line-height: 1.6; }
#gab-widget .gab-example { margin: 17px 0 4px; padding: 11px 13px; border-radius: 10px; background: #f4f7fa; font-size: 11px; color: #52697e; }
#gab-widget .home-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#gab-widget .home-actions .chip { min-height: 74px; font-size: 12px; padding: 12px; border: 1px solid #e4eaf0; background: #fff; gap: 8px; border-radius: 12px; }
#gab-widget .home-actions .chip:hover { background: #f3f7fa; border-color: #b5c6d7; }
#gab-widget .home-actions .choice-icon svg { width: 19px; height: 19px; }
#gab-widget .home-actions .chip:last-child:nth-child(odd) { min-height: 42px; }
#gab-widget .quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#gab-widget .quick-actions .chip, #gab-widget .quick-actions .chip:last-child:nth-child(odd) { width: auto; min-height: 35px; padding: 8px 12px; flex-direction: row; align-items: center; gap: 7px; border-radius: 20px; border: 1px solid #dce5ee; background: #fff; font-size: 12px; font-weight: 500; }
#gab-widget .quick-actions .choice-icon, #gab-widget .quick-actions .choice-arrow { display: none; }
#gab-widget .quick-actions .gab-gem-choice { width: 25px; height: 25px; object-fit: contain; }
#gab-widget .quick-actions .chip:hover { background: #edf3f8; border-color: #9fb5c9; transform: none; }
#gab-widget .gab-filter-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#gab-widget .gab-filter-summary span { background: #edf3f8; color: #294c6d; font-size: 11px; padding: 5px 9px; border-radius: 6px; line-height: 1.4; }
#gab-widget .gab-shop-results { gap: 9px; margin-top: 14px; }
#gab-widget .gab-shop-product { grid-template-columns: 72px minmax(0,1fr); gap: 12px; border-color: #e2e9ef; border-radius: 12px; padding: 12px; }
#gab-widget .gab-shop-product img { width: 72px; height: 80px; object-fit: contain; background: #f8fafc; border-radius: 8px; }
#gab-widget .gab-shop-product h3 { font-size: 12px; line-height: 1.45; font-weight: 600; margin: 0 0 7px; }
#gab-widget .gab-shop-price { display: flex; flex-wrap: wrap; gap: 5px 7px; align-items: baseline; margin-bottom: 3px; }
#gab-widget .gab-shop-price strong { font-size: 15px; }
#gab-widget .gab-shop-price del { font-size: 10px; color: #8290a0; }
#gab-widget .gab-discount { padding: 2px 5px; font-size: 9px; background: #edf7f0; color: #31724c; border-radius: 4px; }
#gab-widget .gab-shop-product small { font-size: 10px; color: #66826f; }
#gab-widget .gab-shop-product a { font-size: 11px; margin-top: 6px; text-decoration: none; border-bottom: 1px solid #c9d7e4; }
#gab-widget .gab-policy-answer { padding: 14px; border: 1px solid #e0e7ee; border-radius: 12px; font-size: 13px; }
#gab-widget .gab-policy-answer p { color: #5c7083; line-height: 1.6; font-size: 12px; margin: 9px 0; }
#gab-widget .gab-policy-answer a { font-size: 12px; color: #012244; }
#gab-widget .input-bar { padding: 12px; gap: 7px; background: #fff; border-top: 1px solid #e7edf3; }
#gab-widget .input-box { height: 43px; min-width: 0; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #f6f8fb; }
#gab-widget .send-btn { flex-shrink: 0; width: 39px; height: 39px; border-radius: 12px; }
#gab-widget .gab-mic { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 39px; padding: 7px; margin: 0; border: 0; background: transparent; color: #52697f; border-radius: 10px; cursor: pointer; }
#gab-widget .gab-mic svg { width: 20px; height: 23px; }
#gab-widget .gab-mic:hover { background: #edf2f7; color: #012244; }
#gab-widget .gab-mic.listening { background: #fff0f0; color: #b23232; box-shadow: 0 0 0 3px #b2323212; }
#gab-widget .gab-voice-status { padding: 8px 16px; background: #f3f6fa; color: #50667c; font-size: 11px; line-height: 1.5; }
#gab-widget .gab-voice-cancel { border: 0; background: #fff; color: #a13d3d; font-size: 11px; padding: 7px; cursor: pointer; }
#gab-widget [aria-busy="true"] .brand-info p::after { content: ' · Thinking…'; color: #fff; }
@media (max-width: 480px) { #gab-widget .chat-widget { width: calc(100vw - 20px); right: 10px; top: 10px !important; bottom: 10px; height: calc(100dvh - 20px); max-height: calc(100dvh - 20px) !important; border-radius: 18px; } #gab-widget .input-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } #gab-widget .welcome-panel h2 { font-size: 27px; } }
