/* =============================================================================
   binham-chat.css  —  Bin Ham AI Chatbot  v2.2.0
   Aesthetic direction: Luxury travel — deep midnight navy + warm gold,
   clean geometric precision, refined typography.
   Font stack: 'Cormorant Garamond' (display) + 'DM Sans' (body)
   All layout uses CSS custom properties for easy theme overrides.

   Changes from v2.1.0:
     - Chat window is now a full glass-morphism panel: rgba black background
       with backdrop-filter blur so the page content shows through.
     - Header and input bar match the glass style (semi-transparent navy).
     - Launcher button gains .binham-btn-hidden class when window is open;
       removed when window closes — handled entirely by CSS transition.
   ============================================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {
    --binham-primary:        #0F2A4A;   /* Midnight Navy                        */
    --binham-primary-dark:   #081929;   /* Deeper navy for hover states          */
    --binham-gold:           #C9A84C;   /* Warm gold accent                      */
    --binham-gold-light:     #F0DFA0;   /* Pale gold for highlights              */
    --binham-surface:        #F8F6F1;   /* Warm off-white background             */
    --binham-surface-2:      #FFFFFF;
    --binham-border:         #DDD8CF;   /* Warm light border                     */
    --binham-text:           #1C1C22;
    --binham-text-muted:     #7A7468;

    /* Bubble colors — both sides now white text */
    --binham-user-bg:        #0F2A4A;
    --binham-user-text:      #FFFFFF;
    --binham-bot-bg:         rgba(30, 55, 90, 0.82);  /* Semi-transparent navy   */
    --binham-bot-text:       #FFFFFF;
    --binham-bot-border:     rgba(201,168,76,0.25);   /* Faint gold border       */

    --binham-shadow:         0 20px 60px rgba(15, 42, 74, 0.28), 0 4px 16px rgba(15, 42, 74, 0.12);
    --binham-shadow-btn:     0 6px 20px rgba(15, 42, 74, 0.40);
    --binham-r-window:       16px;
    --binham-r-bubble:       18px;
    --binham-r-widget:       12px;
    --binham-font-display:   'Cormorant Garamond', Georgia, serif;
    --binham-font-body:      'DM Sans', system-ui, -apple-system, sans-serif;
    --binham-transition:     0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Window dimensions — wider than v2 */
    --binham-window-w:       440px;
    --binham-window-h:       580px;

    /* Messages area: dark translucent background */
    --binham-messages-bg:    rgba(2, 8, 18, 0.45);
}

/* =============================================================================
   WIDGET THEMES
   ============================================================================= */
/* Selectable in WP Admin -> Bin Ham AI Chat -> Widget Style. The :root block
   above IS the "Navy & Gold" default — the block below restates it explicitly
   (rather than leaving it implicit) purely so all four themes are easy to
   compare/edit side by side; it has no visual effect since it matches :root.
   Every other theme just overrides the same custom properties, so the rest
   of this stylesheet (which is entirely var()-driven) re-themes automatically
   with zero further changes needed. */

/* Theme 1 — Navy & Gold (Classic / default) */
.binham-chat-wrapper[data-binham-theme="navy_gold"] {
    --binham-primary:        #0F2A4A;
    --binham-primary-dark:   #081929;
    --binham-gold:           #C9A84C;
    --binham-gold-light:     #F0DFA0;
    --binham-surface:        #F8F6F1;
    --binham-surface-2:      #FFFFFF;
    --binham-border:         #DDD8CF;
    --binham-text:           #1C1C22;
    --binham-text-muted:     #7A7468;
    --binham-user-bg:        #0F2A4A;
    --binham-user-text:      #FFFFFF;
    --binham-bot-bg:         rgba(30, 55, 90, 0.82);
    --binham-bot-text:       #FFFFFF;
    --binham-bot-border:     rgba(201,168,76,0.25);
    --binham-shadow:         0 20px 60px rgba(15, 42, 74, 0.28), 0 4px 16px rgba(15, 42, 74, 0.12);
    --binham-shadow-btn:     0 6px 20px rgba(15, 42, 74, 0.40);
    --binham-messages-bg:    rgba(2, 8, 18, 0.45);
}

/* Theme 2 — Light Blue (Sky) */
.binham-chat-wrapper[data-binham-theme="light_blue"] {
    --binham-primary:        #1B6FA8;   /* Sky blue                              */
    --binham-primary-dark:   #124E78;   /* Deeper blue for hover states          */
    --binham-gold:           #5EC2E0;   /* Pale cyan accent (replaces gold)      */
    --binham-gold-light:     #BFE8F5;
    --binham-surface:        #F3FAFD;   /* Very light blue-white background      */
    --binham-surface-2:      #FFFFFF;
    --binham-border:         #D3E8F2;
    --binham-text:           #10202B;
    --binham-text-muted:     #5B7686;
    --binham-user-bg:        #1B6FA8;
    --binham-user-text:      #FFFFFF;
    --binham-bot-bg:         rgba(27, 111, 168, 0.82);
    --binham-bot-text:       #FFFFFF;
    --binham-bot-border:     rgba(94, 194, 224, 0.28);
    --binham-shadow:         0 20px 60px rgba(27, 111, 168, 0.25), 0 4px 16px rgba(27, 111, 168, 0.12);
    --binham-shadow-btn:     0 6px 20px rgba(27, 111, 168, 0.38);
    --binham-messages-bg:    rgba(6, 26, 38, 0.45);
}

