/* --- Ultra-Premium Glassmorphism & Responsive Redesign --- */

:root {
    --goftino-glass-bg: rgba(250, 250, 250, 0.65);
    --goftino-glass-blur: blur(28px) saturate(180%);
    --goftino-glass-border: rgba(255, 255, 255, 0.6);
    --goftino-glass-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    
    --goftino-text-main: #1d1d1f;
    --goftino-text-muted: #86868b;
    --goftino-brand-accent: #e04444;
    --goftino-brand-gradient: linear-gradient(135deg, #e04444 0%, #ff6a6a 100%);
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}



/* --- Floating Orb --- */
#aiOrb {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    
    /* Subtle Glassmorphism */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--goftino-glass-blur);
    -webkit-backdrop-filter: var(--goftino-glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1);
    
    border-radius: 50%;
    /*animation: breatheOrb 4s ease-in-out infinite;*/
    z-index: 9998;
}

#aiOrb svg {
    stroke: #d73f3f;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}



@keyframes breatheOrb {
    0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
    50% { transform: scale(1.02) translateY(-2px); box-shadow: 0 12px 32px rgba(224, 68, 68, 0.15); }
}

/* --- Main Panel --- */
#aiPanel {
    direction: rtl;
    position: fixed;
    bottom: 86px;
    left: 24px;
    width: 360px; /* Slightly wider for modern feel */
    max-height: 80vh;
    display: none;
    flex-direction: column;
    border-radius: 28px;
    
    /* Apple-Level Glassmorphism */
    background: var(--goftino-glass-bg);
    backdrop-filter: var(--goftino-glass-blur);
    -webkit-backdrop-filter: var(--goftino-glass-blur);
    box-shadow: var(--goftino-glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    overflow: hidden;
    z-index: 99999;
    
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#aiPanel.active {
    display: flex; /* Assuming your JS handles the toggle */
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Subtle top highlight */
#aiPanel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    z-index: 2;
}

/* --- Mobile Fullscreen Mode --- */
@media (max-width: 768px) {
    #aiPanel {
        bottom: 0;
        left: 0;
        width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    #aiOrb {
        bottom: 20px;
        left: 20px;
    }
    
}
#goftino_w{
     /*z-index: 99990 !important;*/
     max-height: none !important;
}
@media (min-width: 768px) {
    #goftino_w {
        max-height: 600px !important;
        /*bottom: 0px !important;*/
        border-radius: 30px !important;
         
         
    }
}

/* --- Header --- */
.ai-header {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--goftino-text-main);
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.01em;
    flex-direction:row;
}

.close-btn {
   font-size: 24px;
    cursor: pointer;
    opacity: 1 !important;
    background: transparent !important;
    border: none;
    color: var(--color-btn-primary) !important;
    transition: opacity 0.2s;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    opacity: 1 !important;
    
}
.close-btn svg{
    color:var(--color-btn-primary) !important
}

.close-btn:hover {
    opacity: 1;
}

/* --- Body & Scrollbar --- */
.ai-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-behavior: smooth;
}

.ai-body::-webkit-scrollbar { width: 4px; }
.ai-body::-webkit-scrollbar-track { background: transparent; }
.ai-body::-webkit-scrollbar-thumb { 
    background: rgba(0, 0, 0, 0.1); 
    border-radius: 10px; 
}
.ai-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* --- Chat Bubbles --- */
.bubble {
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 88%;
    line-height: 1.5;
    font-size: 14px;
    white-space: pre-wrap;
    animation: msgEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}
/* Styling for inline links inside the AI chat bubbles */
.bubble .faq-organic-link {
    color: var(--color-primary); /* A nice organic green color */
    text-decoration: none;
    font-weight: 600; /* Makes it stand out slightly */
    width: max-content;
    display: contents;
    padding-bottom: 1px;
    transition: all 0.2s ease-in-out; /* Smooth hover effect */
}

/* Hover effect when the user hovers over the link */
.bubble a:not(.ai-action-btn):hover {
    color: var(--color-primary-dark); /* Darker green on hover */
    border-bottom-style: solid; /* Changes underline to solid */
}
@keyframes msgEnter {
    to { opacity: 1; transform: translateY(0); }
}

