/* ==========================================================================
   FOODBOOKING ONLINE ORDERING (dark theme, no Bootstrap dependency)
   ========================================================================== */

:root {
    --fb-red: #f5222d;
    --fb-red-dark: #d11a24;
    --fb-surface: #363636;
    --fb-surface-2: #2a2a2a;
    --fb-surface-3: #424242;
    --fb-line: rgba(255, 255, 255, .12);
    --fb-text: #ffffff;
    --fb-muted: #cccccc;
    --fb-green: #3ddc84;
    --fb-radius: 16px;
}

.d-none { display: none !important; }
.is-hidden { display: none !important; }

/* ---------- Buttons ---------- */
.fb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
    cursor: pointer; text-decoration: none; transition: all .2s ease;
}
.fb-btn--primary { background: var(--fb-red); color: #fff; }
.fb-btn--primary:hover { background: var(--fb-red-dark); color: #fff; }
.fb-btn--primary:disabled { background: #555; color: #999; cursor: not-allowed; }
.fb-btn--ghost { background: transparent; color: #fff; border-color: var(--fb-line); }
.fb-btn--ghost:hover { border-color: var(--fb-red); color: var(--fb-red); }
.fb-btn--block { display: flex; width: 100%; }
.fb-btn--lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }

/* ---------- Store Header Bar (Integrated 1-Line Design) ---------- */
.fb-store-header-bar {
    padding: 10px 0 20px;
    background: transparent;
}

.fb-store-header-inner {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #232323;
    border: 1px solid var(--fb-line);
    border-radius: var(--fb-radius);
    padding: 12px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fb-store-col--status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fb-store__hours {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
}

.fb-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px;
    font-size: 13px; font-weight: 800;
}
.fb-badge--open { background: rgba(61, 220, 132, .18); color: var(--fb-green); border: 1px solid rgba(61, 220, 132, .3); }
.fb-badge--open::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fb-green);
    animation: fb-pulse 1.8s infinite;
}
.fb-badge--paused { background: rgba(255, 170, 0, .18); color: #ffb020; border: 1px solid rgba(255, 170, 0, .3); }
.fb-badge--closed { background: rgba(245, 34, 45, .18); color: #ff6b73; border: 1px solid rgba(245, 34, 45, .3); }

.fb-switch { display: inline-flex; padding: 4px; border-radius: 40px; background: var(--fb-surface-2); border: 1px solid var(--fb-line); }
.fb-switch__btn {
    display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #d1d5db;
    padding: 8px 16px; border-radius: 30px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
    transition: all .2s ease; white-space: nowrap;
}
.fb-switch__btn small { font-weight: 600; font-size: 11px; opacity: .9; color: #e5e7eb; }
.fb-switch__btn.is-active { background: var(--fb-red); color: #fff; box-shadow: 0 4px 14px rgba(245, 34, 45, .35); }

.fb-plz-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px;
    background: var(--fb-surface-2); border: 1px solid var(--fb-line); color: #fff;
    font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: border-color .2s;
}
.fb-plz-btn:hover { border-color: var(--fb-red); }

.product-card .product-card__order-btn,
button.product-card__order-btn,
a.product-card__order-btn {
    background: #f5222d !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.2s ease !important;
}
button.product-card__order-btn:hover,
a.product-card__order-btn:hover {
    background: #d11a24 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.fb-store-col--controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fb-store-col--search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 340px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.fb-store-header-inner .fb-store-col--status {
    flex-wrap: wrap;
    flex-shrink: 1;
}

.fb-store-header-inner .fb-store-col--controls,
.fb-store-header-inner #plz-trigger-wrap {
    min-width: 0;
    max-width: 100%;
}

.fb-store-header-inner .fb-switch {
    max-width: 100%;
    flex-wrap: wrap;
}

.fb-store-header-inner .fb-plz-btn {
    max-width: 100%;
}

.fb-store-header-inner #current-address-display {
    min-width: 0;
    overflow-wrap: anywhere;
}

.fb-store-col--search .fb-search-wrap {
    flex: 1 1 160px;
    min-width: 0;
    width: auto;
}

.fb-btn-cart-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5222d, #d11a24);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fb-btn-cart-header:hover {
    background: #d11a24;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 34, 45, 0.5);
}

.fb-btn-cart-header .fb-cart__count {
    background: #fff;
    color: var(--fb-red);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 800;
}

.fb-btn-info-pill {
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-line);
    color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fb-btn-info-pill:hover {
    border-color: var(--fb-red);
    color: var(--fb-red);
}

.fb-search-wrap {
    position: relative;
    width: 100%;
}

.fb-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fb-muted);
    font-size: 14px;
}