/* Theme 3 — Emerald & Ivory (fresh, elegant) */
.binham-chat-wrapper[data-binham-theme="emerald_ivory"] {
    --binham-primary:        #0E4B3F;   /* Deep emerald                          */
    --binham-primary-dark:   #082F28;
    --binham-gold:           #C9A84C;   /* Warm gold accent — classic emerald+gold pairing */
    --binham-gold-light:     #EADFAF;
    --binham-surface:        #F6F8F2;   /* Ivory with a green tint               */
    --binham-surface-2:      #FFFFFF;
    --binham-border:         #DCE6DA;
    --binham-text:           #16241E;
    --binham-text-muted:     #5F7268;
    --binham-user-bg:        #0E4B3F;
    --binham-user-text:      #FFFFFF;
    --binham-bot-bg:         rgba(14, 75, 63, 0.82);
    --binham-bot-text:       #FFFFFF;
    --binham-bot-border:     rgba(201, 168, 76, 0.25);
    --binham-shadow:         0 20px 60px rgba(14, 75, 63, 0.28), 0 4px 16px rgba(14, 75, 63, 0.12);
    --binham-shadow-btn:     0 6px 20px rgba(14, 75, 63, 0.40);
    --binham-messages-bg:    rgba(4, 20, 16, 0.45);
}

/* Theme 4 — Charcoal & Amber (dark mode) */
.binham-chat-wrapper[data-binham-theme="charcoal_amber"] {
    --binham-primary:        #1E1E24;   /* Near-black charcoal                   */
    --binham-primary-dark:   #101014;
    --binham-gold:           #E8A33D;   /* Warm amber accent                     */
    --binham-gold-light:     #F5D9A8;
    --binham-surface:        #17171B;   /* Dark window background                */
    --binham-surface-2:      #202027;
    --binham-border:         #33333B;
    --binham-text:           #EDEDED;
    --binham-text-muted:     #9C9CA5;
    --binham-user-bg:        #E8A33D;
    --binham-user-text:      #1E1E24;   /* Dark text on the amber bubble for contrast */
    --binham-bot-bg:         rgba(30, 30, 36, 0.85);
    --binham-bot-text:       #F1F1F1;
    --binham-bot-border:     rgba(232, 163, 61, 0.25);
    --binham-shadow:         0 20px 60px rgba(0, 0, 0, 0.50), 0 4px 16px rgba(0, 0, 0, 0.30);
    --binham-shadow-btn:     0 6px 20px rgba(232, 163, 61, 0.35);
    --binham-messages-bg:    rgba(0, 0, 0, 0.55);
}

/* =============================================================================
   WRAPPER & POSITIONING
   ============================================================================= */
.binham-chat-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: var(--binham-font-body);
}

.binham-chat-wrapper.binham-pos-right {
    bottom: 24px;
    right:  24px;
}

.binham-chat-wrapper.binham-pos-left {
    bottom: 24px;
    left:   24px;
}

/* =============================================================================
   FLOATING LAUNCHER BUTTON
   — X icon is permanently hidden; only the plane icon is ever shown.
     The close action is handled exclusively by the header close button.
   ============================================================================= */
.binham-chat-btn {
    position: relative;
    width:  58px;
    height: 58px;
    background: var(--binham-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--binham-shadow-btn);
    transition: transform var(--binham-transition),
                background var(--binham-transition),
                box-shadow  var(--binham-transition);
    /* Gold ring on hover */
    outline: 0px solid var(--binham-gold);
    outline-offset: 3px;
}

.binham-chat-btn:hover {
    transform:  scale(1.08);
    background: var(--binham-primary-dark);
    outline-width: 2px;
}

.binham-chat-btn svg {
    width:  24px;
    height: 24px;
    color:  #FFFFFF;
    position: absolute;
    transition: opacity var(--binham-transition), transform var(--binham-transition);
}

/* Plane icon — always visible, never toggled */
.binham-icon-open  { opacity: 1; transform: rotate(0deg); }

/* X icon — permanently hidden regardless of open/close state */
.binham-icon-close              { display: none !important; }
.binham-btn-open .binham-icon-open { opacity: 1 !important; transform: rotate(0deg) !important; }

/* Notification dot */
.binham-btn-dot {
    position: absolute;
    top:   3px;
    right: 3px;
    width: 11px;
    height: 11px;
    background: var(--binham-gold);
    border: 2px solid #fff;
    border-radius: 50%;
    animation: binham-dot-pulse 2.4s infinite;
}