.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    color: var(--goftino-text-main);
    border-top-right-radius: 6px;
    justify-content: center;
    display: flex;
    flex-direction: column;
}
.bubble.ai strong {
    display: contents;
    font-weight: bold; /* Ensures it stays bold even though the box is gone */
}
.ai ol,.ai ul{
    margin-right: 0 !Important;
    margin-bottom: 10px !Important;
    line-height: 1.8 !Important;
    gap: 2px;
    display: flex;
    flex-direction: column;
    margin-top: 14px;
}
.ai li{
    list-style:disc;
    margin-bottom: 8px;
}
.user {
    align-self: flex-end;
    background: var(--goftino-brand-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 8px 16px rgba(224, 68, 68, 0.2);
    border-top-left-radius: 6px;
}

/* --- Typing Indicator --- */
.typing {
    display: flex;
    flex-direction:row !important;
    gap: 6px;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border-top-right-radius: 6px;
    align-self: flex-start;
    width: fit-content;
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--goftino-brand-accent);
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* --- AI Action Chips --- */
.ai-chip-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ai-chip {
    width: 100%;
    padding: 12px 20px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--goftino-text-main);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    text-align: right;
}

.ai-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ai-chip:active {
    transform: scale(0.98);
}

/* --- Apple-Style Nutrition/Feature Cards --- */

.nut-title, .feat-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-footer-heading);
    margin-bottom: 4px;
}

/* --- 1. PREMIUM APPLE-STYLE FEATURE CARDS --- */
.feat-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}


/* Beautiful 2-Column Grid */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr; /* Snaps to 1 column */
    gap: 10px;
    direction: rtl;
    
}

/* The Apple Highlight Card */
.feat-card {
    background-color: #ffffff; /* Pure white */
    border-radius: 16px; /* Smooth iOS corners */
    padding: 8px 10px 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Barely visible border for definition */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); /* Extremely soft, high-end float */
    cursor: default;
    
    /* Apple's signature buttery-smooth animation */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: Lift up slightly */
.feat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Active/Click: The tactile iOS "squish" effect */
.feat-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.1s ease; /* Snaps quickly when pressed */
}

/* Icon Wrapper: The iOS App icon look */
.feat-card img {
    height: 36px !important;
    width: 36px !important;
    min-height: 36px !important;
    min-width: 36px !important;
    max-height: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    object-fit: contain;
    background-color: #cdd0bc87;
    padding: 2px;
    flex-shrink: 0;
}

/* Crisp Text */
.feat-text {
    font-size: 14px !important;
    color: var(--color-text-body);
    line-height: 1.3;
}



/* --- 2. PREMIUM  TECH-SPEC NUTRITION TABLE (New, Pure White, Full-Width) --- */
.nut-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 232px;
    max-width: 90vw ! IMPORTANT;
}
@media (max-width: 360px) {
    .nut-wrapper {
       min-width:  58vw;
    }

    
}
@media (max-width: 300px) {
    .more-help-wrap{
        flex-wrap: wrap;
    }
        .nut-label{
        flex:1;
    }
    .nut-value{
        min-width: 90%;
        flex:1;
    }
    .nut-card{
        flex-wrap:wrap;
    }
}
.nut-title {
    font-size: 16px; font-weight: 600; color: var(--goftino-text-main); margin-bottom: 6px;
}
.nut-serving {
    font-size: 14px; color: var(--goftino-text-muted); margin-bottom: 12px;
}
.nut-grid {
    display: grid;
     grid-template-columns: 1fr; /* Snaps perfectly into 1 column */
    padding: 6px 20px;
    column-gap: 0;
    width: 100%;
    background-color: #ffffff; /* Crisp, pure white */

    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0,0,0,0.02); /* Soft premium shadow */
    direction: rtl;
    box-sizing: border-box;
    
}
.nut-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #ebebeb; /* Clean silver horizontal line */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Hide icons in the tech spec table for a cleaner look */
.nut-icon-wrap { display: none; }