.fb-search-wrap input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border-radius: 30px;
    border: 1px solid var(--fb-line);
    background: var(--fb-surface-2);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.fb-search-wrap input::placeholder {
    color: #888;
}

.fb-search-wrap input:focus {
    border-color: var(--fb-red);
    box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}

.fb-no-result { display: none; text-align: center; color: var(--fb-muted); padding: 40px 0; }
.fb-no-result.is-visible { display: block; }

/* ---------- Slide-Out Cart Drawer Modal ---------- */
.food-modal--drawer .food-modal__dialog--drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.food-modal--drawer.is-active .food-modal__dialog--drawer {
    transform: translateX(0);
}

.food-modal--drawer .food-modal__content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    background: #1c1c1c;
}

.food-modal--drawer .fb-cart {
    border: none;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.food-modal--drawer .fb-cart__head {
    background: #181818;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 20px;
}

.food-modal--drawer .fb-cart__body {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    padding: 16px 20px;
}

.food-modal--drawer .fb-cart__close {
    display: block !important;
    font-size: 28px;
    color: #a3a3a3;
    transition: color 0.2s;
}

.food-modal--drawer .fb-cart__close:hover {
    color: #fff;
}

/* ---------- Floating Cart Pill Bar ---------- */
.fb-cart-bar {
    position: fixed;
    right: 80px;
    bottom: 20px;
    z-index: 1040;
}

.fb-cart-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f5222d, #d11a24);
    color: #fff;
    border: 0;
    border-radius: 40px;
    padding: 12px 22px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 34, 45, 0.45);
    transition: all 0.2s ease;
}

.fb-cart-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 34, 45, 0.6);
}

.fb-cart-bar__count {
    background: #fff;
    color: var(--fb-red);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 8px;
    font-weight: 800;
}