/* Hide dot when chat is open */
.binham-btn-dot.binham-hidden { display: none; }

@keyframes binham-dot-pulse {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%       { transform: scale(1.35); opacity: 0.7; }
}

/* =============================================================================
   LAUNCHER BUTTON — hidden when chat window is open
   ============================================================================= */
.binham-chat-btn.binham-btn-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
    transition: opacity var(--binham-transition), transform var(--binham-transition);
}

/* =============================================================================
   CHAT WINDOW
   — Transparent black glass background, shows content behind it
   ============================================================================= */
.binham-chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width:      var(--binham-window-w);
    max-width:  calc(100vw - 48px);
    height:     var(--binham-window-h);
    max-height: calc(100vh - 120px);
    background: rgba(4, 10, 20, 0.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: var(--binham-r-window);
    box-shadow: var(--binham-shadow), inset 0 0 0 1px rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.20);
    transform-origin: bottom right;
    transition: opacity var(--binham-transition), transform var(--binham-transition);
}

.binham-pos-left .binham-chat-window {
    right: auto;
    left:  0;
    transform-origin: bottom left;
}

/* Hidden / visible states */
.binham-hidden {
    opacity:        0 !important;
    transform:      scale(0.94) translateY(10px) !important;
    pointer-events: none;
}

/* =============================================================================
   HEADER
   ============================================================================= */
.binham-header {
    background: linear-gradient(135deg, rgba(15,42,74,0.80) 0%, rgba(26,74,122,0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    /* Subtle gold shimmer line at top */
    border-top: 2px solid var(--binham-gold);
}

.binham-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

.binham-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.binham-header-avatar {
    width:  38px;
    height: 38px;
    background: var(--binham-gold);
    color: var(--binham-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--binham-font-display);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.binham-header-name {
    font-family: var(--binham-font-display);
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.binham-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.binham-status-dot {
    width: 7px;
    height: 7px;
    background: #7FFFCB;
    border-radius: 50%;
    animation: binham-status-pulse 2s infinite;
}

@keyframes binham-status-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.binham-status-text {
    font-size: 11px;
    color: rgba(255,255,255,0.70);
    font-weight: 300;
}

.binham-close-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--binham-transition);
    flex-shrink: 0;
}

.binham-close-btn svg { width: 14px; height: 14px; }

.binham-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* =============================================================================
   MESSAGES AREA
   — Dark translucent background for the cinematic look
   ============================================================================= */
.binham-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--binham-messages-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    scroll-behavior: smooth;
}

.binham-messages::-webkit-scrollbar       { width: 3px; }
.binham-messages::-webkit-scrollbar-track { background: transparent; }
.binham-messages::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 3px; }

/* =============================================================================
   MESSAGE BUBBLES
   — Both user and bot bubbles use white text
   ============================================================================= */
.binham-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: var(--binham-r-bubble);
    font-size: 13.5px;
    line-height: 1.65;
    word-wrap: break-word;
    animation: binham-fade-up 0.26s ease;
}

@keyframes binham-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.binham-bubble-user {
    align-self: flex-end;
    background: var(--binham-user-bg);
    color:      var(--binham-user-text);   /* white */
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
    border: 1px solid rgba(201,168,76,0.20);
}

.binham-bubble-bot {
    align-self: flex-start;
    background: var(--binham-bot-bg);     /* semi-transparent navy */
    color:      var(--binham-bot-text);   /* white */
    border-bottom-left-radius: 4px;
    border: 1px solid var(--binham-bot-border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.20);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Markdown output inside bot bubbles — adjusted for white text */
.binham-bubble-bot strong { color: var(--binham-gold-light); font-weight: 600; }
.binham-bubble-bot em     { color: rgba(255,255,255,0.75); }
.binham-bubble-bot ul     { margin: 6px 0; padding-left: 16px; }
.binham-bubble-bot li     { margin-bottom: 4px; }
.binham-bubble-bot br     { display: block; margin-bottom: 2px; content: ''; }

/* =============================================================================
   TYPING INDICATOR
   ============================================================================= */
.binham-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    background: var(--binham-bot-bg);
    border: 1px solid var(--binham-bot-border);
    border-radius: var(--binham-r-bubble);
    border-bottom-left-radius: 4px;
    padding: 11px 16px;
    animation: binham-fade-up 0.22s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.binham-dot {
    width: 7px;
    height: 7px;
    background: var(--binham-gold);
    border-radius: 50%;
    animation: binham-bounce 1.1s infinite ease-in-out;
    flex-shrink: 0;
}

.binham-dot:nth-child(1) { animation-delay: 0s;    }
.binham-dot:nth-child(2) { animation-delay: 0.18s; }
.binham-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes binham-bounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
    30%            { transform: translateY(-6px); opacity: 1;    }
}

/* =============================================================================
   SUGGESTED CHIPS
   ============================================================================= */
.binham-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    max-width: 96%;
    animation: binham-fade-up 0.3s ease;
}

