﻿/* ===========================
   FBT Scroller
   =========================== */

/* FBT scroller container */
.fbt-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

/* Card image container (relative for floating + button) */
.fbt-card-img-container {
    position: relative;
    width: 100%;
    height: 110px;
    overflow: hidden;
}

    /* Card image */
    .fbt-card-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Floating + button (initially visible) */
.fbt-main-add-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Counter area (top-right, initially hidden, slightly bigger) */
.fbt-action-area {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    padding: 4px 6px; /* slightly bigger padding */
    gap: 4px; /* more gap between buttons and count */
    font-size: 14px; /* slightly bigger font */
    z-index: 11;
    min-width: 30px;
    justify-content: center;
}

    /* Hidden state for counter area */
    .fbt-action-area.d-none {
        display: none;
    }

    .fbt-action-area button {
        width: 22px; /* slightly bigger buttons */
        height: 22px;
        padding: 0;
        font-size: 14px;
        line-height: 22px;
    }

    .fbt-action-area span {
        font-size: 14px; /* bigger counter number */
        font-weight: bold;
    }

/* Caption overlay on image bottom */
.fbt-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .fbt-card-caption .title {
        font-weight: bold;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .fbt-card-caption .price {
        font-size: 11px;
        color: #ccc;
    }


/* ===========================
   Steps / Sections / Menu group bar
   =========================== */

#step-cart {
    border-top: 4px solid #d97706; /* amber */
}

#step-user {
    border-top: 4px solid #3b82f6; /* blue */
}

#step-summary {
    border-top: 4px solid #22c55e; /* green */
}

#step-ordersubmitted {
    border-top: 4px solid #16a34a;
}

.section {
    background-color: #242424;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.04);
}

/* menugroups */
#menu-group-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    margin-left: -35px;
    margin-right: -15px;
    z-index: 1400;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


/* ===========================
   Action bar
   =========================== */

/* Prevent content being hidden behind fixed action bar */
.has-action-bar {
    padding-bottom: 70px;
}

/* Unified action bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: #121212;
    border-top: 1px solid #2a2a2a;
    z-index: 1050;
}

    .action-bar .container-fluid {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

/* Unified buttons */
.btn-action {
    min-width: 120px;
    font-weight: 500;
}

.btn-next {
    background-color: #28a745;
    border-color: #28a745;
    margin-right: 5rem;
}

    .btn-next:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.btn-prev {
    border-color: #6c757d;
    color: #fff;
    margin-left: 5rem;
}


/* ===========================
   Freebie UI
   =========================== */

/* 🔥 Freebie container */
.freebie-box {
    border: 1px dashed #ff9800;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 10px;
    padding: 16px;
}

/* ⚡ Banner */
.freebie-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    animation: pulseGlow 1.8s infinite;
}

/* ⚡ Icon */
.freebie-icon {
    font-size: 28px;
    line-height: 1;
}

/* 🏷 Title */
.freebie-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* 📝 Subtitle */
.freebie-subtitle {
    font-size: 13px;
    opacity: 0.95;
}

/* ✨ Soft attention animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(255, 152, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 14px rgba(255, 152, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 152, 0, 0.4);
    }
}

/* Hide mini cart when summary exists & is visible */
#step-summary:not(.d-none) ~ #mini-cart-wrapper {
    display: none;
}



/* ===========================
   Order Alert (top banner)
   =========================== */

.order-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    display: none; /* hidden by default */
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}

.order-alert--error {
    background-color: #f87171; /* red */
    color: #fff;
}
.order-alert--info {
    background-color: #2b2b2b; /* dark grey, not pure black */
    color: #f1f1f1; /* soft white text */
    border: 1px solid #3a3a3a; /* subtle border so it stands out */
}


.order-alert--success {
    background-color: #22c55e; /* green */
    color: #fff;
}

.order-alert__close {
    float: right;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}




/* Sticky order context button */
.order-context-sticky {
    position: fixed;
    left: 10px;
    bottom: 32px;
    z-index: 1060; /* above most content, below Bootstrap modal (1055) is fine too */
    border-radius: 999px;
    padding: 5px 7px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* On mobile, lift it slightly if you have a bottom bar */
@media (max-width: 576px) {
    .order-context-sticky {
        bottom: 32px; /* adjust if you have bottom nav */
    }
}