@media (max-width: 991px) {
    .fb-store-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .fb-store-col--status {
        justify-content: space-between;
        width: 100%;
    }
    .fb-store-col--controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .fb-switch {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .fb-switch__btn {
        justify-content: center;
    }
    .fb-plz-btn {
        width: 100%;
        justify-content: space-between;
    }
    .fb-store-col--search {
        flex: none;
        width: 100%;
    }
    .fb-btn-cart-header {
        display: none;
    }
    .fb-cart-bar {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .fb-cart-bar__btn {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    body.foodbooking-menu-page .fixed-social {
        display: none !important;
    }
    .foodbooking-menu-page .menu-page__hero {
        padding-top: 80px;
        padding-bottom: 4px;
    }
    .foodbooking-menu-page .menu-page__tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 4px 12px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 !important;
    }
    .foodbooking-menu-page .menu-page__tabs::-webkit-scrollbar {
        display: none !important;
    }
    .foodbooking-menu-page .menu-page__tab {
        flex-shrink: 0 !important;
        font-size: 13px !important;
        padding: 7px 16px !important;
    }
    .foodbooking-menu-page .fb-store-header-bar {
        padding: 4px 0 12px;
    }
    .foodbooking-menu-page .fb-store-header-inner {
        padding: 10px 14px !important;
        gap: 8px !important;
    }
    .foodbooking-menu-page .fb-store-col--status {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }
    .foodbooking-menu-page .fb-store__hours {
        font-size: 12px !important;
    }
    .foodbooking-menu-page .fb-badge {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    .foodbooking-menu-page .fb-btn-info-pill {
        padding: 3px 10px !important;
        font-size: 12px !important;
    }
    .foodbooking-menu-page .fb-store-col--controls {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .foodbooking-menu-page .fb-switch {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .foodbooking-menu-page .fb-switch__btn {
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
    .foodbooking-menu-page .fb-switch__btn small {
        font-size: 10px !important;
    }
    .foodbooking-menu-page .fb-plz-btn {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
    .foodbooking-menu-page .fb-store-col--search {
        width: 100% !important;
        display: flex !important;
    }
    .foodbooking-menu-page .fb-btn-cart-header {
        display: none !important;
    }
    .foodbooking-menu-page .fb-search-wrap input {
        padding: 7px 12px 7px 34px !important;
        font-size: 13px !important;
    }
    .foodbooking-menu-page .menu-page__content-wrap {
        padding-bottom: 90px;
    }
    .foodbooking-menu-page .home-menu--sidebar .home-menu__tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 6px !important;
        padding: 4px 12px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 12px !important;
    }
    .foodbooking-menu-page .home-menu--sidebar .home-menu__tabs::-webkit-scrollbar {
        display: none !important;
    }
    .foodbooking-menu-page .home-menu--sidebar .home-menu__tab {
        flex-shrink: 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
        background: #232323 !important;
        border: 1px solid var(--fb-line) !important;
    }
    .foodbooking-menu-page .home-menu--sidebar .home-menu__tab.active {
        background: #f5222d !important;
        color: #fff !important;
        border-color: #f5222d !important;
    }
    .food-modal--drawer .food-modal__dialog--drawer {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* ---------- Cart ---------- */
.fb-cart { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); overflow: hidden; color: #fff; }
.fb-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--fb-line); }
.fb-cart__title { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #fff; }
.fb-cart__title i { color: var(--fb-red); }
.fb-cart__count { background: var(--fb-red); color: #fff; border-radius: 20px; padding: 1px 10px; font-size: 13px; }
.fb-cart__close { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.fb-cart__body { padding: 16px 18px; max-height: 420px; overflow-y: auto; }
.fb-cart__empty { text-align: center; color: #d1d5db; padding: 34px 10px; }
.fb-cart__empty i { font-size: 44px; opacity: .4; margin-bottom: 12px; display: block; }
.fb-cart__empty strong { display: block; color: #fff; margin-bottom: 4px; }

.fb-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--fb-line); }
.fb-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.fb-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fb-item__info-wrap { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.fb-item__thumb { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 8px; overflow: hidden; background: var(--fb-surface-2); border: 1px solid var(--fb-line); }
.fb-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-item__details { flex: 1; min-width: 0; }
.fb-item__name { font-weight: 800; color: #fff; font-size: 14px; line-height: 1.3; }
.fb-item__opts { font-size: 12px; color: #d1d5db; margin-top: 3px; line-height: 1.4; }
.fb-item__opts em { color: #ff6b73; font-style: normal; }
.fb-item__note { font-size: 12px; color: #ffb020; margin-top: 3px; }
.fb-item__price { font-weight: 800; color: #fff; white-space: nowrap; font-size: 15px; }
.fb-item__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.fb-stepper { display: inline-flex; align-items: center; background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 10px; }
.fb-stepper button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 12px; border-radius: 10px; }
.fb-stepper button:hover { background: var(--fb-red); }
.fb-stepper span { min-width: 30px; text-align: center; font-weight: 800; color: #fff; }
.fb-link-remove { background: none; border: 0; color: #d1d5db; cursor: pointer; font: inherit; font-size: 13px; }
.fb-link-remove:hover { color: #ff6b73; }

.fb-minorder { padding: 14px 18px; background: var(--fb-surface-2); border-bottom: 1px solid var(--fb-line); font-size: 13px; color: #e5e7eb; }
.fb-minorder--ok { color: var(--fb-green); font-weight: 800; }
.fb-minorder--need { color: #ffb020; }
.fb-minorder strong { color: #fff; }
.fb-progress { height: 6px; background: rgba(255, 255, 255, .15); border-radius: 6px; margin-top: 8px; overflow: hidden; }
.fb-progress span { display: block; height: 100%; background: var(--fb-red); border-radius: 6px; transition: width .3s; }
.fb-progress--ok span { background: var(--fb-green); }

.fb-cart__foot { padding: 16px 18px; background: var(--fb-surface-2); border-top: 1px solid var(--fb-line); }
.fb-sum { display: flex; justify-content: space-between; color: #d1d5db; font-size: 14px; margin-bottom: 6px; }
.fb-sum strong { color: #fff; font-weight: 700; }
.fb-sum--discount { color: var(--fb-green); }
.fb-sum--discount strong { color: var(--fb-green); }
.fb-sum--total { margin: 10px 0 14px; padding-top: 12px; border-top: 1px solid var(--fb-line); font-size: 19px; font-weight: 800; color: #fff; }
.fb-sum--total strong { color: var(--fb-red); }

/* Mobile cart bar + drawer */
@media (max-width: 991px) {
    .fb-cart-bar { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 1040; padding: 0 16px; }
    .fb-cart-bar__btn {
        width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
        background: var(--fb-red); color: #fff; border: 0; border-radius: 40px; padding: 14px 22px; font: inherit;
        font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 28px rgba(245, 34, 45, .45);
    }
    .fb-cart-bar__count { background: #fff; color: var(--fb-red); border-radius: 20px; padding: 2px 11px; font-size: 13px; margin-right: 10px; }
}
body.foodbooking-menu-page .fb-cart-bar { display: none; }

/* ---------- Modals ---------- */
.food-modal {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.food-modal.is-active { opacity: 1; visibility: visible; }
.food-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.food-modal__dialog { position: relative; z-index: 1; width: 92%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; min-height: 0; }
.food-modal__dialog--lg { max-width: 600px; }
.food-modal__content { background: var(--fb-surface); color: #fff; border: 1px solid var(--fb-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; min-height: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.modifier-content { display: flex; flex-direction: column; height: 100%; max-height: 90vh; min-height: 0; overflow: hidden; flex: 1; }
.food-modal__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--fb-line); flex-shrink: 0; }
.food-modal__title { margin: 0; font-size: 22px; font-weight: 800; color: #fff; }
.food-modal__close { background: none; border: 0; color: #a3a3a3; font-size: 30px; line-height: 1; cursor: pointer; }
.food-modal__close:hover { color: #fff; }
.food-modal__body { padding: 20px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.food-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; background: var(--fb-surface-2); border-top: 1px solid var(--fb-line); flex-shrink: 0; }
.food-modal__dialog--bottom { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; transform: translateY(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.food-modal.is-active .food-modal__dialog--bottom { transform: translateY(0); }
.food-modal__dialog--bottom .food-modal__content { border-radius: 20px 20px 0 0; max-height: 88vh; }
.food-modal__dialog--bottom .fb-cart { border: 0; border-radius: 0; }
.food-modal__dialog--bottom .fb-cart__close { display: block; }

.fb-price-tag { color: var(--fb-red); font-weight: 800; font-size: 18px; }
.fb-modal-img { height: 210px; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: var(--fb-surface-2); }
.fb-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-modal-desc { color: #d1d5db; margin: 0 0 20px; line-height: 1.6; }

.fb-group { margin-bottom: 22px; padding: 4px; border-radius: 12px; border: 1px solid transparent; }
.fb-group.is-invalid { border-color: var(--fb-red); padding: 10px; background: rgba(245, 34, 45, .06); }
.fb-group__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fb-group__name { margin: 0; font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.fb-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .3px; }
.fb-tag--req { background: var(--fb-red); color: #fff; }
.fb-tag--opt { background: var(--fb-surface-3); color: #d1d5db; }
.fb-group__hint { font-size: 12px; color: #a3a3a3; }
.fb-option {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
    background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 12px; cursor: pointer; transition: all .15s;
}
.fb-option:hover { border-color: rgba(245, 34, 45, .6); }
.fb-option:has(input:checked) { border-color: var(--fb-red); background: rgba(245, 34, 45, .1); }
.fb-option__main { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.fb-option input { width: 18px; height: 18px; accent-color: var(--fb-red); margin: 0; }
.fb-option__price { color: #e5e7eb; font-weight: 700; font-size: 14px; }
.fb-option:has(input:checked) .fb-option__price { color: var(--fb-red); }

.fb-label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: #ffffff; }
.fb-label small { color: #d1d5db; font-weight: 600; }
.fb-input, .fb-select, .fb-textarea {
    width: 100%; padding: 12px 14px; background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 12px;
    color: #ffffff; font: inherit; font-size: 15px; outline: none; transition: all .2s;
}
.fb-textarea { resize: vertical; min-height: 70px; }
.fb-input::placeholder, .fb-textarea::placeholder { color: #9ca3af; }
.fb-input:focus, .fb-select:focus, .fb-textarea:focus { border-color: var(--fb-red); box-shadow: 0 0 0 3px rgba(245, 34, 45, .2); }
.fb-select option, .fb-select optgroup { background: #242424; color: #ffffff; }
.fb-counter { display: block; text-align: right; color: #a3a3a3; font-size: 12px; margin-top: 4px; }
.fb-error { color: #ff6b73; font-size: 13px; margin-top: 8px; font-weight: 600; }

/* Coupon box in Checkout */
.fb-coupon-box {
    margin: 16px 0;
    padding: 14px;
    background: var(--fb-surface-2);
    border: 1px dashed var(--fb-line);
    border-radius: 12px;
}
.fb-coupon-box .fb-label {
    font-size: 13px;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fb-coupon-input-group {
    display: flex;
    gap: 8px;
}
.fb-coupon-input-group .fb-input {
    background: var(--fb-surface-3);
    border: 1px solid var(--fb-line);
    color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
}
.fb-coupon-input-group .fb-btn {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
}
.fb-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--fb-green);
    font-weight: 700;
    font-size: 14px;
}
.fb-coupon-applied strong {
    color: #ffffff;
    letter-spacing: 0.5px;
}
.fb-coupon-remove-btn {
    background: transparent;
    border: 1px solid #ff6b73;
    color: #ff6b73;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fb-coupon-remove-btn:hover {
    background: rgba(245, 34, 45, .15);
    color: #ff4d4f;
}

/* PLZ modal */
.fb-zone {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px;
    background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 12px; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s;
}
.fb-zone:hover { border-color: var(--fb-red); }
.fb-zone b { color: var(--fb-red); }
.fb-zone small { display: block; color: #d1d5db; text-align: right; }
.fb-inline { display: flex; gap: 10px; margin-bottom: 18px; }
.fb-inline .fb-input { flex: 1; }
.fb-muted { color: #d1d5db; font-size: 14px; line-height: 1.5; }
.fb-subtitle { font-size: 13px; font-weight: 800; color: #d1d5db; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }

/* ---------- Checkout & success pages ---------- */
.fb-page { padding: 170px 0 70px; background: #222222; min-height: 100vh; color: #fff; }
.fb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fb-back { color: #d1d5db; text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fb-back:hover { color: var(--fb-red); }
.fb-h1 { font-size: 34px; font-weight: 800; margin: 12px 0 26px; color: #fff; }
.fb-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; align-items: start; }
.fb-card { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.fb-card__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 19px; font-weight: 800; color: #fff; }
.fb-step { width: 30px; height: 30px; border-radius: 50%; background: var(--fb-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; font-weight: 800; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fb-grid .is-full { grid-column: 1 / -1; }
.fb-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fb-choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 14px; cursor: pointer; transition: all .15s; }
.fb-choice input { width: 18px; height: 18px; accent-color: var(--fb-red); margin: 0; }
.fb-choice:has(input:checked) { border-color: var(--fb-red); background: rgba(245, 34, 45, .12); box-shadow: 0 0 0 1px var(--fb-red); }
.fb-choice strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.fb-choice small { color: #d1d5db; font-size: 12px; font-weight: 600; margin-top: 2px; display: block; }
.fb-choice i { color: var(--fb-red); margin-right: 6px; }
.fb-terms { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: #d1d5db; cursor: pointer; }
.fb-terms input { margin-top: 3px; accent-color: var(--fb-red); width: 17px; height: 17px; }
.fb-summary { position: sticky; top: 20px; }
.fb-summary__list { max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.fb-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--fb-line); }
.fb-line__qty { color: var(--fb-red); font-weight: 800; margin-right: 6px; }
.fb-alert { background: rgba(245, 34, 45, .18); border: 1px solid rgba(245, 34, 45, .6); color: #ff858d; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; font-weight: 600; }

.fb-success { max-width: 620px; margin: 0 auto; background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: 22px; padding: 40px 32px; text-align: center; }
.fb-success__icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: rgba(61, 220, 132, .16); color: var(--fb-green); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.fb-success h1 { margin: 0 0 8px; font-size: 30px; color: #fff; }
.fb-success__no { margin: 22px 0; padding: 16px; background: var(--fb-surface-2); border: 1px dashed var(--fb-red); border-radius: 14px; }
.fb-success__no small { display: block; color: #d1d5db; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.fb-success__no b { font-size: 30px; color: var(--fb-red); }
.fb-kv { text-align: left; background: var(--fb-surface-2); border-radius: 14px; padding: 8px 16px; margin-bottom: 18px; }
.fb-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fb-line); }
.fb-kv div:last-child { border-bottom: 0; }
.fb-kv span { color: #d1d5db; }
.fb-kv strong { text-align: right; color: #fff; }
.fb-success__actions { display: grid; gap: 10px; margin-top: 22px; }

/* Product detail */
.fb-detail-buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 20px; }
.fb-detail-buy .fb-price-tag { font-size: 30px; }

@keyframes fb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
    70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .fb-shell, .fb-checkout { grid-template-columns: minmax(0, 1fr); }
    .fb-aside { display: none; }
    body.foodbooking-menu-page .fb-cart-bar { display: block; }
    .fb-summary { position: static; }
    .fb-page { padding-top: 120px; }
}
@media (max-width: 600px) {
    .fb-store { padding: 12px; }
    .fb-switch__btn small { display: none; }
    .fb-grid, .fb-choices { grid-template-columns: minmax(0, 1fr); }
    .fb-h1 { font-size: 26px; }
    .fb-card { padding: 18px; }
    .fb-success { padding: 28px 18px; }
    .food-modal__header, .food-modal__body, .food-modal__footer { padding-left: 16px; padding-right: 16px; }
}

/* Verified delivery address (checkout + map modal) */
.fb-address-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--fb-surface-2); border: 1px solid var(--fb-line); border-radius: 12px; }
.fb-address-box > i { color: var(--fb-red); font-size: 20px; flex-shrink: 0; }
.fb-address-box > div { flex: 1; min-width: 0; }
.fb-address-box strong { display: block; color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.fb-address-box small { display: block; color: #d1d5db; font-size: 12px; margin-top: 2px; }
.fb-link-change { color: #ff858d; font-weight: 700; font-size: 13px; text-decoration: underline; white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.fb-link-change:hover { color: #fff; }
.fb-address-suggest { position: relative; flex: 1; }
.fb-suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #2a2a2a; border: 1px solid var(--fb-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-height: 220px; overflow-y: auto; }
.fb-suggest-list li { padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 14px; cursor: pointer; }
.fb-suggest-list li:hover, .fb-suggest-list li[aria-selected="true"], .fb-suggest-list li.is-highlighted { background: rgba(245, 34, 45, .18); color: #ff858d; }
.fb-address-result { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(61, 220, 132, .12); color: var(--fb-green); border: 1px solid rgba(61, 220, 132, .35); }