.binham-chip {
    background: rgba(15,42,74,0.55);
    border: 1.5px solid var(--binham-gold);
    color: var(--binham-gold-light);
    padding: 5px 13px;
    border-radius: 20px;
    font-family: var(--binham-font-body);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--binham-transition),
                color       var(--binham-transition),
                transform   var(--binham-transition),
                box-shadow  var(--binham-transition);
    backdrop-filter: blur(4px);
}

.binham-chip:hover {
    background:  var(--binham-gold);
    color:       var(--binham-primary);
    transform:   translateY(-2px);
    box-shadow:  0 4px 12px rgba(201,168,76,0.35);
}

/* =============================================================================
   SHARED WIDGET BASE  —  all widgets extend this
   ============================================================================= */
.binham-widget {
    align-self: stretch;
    flex-shrink: 0;
    background: rgba(8, 25, 41, 0.88);
    border: 1px solid rgba(201,168,76,0.30);
    border-left: 3px solid var(--binham-gold);
    border-radius: var(--binham-r-widget);
    padding: 14px;
    animation: binham-fade-up 0.3s ease;
    box-shadow: 0 2px 16px rgba(0,0,0,0.30);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.binham-widget-title {
    font-family: var(--binham-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--binham-gold-light);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

/* Confirm / Submit button shared across widgets */
.binham-widget-confirm {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: var(--binham-gold);
    color: var(--binham-primary);
    border: none;
    border-radius: 8px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--binham-transition), transform var(--binham-transition);
}

.binham-widget-confirm:hover {
    background: var(--binham-gold-light);
    transform: translateY(-1px);
}

/* =============================================================================
   WIDGET — DATE PICKER
   ============================================================================= */
.binham-datepicker-month {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 10px 0 6px;
}

.binham-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.binham-date-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.20);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: background var(--binham-transition),
                border-color var(--binham-transition),
                transform    var(--binham-transition);
    color: #fff;
}

.binham-date-btn:hover {
    background:    var(--binham-gold);
    border-color:  var(--binham-gold);
    color:         var(--binham-primary);
    transform:     translateY(-2px);
    box-shadow:    0 4px 12px rgba(201,168,76,0.30);
}

.binham-date-btn:hover .binham-date-price,
.binham-date-btn:hover .binham-date-count { color: rgba(15,42,74,0.75); }

.binham-date-day   { font-size: 16px; font-weight: 500; color: inherit; }
.binham-date-price { font-size: 9.5px; color: rgba(255,255,255,0.55); }
.binham-date-count { font-size: 9px;   color: var(--binham-gold); font-weight: 500; }

/* =============================================================================
   WIDGET — PACKAGE GRID
   ============================================================================= */
.binham-pkg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.binham-pkg-list::-webkit-scrollbar       { width: 3px; }
.binham-pkg-list::-webkit-scrollbar-track { background: transparent; }
.binham-pkg-list::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 3px; }

.binham-pkg-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.20);
    border-radius: 10px;
    padding: 12px;
    position: relative;
    transition: box-shadow var(--binham-transition), transform var(--binham-transition);
}

.binham-pkg-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.10);
}

.binham-pkg-index {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--binham-gold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.binham-pkg-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.binham-pkg-stars {
    font-size: 11px;
    color: var(--binham-gold);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.binham-pkg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.binham-pkg-meta span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 2px 7px;
}

.binham-pkg-price {
    font-family: var(--binham-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--binham-gold-light);
    margin-bottom: 8px;
}

.binham-pkg-select {
    width: 100%;
    padding: 7px;
    background: transparent;
    border: 1.5px solid var(--binham-gold);
    border-radius: 6px;
    color: var(--binham-gold-light);
    font-family: var(--binham-font-body);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--binham-transition), color var(--binham-transition);
}

.binham-pkg-select:hover {
    background: var(--binham-gold);
    color: var(--binham-primary);
}

/* =============================================================================
   WIDGET — FLIGHT SELECTOR
   ============================================================================= */
.binham-flights-date {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
}

.binham-flight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.20);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    text-align: left;
    font-family: var(--binham-font-body);
    color: #fff;
    transition: background var(--binham-transition), border-color var(--binham-transition);
}

.binham-flight-row:hover {
    background:   var(--binham-gold);
    border-color: var(--binham-gold);
    color: var(--binham-primary);
}

.binham-flight-row:hover .binham-flight-city,
.binham-flight-row:hover .binham-flight-price { color: rgba(15,42,74,0.80); }

.binham-flight-airline { font-size: 13px; font-weight: 500; color: inherit; }
.binham-flight-city    { font-size: 11.5px; color: rgba(255,255,255,0.60); }
.binham-flight-price   { font-family: var(--binham-font-display); font-size: 15px; font-weight: 600; color: var(--binham-gold-light); }

/* =============================================================================
   WIDGET — TRAVELER COUNT (stepper)
   ============================================================================= */
.binham-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.binham-stepper-row:last-of-type { border-bottom: none; }