/* Remove borders from the bottom row */
.nut-card:nth-last-child(1),
.nut-card:nth-last-child(2) {
    border-bottom: none;
}
.nut-label {
    font-size: 14px;
    color: var(--goftino-text-muted); /* Uses your exact soft gray */
    font-weight: 500;
    flex-shrink: 0; /* Guarantees no shrinking */
    white-space: nowrap; /* Guarantees no line breaking */
}
.nut-value {
    font-size: 14px;
    color: var(--goftino-text-main); /* Uses your exact deep dark gray/black */
    font-weight: 700;
    text-align: left;
    flex-shrink: 0; /* Guarantees no shrinking */
    white-space: nowrap; /* Guarantees no line breaking */
}
    .nut-card { padding: 12px 0; }
    .nut-card:nth-last-child(2) {
        border-bottom: 1px solid #ebebeb; /* Restores border since it's a 1-column list now */
    }


/* --- Footer & Live Button --- */
.ai-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.3);
}

.ai-live-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: white;
    /*background: linear-gradient(180deg, #ff5151 26%, #d73f3f 100%) !important;*/
    background: linear-gradient(180deg, #e04545 26%, #b83232 100%) !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(224, 68, 68, 0.25);
}

.ai-live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(224, 68, 68, 0.35);
}

.ai-live-btn:active {
    transform: scale(0.98);
}

/* --- Stacked FAQ --- */
.faq-stacked-wrapper {
    display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.faq-stacked-item {
    background: #f6f5f3;
    border: 1px solid #eae9e4;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--goftino-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}
.faq-stacked-item:hover {
    background: #eae9e4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Support Section & Typography --- */
.support-section {
    margin: 4px 0 12px;
    animation: msgEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.faq-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--goftino-text-muted);
    margin-bottom: 12px;
    padding-right: 4px;
}

/* --- Support Cards Container --- */
.support-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Premium Support Card --- */
.support-card {
    background: rgb(255 255 255 / 48%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgb(0 0 0 / 4%);
    position: relative;
    overflow: hidden;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: #fff;
}

.support-card:active {
    transform: scale(0.98);
    transition: 0.1s;
}

/* Internal Card Text */
.sc-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--goftino-text-main);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.sc-desc {
    font-size: 13px;
    color: var(--goftino-text-muted);
    line-height: 1.5;
}

/* --- AI Action Button (Inside Bubble) --- */
.ai-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--goftino-brand-gradient);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(224, 68, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 68, 68, 0.35);
    filter: brightness(1.05);
}

.ai-action-btn:active {
    transform: scale(0.96);
}
#goftino_close_screen, #goftino_dl_image{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}



        #aiOrb {
           --orb-glass: #ff3d3d; 
            --orb-light: #fff;
            --orb-dark: #8b0000;
            --orb-glass-reflex-dark: 1;
            --orb-glass-reflex-light: 1;
            --orb-saturation: 150%;
            transition: all 0.4s cubic-bezier(1, 0, .4, 1);
            background-color: 
        color-mix(in srgb, var(--orb-glass) 12%, transparent) !important;
            backdrop-filter: blur(8px) saturate(var(--orb-saturation));
            -webkit-backdrop-filter: blur(8px) saturate(var(--orb-saturation));
            box-shadow: inset 0 0 0 1px 
         color-mix(in srgb, var(--orb-light) calc(var(--orb-glass-reflex-light) * 10%), transparent), inset 1.8px 3px 0 -2px 
         color-mix(in srgb, var(--orb-light) calc(var(--orb-glass-reflex-light) * 90%), transparent), inset -2px -2px 0 -2px 
         color-mix(in srgb, var(--orb-light) calc(var(--orb-glass-reflex-light) * 80%), transparent), inset -3px -8px 1px -6px 
         color-mix(in srgb, var(--orb-light) calc(var(--orb-glass-reflex-light) * 60%), transparent), inset -.3px -1px 4px 0 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 12%), transparent), inset -1.5px 2.5px 0 -2px 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 20%), transparent), inset 0 3px 4px -2px 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 20%), transparent), inset 2px -6.5px 1px -4px 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 10%), transparent), 0 1px 5px 0 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 10%), transparent), 0 6px 16px 0 
         color-mix(in srgb, var(--orb-dark) calc(var(--orb-glass-reflex-dark) * 8%), transparent) !important;
            border-radius: 50%;
            color: var(--color-text-body, #3b352f);
            /*animation: breathe 4s ease-in-out infinite;*/
            z-index: 99999 !important;
          transition:  opacity 0.3s cubic-bezier(1, 0, 0.3, 1),
                    visibility 0.3s cubic-bezier(1, 0, 0.3, 1),
                    transform 0.3s ease-in-out,       /* Faster movement */
                    background-color 0.3s cubic-bezier(1, 0, 0.3, 1);
        }
       #aiOrb:hover {
               transform: translateY(-5px) !important;
                background-color: 
            color-mix(in srgb, var(--color-primary, #d73f3f) 15%, transparent) !important;
                backdrop-filter: blur(12px) saturate(180%) !important;
                -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
            }
            #aiOrb svg {
                stroke: #d73f3f;
        }

        #aiOrb svg {
            stroke: #d73f3f;
        }

  

        @keyframes breathe {
            0% {
                box-shadow: 0 20px 60px rgba(155, 123, 255, 0.55);
                transform: scale(1);
            }

            50% {
                box-shadow: 0 30px 90px rgba(155, 123, 255, 0.75);
                transform: scale(1.06);
            }

            100% {
                box-shadow: 0 20px 60px rgba(155, 123, 255, 0.55);
                transform: scale(1);
            }
        }
 
      
        .ai-live-btn {
            width: 100%;
            padding: 15px;
            border-radius: 16px;
            border: none;
            font-weight: 600;
            font-size: 15px;
            color: white;
        
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: transform .25s ease, box-shadow .35s ease, filter .35s ease;
            box-shadow: 0 10px 30px rgba(200, 60, 60, .35), 0 3px 8px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
        }

        .ai-live-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 40px rgba(200, 70, 70, .45), 0 4px 12px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
            filter: saturate(1.1);
        }

