/* =========================================================================
   Customer menu, cart and checkout - design layer (loaded after custom.css)
   Keeps each restaurant's customization (colors set inline or through
   --menu-tab-active / --menu-accent); works in LTR and RTL.
   ========================================================================= */

:root {
    --mv-ink: #172b4d;
    --mv-muted: #6b778c;
    --mv-line: #e9ecf3;
    --mv-bg: #f5f6fa;
    --mv-card: #fff;
    --mv-radius: 14px;
    --mv-accent: var(--menu-accent, #2dce89);
}

/* ---------- page ---------- */
#restaurant-content { background: var(--mv-bg); }
#restaurant-content .container-restorant { max-width: 1140px; }

/* ---------- header ---------- */
@media (min-width: 992px) {
    .bannersec .section-profile-cover,
    .bannersec .section-profile-cover .bg-image { height: 300px !important; max-height: 300px; object-fit: cover; }
}
.bannersec .sqlogo img { border-radius: 18px; box-shadow: 0 6px 18px rgba(23,43,77,.18); background: #fff; }

/* ---------- search + category tabs ---------- */
#restaurant-content .menu-search__field input { border-radius: 999px; border-color: var(--mv-line); box-shadow: 0 1px 2px rgba(23,43,77,.04); }
#restaurant-content .menu-tabs {
    background: var(--mv-bg);              /* was see-through over the dishes */
    box-shadow: 0 6px 10px -8px rgba(23,43,77,.25);
    margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px;
}
#restaurant-content .menu-tab { font-size: 14px; font-weight: 600; }

/* ---------- category sections: flat, no box inside a box ---------- */
#accordionExample > .card {
    background: transparent; border: 0 !important; box-shadow: none !important;
    margin-bottom: 18px !important;
}
#accordionExample > .card > .card-header {
    background: transparent !important; border: 0; padding: 14px 2px 8px !important;
}
#accordionExample > .card > .card-header .title h1 {
    font-size: 20px !important; font-weight: 800; color: var(--mv-ink);
}
#accordionExample > .card .card-body { padding: 0 !important; }
#accordionExample > .card .card-body > .row { margin-left: -6px; margin-right: -6px; }
#accordionExample > .card .card-body > .row > [class*="col-"] { padding: 6px; margin: 0 !important; }

/* ---------- item card ---------- */
#accordionExample .strip {
    background: var(--mv-card); border: 1px solid var(--mv-line); border-radius: var(--mv-radius);
    box-shadow: 0 1px 3px rgba(23,43,77,.05); height: 100%; margin: 0 !important;
    padding: 12px !important; gap: 12px; transition: box-shadow .15s, transform .15s;
}
#accordionExample .strip:hover { box-shadow: 0 6px 16px rgba(23,43,77,.10); }
#accordionExample .strip figure { width: 96px !important; height: 96px !important; border-radius: 12px !important; }
#accordionExample .strip figure img { border-radius: 12px !important; }
#accordionExample .res_title, #accordionExample .res_title a { font-size: 15.5px !important; font-weight: 700; color: var(--mv-ink); line-height: 1.3; }
#accordionExample .res_description {
    color: var(--mv-muted) !important; font-size: 13px !important; line-height: 1.4; opacity: 1 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px !important;
}
#accordionExample .res_mimimum { font-size: 15px !important; font-weight: 800; margin-top: 6px !important; }
#accordionExample .price-lbp { font-size: 11.5px; opacity: .65; margin-top: 0; }
.item-add { width: 40px !important; height: 40px !important; box-shadow: 0 4px 10px rgba(45,206,137,.35); }

/* size / option chips: one line each, wrapping - no more full-screen pizzas */
#accordionExample .variant-chips,
#accordionExample .variant-chips--stacked { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; flex-direction: row !important; }
#accordionExample .variant-chip {
    display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; max-width: 100%;
    padding: 5px 10px !important; border-radius: 999px !important; font-size: 12.5px !important; line-height: 1.2;
    border: 1px solid var(--mv-line) !important; background: #f8f9fc !important; text-align: start;
}
#accordionExample .variant-chip__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#accordionExample .variant-chip__price { font-weight: 800; white-space: nowrap; }
#accordionExample .variant-chip .price-lbp--chip { display: none; }   /* LBP shows in the item popup */