.binham-stepper-label { font-size: 13.5px; color: #fff; font-weight: 500; }

.binham-stepper-btn {
    width:  30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--binham-gold);
    background: transparent;
    color: var(--binham-gold-light);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--binham-transition), color var(--binham-transition);
}

.binham-stepper-btn:hover {
    background: var(--binham-gold);
    color: var(--binham-primary);
}

.binham-stepper-count {
    font-family: var(--binham-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--binham-gold-light);
    min-width: 32px;
    text-align: center;
}

/* =============================================================================
   WIDGET — ONBOARDING & CUSTOM SERVICE FORMS
   ============================================================================= */
.binham-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.binham-form-group label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.binham-form-input {
    padding: 9px 12px;
    border: 1.5px solid rgba(201,168,76,0.30);
    border-radius: 8px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    outline: none;
    transition: border-color var(--binham-transition), box-shadow var(--binham-transition);
    width: 100%;
    box-sizing: border-box;
}

.binham-form-input::placeholder { color: rgba(255,255,255,0.35); }

.binham-form-input:focus {
    border-color: var(--binham-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
    background: rgba(255,255,255,0.12);
}

.binham-form-error {
    font-size: 12px;
    color: #FF8A80;
    margin-top: 4px;
}

.binham-form-input-error {
    border-color: #FF8A80 !important;
    box-shadow: 0 0 0 3px rgba(255,138,128,0.18) !important;
}

/* =============================================================================
   INPUT BAR
   ============================================================================= */
.binham-input-bar {
    padding: 12px;
    background: rgba(4, 12, 24, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201,168,76,0.20);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.binham-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid rgba(201,168,76,0.25);
    border-radius: 22px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    outline: none;
    transition: border-color var(--binham-transition), box-shadow var(--binham-transition);
}

.binham-input:focus {
    border-color: var(--binham-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: rgba(255,255,255,0.12);
}

.binham-input::placeholder { color: rgba(255,255,255,0.35); }
.binham-input:disabled      { opacity: 0.4; cursor: not-allowed; }

.binham-send-btn {
    width:  40px;
    height: 40px;
    min-width: 40px;
    background: var(--binham-gold);
    color: var(--binham-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(201,168,76,0.35);
    transition: background var(--binham-transition), transform var(--binham-transition), box-shadow var(--binham-transition);
    flex-shrink: 0;
}

.binham-send-btn svg { width: 16px; height: 16px; }

.binham-send-btn:hover:not(:disabled) {
    background: var(--binham-gold-light);
    transform:  scale(1.06);
    box-shadow: 0 4px 14px rgba(201,168,76,0.45);
}

.binham-send-btn:disabled {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
    box-shadow: none;
}

/* =============================================================================
   NEW SESSION BUTTON
   — Shown at the bottom of the chat after the session ends (end_session flag).
     Clicking it triggers a full new session initialization.
   ============================================================================= */
.binham-new-session-wrap {
    padding: 12px;
    background: rgba(4, 12, 24, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201,168,76,0.20);
    display: flex;
    justify-content: center;
    animation: binham-fade-up 0.35s ease;
    flex-shrink: 0;
}

.binham-new-session-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, var(--binham-gold) 0%, var(--binham-gold-light) 100%);
    color: var(--binham-primary);
    border: none;
    border-radius: 24px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(201,168,76,0.40);
    transition: transform var(--binham-transition), box-shadow var(--binham-transition);
    letter-spacing: 0.2px;
}

.binham-new-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201,168,76,0.55);
}

/* =============================================================================
   MEDIA BUTTONS  —  mic + image buttons in input bar
   ============================================================================= */
.binham-media-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: transparent;
    border: 1.5px solid rgba(201,168,76,0.30);
    color: rgba(255,255,255,0.55);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--binham-transition),
                color       var(--binham-transition),
                border-color var(--binham-transition);
    flex-shrink: 0;
}

.binham-media-btn svg { width: 15px; height: 15px; }

.binham-media-btn:hover:not(:disabled) {
    background:   rgba(201,168,76,0.15);
    color:        var(--binham-gold-light);
    border-color: var(--binham-gold);
}

.binham-media-btn:disabled { opacity: 0.30; cursor: not-allowed; }

/* ---- Mic recording state ---- */
.binham-mic-idle   { display: block; }
.binham-mic-active { display: none;  }

.binham-mic-recording {
    background:   rgba(239,68,68,0.15) !important;
    border-color: #ef4444 !important;
    color:        #ef4444 !important;
    animation: binham-mic-pulse 1s infinite;
}

.binham-mic-recording .binham-mic-idle   { display: none;  }
.binham-mic-recording .binham-mic-active { display: block; }

@keyframes binham-mic-pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(239,68,68,0.3); }
    50%       { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239,68,68,0);   }
}

/* =============================================================================
   AUDIO BUBBLE  —  player + transcription
   ============================================================================= */
.binham-audio-bubble {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    max-width: 88%;
}