/* ── Order Desc ───────────────────────────────────────── */
.oab-order-desc {
    margin-bottom: 4px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1c1c1e;
}
.oab-order-desc p { margin: 0; }
.oab-order-desc strong { font-weight: 600; }

/* ── Orders List ──────────────────────────────────────── */
.oab-orders-track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* ── Single Row ───────────────────────────────────────── */
.oab-order-track-row {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}
.oab-order-track-row:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ── Order Info ───────────────────────────────────────── */
.oab-order-track-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.oab-order-number {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1e;
}

.oab-order-date {
    font-size: 12px;
    color: #8e8e93;
}

/* ── Status Badge ─────────────────────────────────────── */
.oab-order-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
    margin-right: auto;
}
.oab-status-completed {
    background: #d1fae5;
    color: #065f46;
}
.oab-status-processing {
    background: #dbeafe;
    color: #1e40af;
}
.oab-status-on-hold {
    background: #fef3c7;
    color: #92400e;
}

/* ── Track Button ─────────────────────────────────────── */
.oab-track-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px !important;
    background: #d73f3f !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: none;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
}
.oab-order-track-row .oab-track-inline-btn.button:hover {
    background-color: #b83232 !important;
}
.oab-track-inline-btn:active {
    transform: scale(0.98);
}
.oab-track-inline-btn:disabled {
    background: #f1aFaF;
    cursor: not-allowed;
}



/* ── Chat Track Inner ─────────────────────────────────── */
.oab-chat-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oab-chat-track-note {
    margin: 0;
    color: #3a3a3c;
    font-size: 13px;
    line-height: 1.6;
}

.oab-chat-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #d73f3f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.oab-chat-track-btn:hover { background: #b83232; color: #fff; }

.oab-chat-track-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e5ea;
}

.oab-chat-track-post-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #d73f3f;
    text-decoration: none;
    margin-top: 2px;
}
.oab-chat-track-post-link:hover {
    text-decoration: underline;
    color: #b83232;
}

.oab-chat-track-error {
    color: #c53030;
    font-size: 13px;
    margin: 0;
}


/* 2. Layout (Reduced gaps) */
.oab-chat-track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Tighter spacing between buttons */
    align-items: center;
}

/* 3. The Note Text (Smaller, uses your muted text color) */
.oab-chat-track-note {
    width: 100%;
    margin: 0 0 2px 0; /* Barely any margin below */
    font-size: 13px; /* Smaller text */
    color: var(--color-goftino-text-muted, #5c534d);
}

/* 4. Shared Link/Button Styles (More compact padding) */
.oab-chat-track a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align:center;
    font-size: 12px; /* Smaller, neater font size */
    font-weight: 600;
    padding: 6px 14px; /* Reduced padding for a sleeker button */
    border-radius: 6px; /* Matches smaller padding */
    transition: all 0.2s ease;
}