/* ---------- floating buttons ---------- */
.callOutShoppingButtonBottom { display: none !important; }            /* replaced by the cart bar */
.scrollup { width: 40px !important; height: 40px !important; border-radius: 50% !important; line-height: 40px !important; opacity: .85; }
body.has-cart-bar .scrollup { bottom: 92px !important; }
body.has-cart-bar a.whatsapp { bottom: 92px !important; }

.menu-cart-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 1040;
    width: calc(100% - 32px); max-width: 520px; height: 58px; border: 0; border-radius: 16px;
    display: flex; align-items: center; gap: 12px; padding: 0 16px;
    background: var(--menu-tab-active, #5e72e4); color: #fff; box-shadow: 0 10px 24px rgba(23,43,77,.28);
    font-size: 16px; font-weight: 700; cursor: pointer;
}
.menu-cart-bar[hidden] { display: none; }
.menu-cart-bar__count {
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.22);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.menu-cart-bar__label { flex: 1 1 auto; text-align: start; }
.menu-cart-bar__total { white-space: nowrap; font-size: 15px; }
body.has-cart-bar #restaurant-content { padding-bottom: 90px; }

/* ---------- RTL details ---------- */
[dir="rtl"] #accordionExample .variant-chip { text-align: right; }
[dir="rtl"] .menu-cart-bar__label { text-align: right; }

/* chips: name and price on one line */
#accordionExample .variant-chip { flex-direction: row !important; flex-wrap: nowrap !important; min-height: 32px !important; }
#accordionExample .variant-chip__name, #accordionExample .variant-chip__price { font-size: 12.5px !important; }
/* many options: summary button */
.variant-summary {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--menu-tab-active, #5e72e4); background: transparent; color: var(--menu-tab-active, #5e72e4);
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.variant-summary::after { content: "›"; font-size: 16px; line-height: 1; }
[dir="rtl"] .variant-summary::after { content: "‹"; }
.variant-summary:hover { background: rgba(94,114,228,.08); }

/* ---------- item popup ---------- */
#productModal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
#productModal .modal-header { border: 0; padding: 16px 20px 6px; align-items: flex-start; }
#productModal .modal-title { font-size: 19px; font-weight: 800; color: var(--mv-ink); line-height: 1.3; }
#productModal .modal-header .close { padding: 4px 8px; margin: -4px -8px -4px auto; font-size: 28px; opacity: .5; }
[dir="rtl"] #productModal .modal-header .close { margin: -4px auto -4px -8px; }
#productModal .card { background: #fff !important; box-shadow: none !important; border-radius: 0; }
#productModal .card-body { padding: 8px 20px 20px !important; }
#productModal #modalImgPart { margin-bottom: 14px; }
#productModal #modalImg { width: 100% !important; height: 220px !important; object-fit: cover; border-radius: 14px; }
@media (min-width: 992px) { #productModal #modalImg { height: 300px !important; } }
#productModal #modalPrice { display: block; font-size: 18px; font-weight: 800; color: var(--mv-ink); margin-bottom: 6px; }
#productModal #modalDescription { color: var(--mv-muted); font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
#productModal .form-control-label { font-size: 13px; font-weight: 800; color: var(--mv-ink); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
#productModal #exrtas-area > br, #productModal .quantity-area br { display: none; }
#productModal #exrtas-area { margin-top: 14px; }

/* option buttons (size etc.) as pills */
#productModal #variants-area-inside > div > br { display: none; }
#productModal #variants-area-inside > div { margin-top: 12px; }
#productModal #variants-area-inside .btn-group-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
#productModal #variants-area-inside .btn-group-toggle .btn {
    flex: 0 0 auto; margin: 0 !important; border-radius: 999px !important; padding: 8px 16px;
    font-size: 14px; font-weight: 600; text-transform: none; box-shadow: none; transform: none;
}

/* extras as tappable rows */
#productModal .extra-row { padding: 0 !important; margin: 0 0 8px; min-height: 0; }
#productModal .extra-row .custom-control-label {
    display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;
    padding: 12px 14px 12px 44px; border: 1px solid var(--mv-line); border-radius: 12px; font-size: 14.5px; color: var(--mv-ink);
}
#productModal .extra-row .custom-control-label::before,
#productModal .extra-row .custom-control-label::after { left: 14px; top: 50%; transform: translateY(-50%); }
#productModal .extra-row .custom-control-input:checked ~ .custom-control-label { border-color: var(--menu-tab-active, #5e72e4); background: rgba(94,114,228,.06); }
.extra-row__name { flex: 1 1 auto; font-weight: 600; }
.extra-row__price { white-space: nowrap; font-size: 13px; color: var(--mv-muted); font-weight: 600; }
[dir="rtl"] #productModal .extra-row .custom-control-label { padding: 12px 44px 12px 14px; }
[dir="rtl"] #productModal .extra-row .custom-control-label::before,
[dir="rtl"] #productModal .extra-row .custom-control-label::after { left: auto; right: 14px; }