.binham-audio-player {
    width: 100%;
    height: 36px;
    accent-color: var(--binham-gold);
    outline: none;
}

.binham-audio-transcript {
    font-size: 11.5px;
    color: rgba(255,255,255,0.70);
    font-style: italic;
    line-height: 1.5;
    word-break: break-word;
}

/* =============================================================================
   IMAGE BUBBLE  —  thumbnail in user bubble
   ============================================================================= */
.binham-image-bubble {
    padding: 3px;
    max-width: 72%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.binham-sent-image {
    display: block;
    width: 100%;
    max-width: 220px;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.40);
    cursor: zoom-in;
    transition: opacity var(--binham-transition), transform var(--binham-transition);
}

.binham-sent-image:hover {
    opacity: 0.90;
    transform: scale(1.02);
}

/* =============================================================================
   BOOKING CARDS  —  pre_selection_card + booking_summary
   ============================================================================= */
.binham-booking-card {
    border-left: 3px solid var(--binham-gold);
    padding: 0;
    overflow: hidden;
    /* Flex-item fix: with overflow != visible, a flex item's automatic
       min-height resets to 0 (CSS spec), letting the flex algorithm squash
       this card to a sliver when .binham-messages runs short on vertical
       space. flex-shrink:0 stops it from shrinking below its content. */
    flex-shrink: 0;
}

/* Header band */
.binham-bcard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(15,42,74,0.90);
    color: #fff;
}

.binham-bcard-header-final {
    background: linear-gradient(135deg, rgba(15,42,74,0.95) 0%, rgba(26,74,122,0.95) 100%);
}

.binham-bcard-icon  { font-size: 16px; }
.binham-bcard-title {
    font-family: var(--binham-font-display);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
}

/* Row list */
.binham-bcard-rows {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.binham-bcard-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 6px;
}

.binham-bcard-row:last-child { border-bottom: none; padding-bottom: 0; }

.binham-bcard-label {
    color: rgba(255,255,255,0.55);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    min-width: 70px;
}

.binham-bcard-value {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Total line */
.binham-bcard-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 14px 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid rgba(201,168,76,0.25);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
}

.binham-bcard-total-amount {
    font-family: var(--binham-font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--binham-gold-light);
}

/* Verified badge */
.binham-bcard-badge {
    margin: 0 14px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #69F0AE;
    background: rgba(105,240,174,0.10);
    border: 1px solid rgba(105,240,174,0.25);
    border-radius: 6px;
    padding: 6px;
}

/* Pre-selection card subtle distinction */
.binham-booking-pre .binham-bcard-header {
    background: linear-gradient(135deg, rgba(44,82,130,0.90) 0%, rgba(45,106,79,0.90) 100%);
}

/* Custom trip card accent */
.binham-booking-custom .binham-bcard-header {
    background: linear-gradient(135deg, rgba(26,58,92,0.95) 0%, rgba(44,82,130,0.95) 100%);
}

/* Confirm card — used when the bot asks "is this data still correct?"
   (e.g. reviewing a scanned or previously-saved passport). Amber/gold
   gradient signals "please verify" — visually distinct from the blue
   final-booking header and the green success badge. */
.binham-bcard-header-confirm {
    background: linear-gradient(135deg, rgba(120,90,20,0.92) 0%, rgba(160,120,30,0.92) 100%);
}

.binham-bcard-badge-pending {
    color: var(--binham-gold-light);
    background: rgba(201,168,76,0.10);
    border: 1px solid rgba(201,168,76,0.30);
}

/* =============================================================================
   RTL SUPPORT  —  Arabic layout adjustments
   ============================================================================= */