/* 5. Primary Action: Download Button (Uses your primary brand red) */
.oab-chat-track-btn {
    background-color: var(--color-btn-primary, #d73f3f);
    color: var(--color-btn-primary-text, #fffdfc) !important;
    border: 1px solid var(--color-btn-primary, #d73f3f);
}

.oab-chat-track-btn:hover {
    background-color: var(--color-btn-primary-hover, #b83535);
    border-color: var(--color-btn-primary-hover, #b83535);
}

/* 6. Secondary Action: Post Tracking (Uses your secondary button logic) */
.oab-chat-track-post-link {
    background-color: var(--color-btn-secondary-bg, transparent);
    color: var(--color-btn-secondary-text, #6b6158) !important;
    border: 1px solid var(--color-btn-secondary-border, #6b6158);
}

.oab-chat-track-post-link:hover {
    background-color: var(--color-btn-secondary-bg-hover, #5e554d);
    color: var(--color-btn-secondary-text-hover, #fff) !important;
    border-color: var(--color-btn-secondary-border-hover, #5e554d);
}

/* Base styles for the tracking result box */
.oab-chat-track {

    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    width:100%;
    border-right: 4px solid transparent; /* Right border for RTL highlight */
}

/* SUCCESS STATE: Completed / Sent */
.oab-state-success {
    background-color: #ecfdf5; /* Soft Mint Green */
    border-color: #10b981;     /* Solid Green highlight */
    color: #065f46;            /* Dark Green text */
}

/* PENDING STATE: Processing / On-Hold / Pending */
.oab-state-pending {
    background-color: #fffbeb; /* Soft Amber/Yellow */
    border-color: #f59e0b;     /* Solid Amber highlight */
    color: #92400e;            /* Dark Brown/Amber text */
}

/* Styling the notes/text inside */
.oab-chat-track-note {
    margin: 0 0 8px 0;
    font-weight: 500;
}
.oab-chat-track-note:last-child {
    margin-bottom: 0;
}

/* Buttons and Links inside the track box */
.oab-chat-track-btn,
.oab-chat-track-post-link {
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid currentColor;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    margin-left: 5px;
    margin-top: 5px;
    transition: all 0.2s ease;
}

/* Make links inherit the theme color of their container */

.oab-state-success .oab-chat-track-post-link {
    color: #10b981 !important;
}
.oab-state-success .oab-chat-track-btn{
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}
.oab-state-success .oab-chat-track-btn:hover{
     background-color: #079c6b !important;
         border-color: #079c6b !important;
}
.oab-state-success .oab-chat-track-post-link:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Image styles for uploaded tracking slips */
.oab-chat-track-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    display: block;
}






/* Fades out the LEFT side of the container for RTL languages */
.oab-order-items-wrapper {
    position: relative;
    width: 100%;
    margin: 8px 0;
    -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    mask-image: linear-gradient(to left, black 85%, transparent 100%);
}

/* Flexbox row that allows horizontal swiping/scrolling */
.oab-order-items {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

/* Hides scrollbar in Chrome/Safari/Edge */
.oab-order-items::-webkit-scrollbar {
    display: none; 
}

/* The modern product pill/chip */
.oab-item-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    color: #4b5563;
    max-width: 140px; /* Truncates very long product names */
    
    /* Prevents text highlighting while the user is drag-scrolling */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

/* Handles long product titles gracefully */
.oab-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quantity badge styling */
.oab-item-qty {
    margin-right: 5px; /* RTL spacing: adds space to the right of the number */
    font-weight: bold;
    color: #111827;
    background-color: #e5e7eb;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 10px;
    direction: ltr; /* Keeps the "×2" formatting strictly LTR so the X is on the left */
}
/* ========================================= */
/* --- MORE BUTTON WRAPPER & BASE ---        */
/* ========================================= */

.more-help-wrap {
    display: flex;
    justify-content: start;
    margin: 0px 0 8px;
        display: flex;
    justify-content: start;
    margin: 0px !important;
    height: fit-content;
    display: inline-flex;
    max-height: fit-content;
    line-height: 1;
}

.more-help-btn {
 display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.07);
    flex: 0 !important;
    backdrop-filter: blur(8px);
    color: #52525b;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 10px 10px 16px !important;
    border-radius: 999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    max-width: none !important;
    min-width: fit-content !important;
}

/* ========================================= */
/* --- MORE BUTTON WRAPPER & BASE ---        */
/* ========================================= */

.more-help-wrap {
    display: flex;
    justify-content: start;
    margin: 0px 0 8px;
}

.more-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;

    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(8px);

    color: #52525b;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 10px 10px 16px;
    border-radius: 999px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,1) !important;
}
.btn-repeat-list{
          padding: 0;
    height: fit-content;
    padding: 12px !important;
    text-align: right;
    direction: ltr;
    line-height: 0.3;
    min-height: 0 !IMPORTANT;
    max-height: fit-content !important;
    margin-top:6px !Important;
    display: flex;
    gap: 6px;
    align-items: center;
    padding-right:0 !important;
    cursor:pointer !important;
}
.btn-repeat-list p{
    color: var(--color-btn-primary) !important;
    font-size: 14px !important;
    transition:all 0.3s ease-in-out;
}
.btn-repeat-list svg{
    stroke: var(--color-btn-primary) !important;
    transition:all 0.3s ease-in-out;
    height: 21px;
    width: 16px;
}
.btn-repeat-list:hover p{
        color: var(--color-btn-primary-hover) !important;
}
.btn-repeat-list:hover svg{
        stroke: var(--color-btn-primary-hover) !important;
}
@media (hover: hover) {
    .more-help-btn:hover {
        border-color: rgba(0, 0, 0, 0.13);
        color: #18181b;
        transform: translateY(-1px);
        box-shadow:
            0 1px 2px rgba(0,0,0,0.04),
            0 8px 20px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,1) !important;
    }
}

.more-help-btn:active {
    transform: scale(0.97) !important;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.05),
        inset 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: all 0.1s ease !important;
}

.more-help-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* ========================================= */
/* --- ICON CONTAINER ---                    */
/* ========================================= */

.more-help-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.045);
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .more-help-btn:hover .more-help-icon-wrap {
        transform: scale(1.06);
    }
}

.more-help-btn:active .more-help-icon-wrap {
    transform: scale(0.93);
    transition: transform 0.1s ease;
}

/* ========================================= */
/* --- SVG LINES ---                         */
/* ========================================= */

.more-help-icon {
    display: block;
    overflow: visible;
}

.icon-line-top,
.icon-line-mid,
.icon-line-bot {
    stroke-dasharray: 13;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* default: staircase */
.icon-line-top { stroke-dashoffset: 0; }
.icon-line-mid { stroke-dashoffset: 5; }
.icon-line-bot { stroke-dashoffset: 9; }

/* hover: all full */
.more-help-btn:hover .icon-line-top,
.more-help-btn:hover .icon-line-mid,
.more-help-btn:hover .icon-line-bot {
    stroke-dashoffset: 0;
}


/* --- Body & Scrollbar --- */
.ai-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-behavior: smooth;
    
    /* FIREFOX FIX: This is what you are actually seeing! 
       Changed to a very light, clean silver (#d1d5db) so it matches your white panel. */
    scrollbar-width: thin; 
    scrollbar-color: var(--color-border-subtle) transparent;
}

/* 1. WebKit Width (Chrome/Edge/Safari) */
.ai-body::-webkit-scrollbar { 
    width: 6px !important; 
    background-color: transparent !important;
}

/* 2. ULTIMATE ARROW NUKE (Only works in Chrome/Edge/Safari) */
.ai-body::-webkit-scrollbar-button { 
    display: none !important; 
    width: 0px !important;
    height: 0px !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 3. Transparent Track */
.ai-body::-webkit-scrollbar-track { 
    background-color: transparent !important;
    margin-block: 15px !important; 
}

/* 4. The Gradient (Chrome/Edge/Safari only) */
.ai-body::-webkit-scrollbar-thumb { 
    border-radius: 10px !important; 
    /* Fades from your brand accent into almost pure transparent white */
    background-image: linear-gradient(180deg, var(--color-border-muted) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
}

/* 5. Hover State */
.ai-body::-webkit-scrollbar-thumb:hover { 
    /* Fades from your brand accent into a very light, icy silver */
    background-image: linear-gradient(180deg, var(--color-border-muted) 0%, #e5e7eb 100%) !important;
}

     