/* quantity stepper + add button */
#productModal .quantity-area { margin-top: 16px; }
#productModal .quantity-area .form-group { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
#productModal .quantity-area .form-group .form-control-label { margin: 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--mv-line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-stepper__btn { width: 42px; height: 42px; border: 0; background: #f4f5fa; font-size: 20px; font-weight: 700; color: var(--mv-ink); cursor: pointer; line-height: 1; }
.qty-stepper__btn:active { background: #e6e8f2; }
#productModal .qty-stepper #quantity {
    width: 52px; height: 42px; border: 0 !important; box-shadow: none !important; text-align: center; padding: 0;
    font-size: 16px; font-weight: 800; color: var(--mv-ink); -moz-appearance: textfield;
}
.qty-stepper #quantity::-webkit-outer-spin-button, .qty-stepper #quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#productModal .quantity-btn, #productModal #addToCart1 { width: 100%; }
.modal-add-btn {
    width: 100%; min-height: 52px; border-radius: 14px; display: flex !important; align-items: center; justify-content: space-between;
    gap: 10px; font-size: 16px; text-transform: none; padding: 0 18px;
    background: var(--menu-tab-active, #5e72e4) !important; border-color: var(--menu-tab-active, #5e72e4) !important;
}
.modal-add-btn__price { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.modal-add-btn__price:empty { display: none; }
.modal-add-btn:not(:has(.modal-add-btn__price:not(:empty))) { justify-content: center; }
@media (max-width: 575px) {
    #productModal .modal-dialog { margin: 0; min-height: 100%; align-items: flex-end; }
    #productModal .modal-content { border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; }
    #productModal .modal-header { position: sticky; top: 0; background: #fff; z-index: 2; }
}

/* ---------- side cart ---------- */
.mv-cart.sidenav-cart { padding-top: 0; background: #fff; box-shadow: -10px 0 30px rgba(23,43,77,.18); }
.mv-cart.sidenav-cart-open { display: flex !important; flex-direction: column; }
.mv-cart .offcanvas-menu-inner { padding: 0 !important; display: flex; flex-direction: column; height: 100%; }
.mv-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--mv-line); }
.mv-cart__head h4 { margin: 0; font-size: 19px; font-weight: 800; color: var(--mv-ink); }
.mv-cart__close { border: 0; background: #f4f5fa; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--mv-ink); cursor: pointer; }
.mv-cart .minicart-content { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.mv-cart .searchable-container { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.mv-cart #cartList { flex: 1 1 auto; max-height: none; overflow-y: auto; padding: 6px 20px; }
.mv-cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mv-line); }
.mv-cart-item:last-child { border-bottom: 0; }
.mv-cart-item__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 64px; background: #f4f5fa; }
.mv-cart-item__body { flex: 1 1 auto; min-width: 0; }
.mv-cart-item__name { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--mv-ink); line-height: 1.3; }
.mv-cart-item__price { margin: 2px 0 8px; font-size: 13px; color: var(--mv-muted); }
.mv-cart-item__actions { display: flex; align-items: center; justify-content: space-between; }
.mv-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--mv-line); border-radius: 999px; overflow: hidden; }
.mv-cart-qty button { width: 34px; height: 32px; border: 0; background: #f4f5fa; color: var(--mv-ink); font-size: 11px; cursor: pointer; }
.mv-cart-qty span { min-width: 34px; text-align: center; font-weight: 800; font-size: 14px; color: var(--mv-ink); }
.mv-cart-item__remove { border: 0; background: transparent; color: #c0c6d4; font-size: 15px; padding: 6px 8px; cursor: pointer; }
.mv-cart-item__remove:hover { color: #f5365c; }
.mv-cart #totalPrices { flex: 0 0 auto; }
.mv-cart__foot { padding: 16px 20px 20px; border-top: 1px solid var(--mv-line); box-shadow: 0 -8px 16px -12px rgba(23,43,77,.2); }
.mv-cart__total { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--mv-ink); font-weight: 700; }
.mv-cart__amounts { text-align: end; }
.mv-cart__amounts .ammount { font-size: 18px; font-weight: 800; display: block; }
.mv-cart__amounts .price-lbp { font-size: 12px; color: var(--mv-muted); font-weight: 600; }
.mv-cart a.mv-cart__checkout {
    display: block; min-height: 52px; line-height: 52px; padding: 0; border-radius: 14px; font-size: 16px; font-weight: 700;
    color: #fff !important; text-transform: none; background: var(--menu-tab-active, #5e72e4); border-color: var(--menu-tab-active, #5e72e4);
}
.mv-cart__continue { display: block; width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--mv-muted); font-weight: 600; font-size: 14px; padding: 8px; cursor: pointer; }
.mv-cart__continue:hover { color: var(--mv-ink); }
.mv-cart__empty { text-align: center; padding: 50px 20px; color: var(--mv-muted); }
.mv-cart__empty .fa { font-size: 40px; opacity: .35; margin-bottom: 12px; }
.mv-cart__empty .btn { text-transform: none; border-radius: 999px; }
[dir="rtl"] .mv-cart.sidenav-cart { right: auto; left: 0; box-shadow: 10px 0 30px rgba(23,43,77,.18); }

/* ---------- checkout ---------- */
.checkout-page .section.bg-secondary { background: var(--mv-bg) !important; }
.checkout-page .card-profile { border-radius: var(--mv-radius) !important; border: 1px solid var(--mv-line) !important; }
.checkout-page .card-profile.checkout-resto { background: #fff !important; margin-bottom: 10px !important; }
.checkout-resto__inner { display: flex; gap: 14px; align-items: center; padding: 16px; }
.checkout-resto__logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 52px; background: #f4f5fa; }
.checkout-resto__text { min-width: 0; }
.checkout-page .card-profile.restinfo .checkout-resto__name { font-size: 17px !important; font-weight: 800; color: var(--mv-ink) !important; margin: 0 0 3px; }
.checkout-page .card-profile.restinfo .checkout-resto__line { font-size: 12.5px !important; color: var(--mv-muted) !important; line-height: 1.5; }
.checkout-page .card-profile.restinfo .checkout-resto__line * { font-size: 12.5px !important; color: var(--mv-muted) !important; }
.checkout-resto__line .fa { width: 14px; text-align: center; opacity: .7; }
.checkout-page #cartList > .mv-cart-item { padding: 12px 0; }
.checkout-page .dine-type .custom-control { flex: 1 1 0 !important; min-width: 0 !important; }
.checkout-page .dine-type .custom-control-label { min-height: 46px !important; padding: 8px 6px !important; font-size: 13.5px !important; }
/* promo: field and button on one row */
.checkout-promo__row { display: flex; gap: 8px; align-items: stretch; }
.checkout-promo__field { position: relative; flex: 1 1 auto; min-width: 0; }
.checkout-promo__field #coupon_ok { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 12px; z-index: 2; }
.checkout-promo__row .btn { flex: 0 0 auto; margin: 0 !important; min-height: 46px; border-radius: 10px; text-transform: none; font-size: 14px; padding: 0 18px; }
.checkout-promo__note { display: block; margin-top: 8px; font-size: 12px; color: var(--mv-muted); }
.checkout-page .card-stats .ammount strong { font-size: 15px; }
.checkout-page .dine-type .custom-control { padding: 0 !important; }
.checkout-promo .mt-4 { margin-top: 0 !important; }
.checkout-page .section-profile-cover { height: 220px !important; max-height: 220px; overflow: hidden; }
.checkout-page .section-profile-cover .bg-image { height: 220px !important; object-fit: cover; }

/* ---------- register visit ---------- */
.visit-page { background: var(--mv-bg); min-height: 80vh; padding: 90px 16px 40px; }
.visit-card { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--mv-line); border-radius: 18px; padding: 22px 20px; box-shadow: 0 6px 20px rgba(23,43,77,.06); }
.visit-card__head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.visit-card__logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 56px; background: #f4f5fa; }
.visit-card__resto { font-size: 13px; font-weight: 600; color: var(--mv-muted); }
.visit-card__title { font-size: 21px; font-weight: 800; color: var(--mv-ink); margin: 0; line-height: 1.25; }
.visit-card__intro { font-size: 13.5px; color: var(--mv-muted); margin: 0 0 18px; line-height: 1.5; }
.visit-card__alert { border-radius: 12px; font-size: 13.5px; }
.visit-form .form-group { margin-bottom: 14px; }
.visit-form .form-control-label { font-size: 13px; font-weight: 700; color: var(--mv-ink); margin-bottom: 6px; display: block; }
.visit-req { color: #f5365c; }
.visit-form .form-control { width: 100%; min-height: 48px; border: 1px solid #dfe3eb; border-radius: 12px; box-shadow: none; font-size: 15px; color: var(--mv-ink); padding: 10px 14px; }
.visit-form textarea.form-control { min-height: 88px; }
.visit-form .form-control:focus { border-color: var(--menu-tab-active, #5e72e4); }
.visit-form select.form-control { appearance: auto; }
.visit-form .select2-container { width: 100% !important; }
.visit-form .select2-container .select2-selection--single { height: 48px; border: 1px solid #dfe3eb; border-radius: 12px; }
.visit-form .select2-container .select2-selection__rendered { line-height: 46px !important; padding: 0 14px !important; margin: 0 !important; color: var(--mv-ink) !important; }
.visit-form .select2-container .select2-selection--single { padding: 0 !important; }
.visit-form .select2-container .select2-selection__arrow { height: 46px; }
[dir="rtl"] .visit-form input[dir="ltr"] { text-align: right; }
.visit-form__submit { width: 100%; min-height: 52px; border-radius: 14px; font-size: 16px; text-transform: none; margin-top: 6px;
    background: var(--menu-tab-active, #5e72e4) !important; border-color: var(--menu-tab-active, #5e72e4) !important; }
.visit-form__back { display: block; text-align: center; margin-top: 12px; color: var(--mv-muted); font-weight: 600; font-size: 14px; }
.visit-form__back:hover { color: var(--mv-ink); }
.visit-form .select2-container.form-control { padding: 0 !important; border: 0 !important; min-height: 0; height: auto; }
.visit-form .visit-form__submit { margin: 6px 0 0 !important; }
.visit-card__lang { display: flex; justify-content: flex-end; margin: -6px -4px 6px; }
.visit-form .select2-container .select2-selection--single { border: 1px solid #dfe3eb !important; border-radius: 12px !important; height: 48px !important; background: #fff !important; }