[dir="rtl"] .binham-bubble-user          { align-self: flex-start; border-radius: var(--binham-r-bubble); border-bottom-left-radius: 4px; border-bottom-right-radius: var(--binham-r-bubble); }
[dir="rtl"] .binham-bubble-bot           { align-self: flex-end;   border-radius: var(--binham-r-bubble); border-bottom-right-radius: 4px; border-bottom-left-radius: var(--binham-r-bubble); }
[dir="rtl"] .binham-typing               { align-self: flex-end; }
[dir="rtl"] .binham-chips                { align-self: flex-end; }
[dir="rtl"] .binham-widget               { border-left: 1px solid rgba(201,168,76,0.30); border-right: 3px solid var(--binham-gold); }
[dir="rtl"] .binham-pkg-card             { text-align: right; }
[dir="rtl"] .binham-flight-row           { text-align: right; }
[dir="rtl"] .binham-bcard-row            { flex-direction: row-reverse; }
[dir="rtl"] .binham-bcard-value          { text-align: left; }
[dir="rtl"] .binham-bcard-total          { flex-direction: row-reverse; }
[dir="rtl"] .binham-sent-image           { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
[dir="rtl"] .binham-audio-transcript     { text-align: right; }

/* =============================================================================
   RESPONSIVE — MOBILE
   ============================================================================= */
@media (max-width: 480px) {
    .binham-chat-window {
        position: fixed;
        bottom:     0;
        right:      0;
        left:       0;
        width:      100vw;
        max-width:  100vw;
        height:     100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .binham-pos-left .binham-chat-window { left: 0; }

    .binham-datepicker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =============================================================================
   PASSPORT UPLOAD WIDGET
   Three-button card: Take Photo / Upload from Gallery / Enter Manually
   Rendered by renderPassportUpload() when the server sends
   { component_type: "passport_upload" }.
   ============================================================================= */

/* Card wrapper — reuses .binham-widget spacing/border */
.binham-passport-upload {
    padding: 16px 18px 18px;
}

/* Subtitle / hint text */
.binham-passport-upload-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* Button column layout */
.binham-passport-upload-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual action button */
.binham-passport-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: 10px;
    color: #fff;
    font-family: var(--binham-font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background var(--binham-transition), border-color var(--binham-transition);
}

.binham-passport-action-btn:hover,
.binham-passport-action-btn:focus-visible {
    background: rgba(201,168,76,0.15);
    border-color: var(--binham-gold);
    outline: none;
}

/* Emoji icon — fixed width keeps text aligned */
.binham-pab-icon {
    font-size: 18px;
    line-height: 1;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* RTL adjustments */
[dir="rtl"] .binham-passport-action-btn { text-align: right; }

/* =============================================================================
   PASSPORT FORM WIDGET  (NEW)
   Editable card shown after passport OCR extraction (or manual entry).
   Rendered by renderPassportForm() — { component_type: "passport_form" }.

   Previously unstyled: .binham-ui-card / .binham-card-title / .binham-passport-form /
   .binham-passport-grid / .binham-passport-row / .binham-passport-input /
   .binham-passport-confirm-btn had zero CSS, so the form rendered as plain
   unstyled HTML. This block brings it in line with every other widget.
   ============================================================================= */

/* Generic card wrapper — shared by any widget that doesn't need full
   .binham-widget treatment but still wants the same surface/border language. */
.binham-ui-card {
    align-self: stretch;
    background: rgba(8, 25, 41, 0.88);
    border: 1px solid rgba(201,168,76,0.30);
    border-left: 3px solid var(--binham-gold);
    border-radius: var(--binham-r-widget);
    padding: 16px 18px 18px;
    animation: binham-fade-up 0.3s ease;
    box-shadow: 0 2px 16px rgba(0,0,0,0.30);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Generic card title — reuses the same look as .binham-widget-title */
.binham-card-title {
    font-family: var(--binham-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--binham-gold-light);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

/* Field grid — single column, comfortable spacing between rows */
.binham-passport-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.binham-passport-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.binham-passport-row label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reuses the same visual language as .binham-form-input for consistency
   with the onboarding / custom-service forms. */
.binham-passport-input {
    padding: 9px 12px;
    border: 1.5px solid rgba(201,168,76,0.30);
    border-radius: 8px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    outline: none;
    transition: border-color var(--binham-transition), box-shadow var(--binham-transition);
    width: 100%;
    box-sizing: border-box;
}

.binham-passport-input::placeholder { color: rgba(255,255,255,0.35); }

.binham-passport-input:focus {
    border-color: var(--binham-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
    background: rgba(255,255,255,0.12);
}

/* Disabled state — after the user confirms, fields lock visually */
.binham-passport-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: rgba(255,255,255,0.04);
}

/* Confirm button — reuses the shared gold confirm-button language */
.binham-passport-confirm-btn {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    background: var(--binham-gold);
    color: var(--binham-primary);
    border: none;
    border-radius: 8px;
    font-family: var(--binham-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--binham-transition), transform var(--binham-transition);
}

.binham-passport-confirm-btn:hover {
    background: var(--binham-gold-light);
    transform: translateY(-1px);
}

.binham-passport-confirm-btn:disabled {
    background: rgba(201,168,76,0.35);
    color: rgba(15,42,74,0.6);
    cursor: not-allowed;
    transform: none;
}

/* RTL — right-align labels and form text */
[dir="rtl"] .binham-passport-row label,
[dir="rtl"] .binham-passport-input {
    text-align: right;
}
/* =============================================================================
   NEW WIDGETS — payment_card, extras_selector, guest_selector,
   voucher_type_selector, voucher_link  (SupportAgent, see binham-chat.js)
   ============================================================================= */

/* CTA BUTTON — shared by payment_card (Pay Now) and voucher_link (Download) */
.binham-cta-wrap {
    padding: 0 14px 14px;
}

.binham-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--binham-font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--binham-transition),
                box-shadow  var(--binham-transition),
                opacity     var(--binham-transition);
}

.binham-cta-pay,
.binham-cta-download {
    background: var(--binham-gold);
    color: var(--binham-primary);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.binham-cta-pay:hover,
.binham-cta-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,168,76,0.45);
}

/* INLINE LINK BUTTON — turns a raw URL inside a text message (e.g. the
   flight/hotel direct booking link) into a tappable button that opens in a
   new tab, instead of unclickable plain text. Sits inline within the
   message flow (content-sized), unlike .binham-cta-btn above which is a
   full-width CTA reserved for dedicated widget cards. */
.binham-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--binham-gold);
    color: var(--binham-primary);
    font-family: var(--binham-font-body);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(201,168,76,0.35);
    transition: transform var(--binham-transition),
                box-shadow  var(--binham-transition);
}

.binham-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(201,168,76,0.45);
}

.binham-link-btn-icon {
    flex-shrink: 0;
}

/* LIST SELECTOR WIDGETS — extras_selector / guest_selector / voucher_type_selector
   Shared row layout: name (+ optional price) on one side, an action button
   on the other. voucher_type_selector instead renders a vertical stack of
   full-width option buttons (no separate action button). */
.binham-list-selector {
    padding: 14px 14px 16px;
}

.binham-selector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.binham-selector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 9px;
}

.binham-selector-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.binham-selector-index {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin-right: 4px;
}

.binham-selector-name {
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    word-break: break-word;
}

.binham-selector-price {
    color: var(--binham-gold-light);
    font-size: 12px;
    font-weight: 500;
}

.binham-selector-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--binham-gold);
    background: transparent;
    color: var(--binham-gold-light);
    font-family: var(--binham-font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--binham-transition),
                color       var(--binham-transition),
                opacity     var(--binham-transition);
}

.binham-selector-btn:hover:not(:disabled) {
    background: var(--binham-gold);
    color: var(--binham-primary);
}

.binham-selector-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.binham-selector-btn-danger {
    border-color: #E07A6E;
    color: #F2A99E;
}

.binham-selector-btn-danger:hover:not(:disabled) {
    background: #E07A6E;
    color: #fff;
}

/* voucher_type_selector — full-width stacked option buttons instead of rows */
.binham-voucher-options {
    gap: 9px;
}

.binham-voucher-option-btn {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
}

[dir="rtl"] .binham-voucher-option-btn { text-align: right; }

.binham-selector-btn-active {
    background: var(--binham-gold) !important;
    color: var(--binham-primary) !important;
}

/* RTL adjustments for the new widgets */
[dir="rtl"] .binham-selector-row    { flex-direction: row-reverse; }
[dir="rtl"] .binham-selector-info   { align-items: flex-end; }
[dir="rtl"] .binham-selector-index  { margin-right: 0; margin-left: 4px; }
/* =============================================================================
   BOOKING STATUS CARD  (SupportAgent: booking lookup result)
   component_type: "booking_status_card"
   ============================================================================= */

/* Status-coloured header variants — each booking state gets its own gradient */
.binham-status-confirmed-header {
    background: linear-gradient(135deg, rgba(22,101,52,0.92) 0%, rgba(15,42,74,0.95) 100%);
}
.binham-status-pending-header {
    background: linear-gradient(135deg, rgba(120,80,4,0.92) 0%, rgba(15,42,74,0.95) 100%);
}
.binham-status-cancelled-header {
    background: linear-gradient(135deg, rgba(127,29,29,0.92) 0%, rgba(15,42,74,0.95) 100%);
}
.binham-status-lead-header {
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(15,42,74,0.95) 100%);
}

/* Inline status pill — sits right of the title in the header band */
.binham-status-pill {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pill colour variants */
.binham-status-confirmed { background: rgba(105,240,174,0.18); color: #69F0AE; border: 1px solid rgba(105,240,174,0.30); }
.binham-status-pending   { background: rgba(251,191,36,0.18);  color: #FCD34D; border: 1px solid rgba(251,191,36,0.30); }
.binham-status-cancelled { background: rgba(239,68,68,0.18);   color: #FCA5A5; border: 1px solid rgba(239,68,68,0.30); }
.binham-status-lead      { background: rgba(147,197,253,0.18); color: #93C5FD; border: 1px solid rgba(147,197,253,0.30); }

/* Financial summary block — sits below the info rows */
.binham-status-financials {
    margin: 0 14px 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.20);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.binham-status-fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.binham-status-fin-label {
    color: rgba(255,255,255,0.50);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11px;
}

.binham-status-fin-value {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    /* Force LTR so pre-formatted money strings ("1,890.00 AED") always render
       left-to-right even in an RTL page — same fix as the WhatsApp BiDi marks
       applied server-side in _format_money(), but for the browser context. */
    direction: ltr;
    unicode-bidi: embed;
}

/* Balance row — gold emphasis, larger type */
.binham-status-fin-balance .binham-status-fin-label {
    color: var(--binham-gold-light);
}
.binham-status-fin-balance .binham-status-fin-value {
    font-family: var(--binham-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--binham-gold-light);
}

/* RTL adjustments */
[dir="rtl"] .binham-status-pill      { margin-left: 0; margin-right: auto; }
[dir="rtl"] .binham-status-fin-row   { flex-direction: row-reverse; }
[dir="rtl"] .binham-status-fin-value { text-align: left; }