
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    font-family: "Rubik", sans-serif;
}
html {
  font-size: 16px !important;
}

.modal-deals .modal-header button.back-to-main,
.modal-deals .modal-header button.back-to-selection,
.modal-deals .modal-header button.back-to-main-deal-hh {
  background-color: #fff;
  color: #3498db;
}
.modal-deals .modal-header button.back-to-main:hover,
.modal-deals .modal-header button.back-to-selection:hover,
.modal-deals .modal-header button.back-to-main-deal-hh:hover {
  background-color: #3498db;
  color: #fff;
}

.modal-deals .modal-body .auto-deal-selection button.deal-selection-item,
.modal-deals .modal-body .deal-modal-body-selection-list button.upgrade-to-hh {
  background-color: #fff;
  color: #3498db;
}
.modal-deals .modal-body .auto-deal-selection button.deal-selection-item:hover,
.modal-deals .modal-body .deal-modal-body-selection-list button.upgrade-to-hh:hover {
  background-color: #3498db;
  color: #fff;
}

.modal-deals .modal-footer button.deal-modal-footer-add,
.modal-deals .modal-footer button.deal-modal-footer-next,
.modal-deals .modal-footer button.deal-hh-modal-footer-next {
  background-color: #3498db;
}
.modal-deals .modal-footer button.deal-modal-footer-add:hover,
.modal-deals .modal-footer button.deal-modal-footer-next:hover,
.modal-deals .modal-footer button.deal-hh-modal-footer-next:hover {
  background-color: #0f66b4;
}

.modal-deals .deal-modal-body-customize input:checked + .input-group-label,
.modal-deals .deal-modal-body-hh input:checked + .input-group-label {
  background-color: #3498db !important;
  border-color: #3498db;
  color: #fff;
}

/* .sub-item is what deals_popup_js.php slideUp/slideDown("fast") animates
   (height from/to 0). Any min-height floors that animation: style.css gives
   it min-height:100px, so a panel popped open to 100px and only the rest
   slid. min-height:0 lets the whole panel slide; min-width is the original
   rule here (min-height:fit-content, an earlier edit, pinned it fully open). */
.modal-deals .deal-modal-body-customize .accordion .sub-item {
  min-width: fit-content;
  min-height: 0;
}

.modal-deals .deal-selection-items:has(.glyphicon-ok) {
  border-color: #c9e7d7;
  background: #e6f4ec;
}
.modal-deals .deal-selection-items:has(.glyphicon-ok) .deal-selection-icon {
  background-color: #12865a;
  color: #fff;
}


@media screen and (min-width: 480px) and (max-width: 993px) {
    #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer {
        padding-bottom:16PX !important;
    }
}

#menu-items .modal-hh #modal-header-hh #back-to-main,
#menu-items ul li #item-buttons .modal-hh #modal-header-hh button {
  background-color: #fff;
  color: #3498db;
}
#menu-items .modal-hh #modal-header-hh #back-to-main:hover{
  background-color: #3498db;
  color: #fff;
}

#menu-items .modal-hh #modal-header-hh .change-half,
.modal-deals .modal-header button.back-to-pizza-deal-hh {
  border : 1px solid #3498db !important;
  background-color: #fff !important;
  color: #3498db !important;
  padding: 5px 10px !important;
}

.modal-hh .hh-first:has(.glyphicon-ok),
.modal-hh .hh-second:has(.glyphicon-ok) {
  border-color: #c9e7d7;
  background: #e6f4ec;
}
.modal-hh .hh-first:has(.glyphicon-ok) .hh-first-icon,
.modal-hh .hh-second:has(.glyphicon-ok) .hh-second-icon {
  background-color: #12865a;
  color: #fff;
}

@media screen and (min-width: 481px) and (max-width: 992px) {
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .qty-selection,
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .customise-add-button,
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .popup-item-price,
  #menu-items div[id^="add-popup-"].modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons .add-button {
    position: static !important;
  }
}

@media screen and (min-width: 481px) and (max-width: 992px) {
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
  }
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons > .col-md-3:first-child,
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons > .col-md-3:last-child {
    width: 50% !important;
  }
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons .qty-selection,
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons .popup-item-price {
    width: 100% !important;
  }
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons > .col-md-6 {
    order: 3 !important;
    width: 100% !important;
  }
}

@media screen and (min-width: 992px) {
  #menu-items .modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons > .col-md-3:last-child {
    width: 20% !important;
  }

  #menu-items div[id^="add-popup-"].modal-popup:not(.modal-deals):not(.modal-hh) .modal-footer .item-add-buttons .add-button {
    position: static !important;
  }
}

.modal-hh input:checked + .input-group-label{
  background-color: #3498db !important;
  border-color: #3498db;
}

/* --- backdrop and modal appear together ---------------------------------- *
 * Bootstrap 3.3.5 shows a modal in two steps: it adds the backdrop with .in,
 * waits for the backdrop's transitionend (or a 150ms fallback), and only
 * then shows the modal and gives it .in. So the backdrop was always seen
 * first. Two parts fix that:
 *  1. The backdrop is held at opacity 0 while no modal has .in, so it
 *     becomes visible in the same frame as the modal and fades with it
 *     (same 0.1s as .modal.fade at the end of this file). On close the
 *     modal loses .in first, so the backdrop fades out with it as well.
 *  2. Bootstrap's wait is cut short: a throwaway 1ms outline-offset
 *     transition on .in fires transitionend almost at once, so the modal is
 *     shown right after the click instead of after the 150ms fallback. The
 *     backdrop has no outline, so nothing visible changes.               */
.modal-backdrop.fade {
  outline-offset: 0;
  transition: opacity .1s ease-in-out, outline-offset 1ms !important;
}
.modal-backdrop.fade.in {
  outline-offset: 1px;
}
/* .modal-backdrop repeated so this outranks the menu-modal blur rule below,
   which also sets opacity with !important. */
body:not(:has(.modal.in)) > .modal-backdrop.modal-backdrop.fade.in {
  opacity: 0 !important;
}
/* Blurred backdrop for the menu modals. Not keyed on the modal's own
   .in / aria-hidden: Bootstrap 3.3.5 adds the backdrop (with .in) ~150ms
   before it marks the modal .in, and on close drops the modal's .in first and
   the backdrop's last. Keyed on the modal state, the default black .5
   backdrop flashed in both gaps. Keyed on a menu modal being on the page,
   the backdrop is blurred for its whole life instead.
   The blur is not keyed on the backdrop's .in either: Bootstrap drops it while
   the backdrop can still be fully opaque, and the default #000 then showed
   as a black flash during the fade-out. Only the opacity follows .in.       */
body:has(.modal.modal-popup[id^="add-popup-"]) > .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
body:has(.modal.modal-popup[id^="add-popup-"]) > .modal-backdrop.in {
  opacity: 1 !important;
}
.modal-content {
  box-shadow : none !important;
}

@media screen and (min-width: 480px) and (max-width: 993px) {
    #menu-items .modal-hh .modal-footer,
    #menu-items .modal-deals .modal-footer {
      padding-bottom: 16px !important;
    }
  }

/* label.input-group-label:has(img.check-img-popup[style*="visibility: visible"]) {
  border-color: #3498db;
} */

.mp-bg-white { background-color: #ffffff; }
.mp-bg-green { background-color: #e6f4ec; }
.mp-bg-slate-50 { background-color: #f8fafc; }
.mp-bg-slate-100 { background-color: #f1f5f9; }
.mp-bg-f1f1f1 { background-color: #f1f1f1; }
.mp-bg-1177d1 { background-color: #3498db; }
.mp-hover-bg-1177d1:hover { background-color: #3498db; }
.mp-hover-bg-0f66b4:hover { background-color: #0f66b4; }
.mp-hover-bg-slate-50:hover { background-color: #f8fafc; }
.mp-hover-bg-slate-200:hover { background-color: #e2e8f0; }
.mp-hover-bg-white:hover { background-color: #ffffff; }
/* .mp-group:hover .mp-group-hover-bg-1177d1 { background-color: #3498db; } */

.mp-text-white { color: #ffffff; }
.mp-text-slate-400 { color: #94a3b8; }
.mp-text-slate-500 { color: #64748b; }
.mp-text-slate-700 { color: #334155; }
.mp-text-slate-900 { color: #0f172a; }
.mp-text-red-400 { color: #f87171; }
.mp-text-1177d1 { color: #3498db; }
.mp-text-414958 { color: #414958; }
.mp-text-12865a { color: #12865a; }
.mp-hover-text-white:hover { color: #ffffff; }
/* .mp-group:hover .mp-group-hover-text-white { color: #ffffff; } */

.mp-border-slate-200 { border-color: #e2e8f0; }
.mp-border-slate-300 { border-color: #cbd5e1; }
.mp-border-1177d1 { border-color: #3498db; }
.mp-hover-border-slate-200:hover { border-color: #e2e8f0; }

.modal-deals .deal-selection span.deal-selection-icon,
.modal-deals .auto-deal-selection span.deal-selection-icon,
.modal-deals .deal-modal-body-customize span.deal-selection-icon
{
  top: 50% !important;
  transform: translateY(-50%);
}

#menu-items .modal-hh .modal-body #modal-body-hh ul#first-current-toppings-list-ul li,
#menu-items .modal-hh .modal-body #modal-body-hh ul#second-current-toppings-list-ul li {
  padding: 0px 0 !important;
}

.condiment-price.first-condiment-price,
.condiment-price.second-condiment-price {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --- item-modal extras accordion chevron -------------------------------- *
 * a.item:before in all.css paints a PNG triangle here (get_popup_toppings.php
 * never renders its own icon element). Repainted with the same Glyphicons
 * Halflings glyph the half-half/deal accordion uses via an actual
 * <span class="glyphicon glyphicon-chevron-down">, so both read the same.
 * Same selector chain as the all.css rule (which carries no !important), so
 * matching specificity + later source order is enough to win - no !important
 * needed. The existing li.open rotate rule already flips whatever :before
 * content sits here, untouched. */
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion li a.item:before {
  background: none;
  border: none;
  width: auto;
  height: auto;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  content: "\e114";
  color: #555;
  font-size: 12px;
  line-height: 1;
  transition: transform .2s ease;
}

.modal-deals .deal-modal-body-customize .accordion li div.item span {
  transition: transform .2s ease;
}
.modal-deals .deal-modal-body-customize .accordion li.open div.item span {
  transform: translateY(-50%) rotate(180deg);
}

/* --- whole topping row clickable ---------------------------------------- *
 * get_popup_toppings.php makes only the <label> a hit target: the li's own
 * padding and the trailing .condiment-price sit outside it, so clicking the
 * row's edge or its price does nothing. The label gets a stretched ::after
 * covering the whole li, which is still part of the label - clicking it
 * activates the label and toggles its checkbox, so the existing
 * .extra-toppings-checkbox change handler (api/setmenuitems.php:602) fires
 * exactly as before. No JS and no markup touched.
 * The price span is a later sibling, so it would paint over the overlay and
 * swallow clicks; it is not interactive, so pointer-events is disabled on it. */
#menu-items .modal-popup li:has(> label.extra-toppings-selection),
#menu-items .modal-popup li:has(> label.current-toppings-selection) {
  position: relative !important;
}
#menu-items .modal-popup li > label.extra-toppings-selection::after,
#menu-items .modal-popup li > label.current-toppings-selection::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}
#menu-items .modal-popup li:has(> label.extra-toppings-selection) > .condiment-price {
  pointer-events: none !important;
}

/* --- same, for the deal and half/half topping rows ----------------------- *
 * Deal rows come from get_extra_toppings_popup_deals.php (current-deal-topping
 * / extra-deal-topping) and the shared half-half + deal-hh panel from
 * get_extra_toppings_popup.php (current-hh-topping / extra-hh-topping and
 * their current-deal-hh-* / extra-deal-hh-* variants). Same stretched-label
 * overlay: the click still lands on the label, so the existing handlers
 * (deals_popup_js.php .deal_add_extra, browse_js.php .add_extra) are
 * unchanged.                                                               */
#menu-items li:has(> label.current-deal-topping),
#menu-items li:has(> label.extra-deal-topping),
#menu-items li:has(> label.current-hh-topping),
#menu-items li:has(> label.extra-hh-topping),
#menu-items li:has(> label.current-deal-hh-topping),
#menu-items li:has(> label.extra-deal-hh-topping) {
  position: relative !important;
}
#menu-items li > label.current-deal-topping::after,
#menu-items li > label.extra-deal-topping::after,
#menu-items li > label.current-hh-topping::after,
#menu-items li > label.extra-hh-topping::after,
#menu-items li > label.current-deal-hh-topping::after,
#menu-items li > label.extra-deal-hh-topping::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}
/* the trailing price is a sibling of the label and not interactive */
#menu-items li:has(> label.extra-deal-topping) > .condiment-price,
#menu-items li:has(> label.extra-hh-topping) > .condiment-price,
#menu-items li:has(> label.extra-deal-hh-topping) > .condiment-price {
  pointer-events: none !important;
}
/* 
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li > a.item {
  display: block !important;
  margin: -8px !important;
  padding: 8px 8px 8px 8px !important;
} */

/* --- incomplete-section highlight in the deal modal --------------------- */
.modal-deals p[id^="deal-selection-"][style*="231, 76, 60"],
.modal-deals p[id^="deal-selection-"][style*="231,76,60"] {
  background-color: #ffe4e6 !important;
}

/* --- multi item-option group header in the item modal -------------------- */
#menu-items .modal-popup .multi-option-name {
  /* background-color: #f8fafc; */
  border-radius: 16px !important;
}

/* Incomplete-section highlight. api/setmenuitems.php:794 */
#menu-items .modal-popup .multi-option-select[style*="solid red"],
#menu-items .modal-popup .multi-option-select[style*="solid rgb(255, 0, 0)"],
#menu-items .modal-popup .multi-option-select[style*="solid rgb(255,0,0)"] {
  border: none !important;
  padding: 0 !important;
}
/* #menu-items .modal-popup .multi-option-select[style*="solid red"] .multi-option-name,
#menu-items .modal-popup .multi-option-select[style*="solid rgb(255, 0, 0)"] .multi-option-name,
#menu-items .modal-popup .multi-option-select[style*="solid rgb(255,0,0)"] .multi-option-name {
  background-color: #ffe4e6;
} */

/* --- "You have reached the extras limit of N" banner --------------------- */
#menu-items .modal-popup #toppings_left {
  background-color: #ffe4e6;
  border-color: #fecdd3;
  color: #be123c;
  border-radius: 12px !important;
}

/* --- empty "Current Toppings" box --------------------------------------- */
#menu-items div[id^="current-toppings-list-deals-"]:not(:has(> ul > li)),
#menu-items div[id$="-current-toppings-list"]:not(:has(> ul > li)) {
  display: none !important;
}
/* the heading: matched only when it precedes one of those boxes, then
   excluded when that box does have rows */
#menu-items p:has(+ div[id^="current-toppings-list-deals-"]):not(:has(+ div[id^="current-toppings-list-deals-"] > ul > li)),
#menu-items p:has(+ div[id$="-current-toppings-list"]):not(:has(+ div[id$="-current-toppings-list"] > ul > li)) {
  display: none !important;
}
/* restore the radius the broken token above swallowed */
#menu-items div[id^="current-toppings-list-deals-"] {
  border-radius: 12px;
}



.menu-item-option.menu-item-option-popup {
  border: none !important;
  row-gap: 10px;
  display: flex;
  width: 100% !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
  /* margin-bottom: 0px !important;
  padding-bottom: 0px !important; */
}

#menu-items .modal-popup .modal-body .menu-item-option .input-group-label {
  padding: 8px 16px;
  font-size: 14px;
  width: 100%;
  margin: 0 !important;
}
.item-option-radio.item-option-radio-menu.row {
  border-top : none !important;
}
/* --- WEB-573 divider lines in the item modal ---------------------------- *
 * api/setmenuitems.php writes a "1px solid #00000038" border-top inline on
 * whichever of these sections follows a non-empty one. It used to be set
 * with setProperty's important flag, which no stylesheet can beat - inline
 * declarations carry a specificity above any selector - so that flag was
 * dropped at the source. It is now a normal inline declaration, which an
 * !important rule here overrides, while the divider still renders untouched
 * when modern_platina is off and this file never loads.
 * The modal separates these sections with its own spacing and rounded
 * blocks, so the hairlines are redundant.                                  */
/* #menu-items .modal-popup .item-option-radio-menu,
#menu-items .modal-popup .popup-current-toppings,
#menu-items .modal-popup #extra-toppings,
#menu-items .modal-popup .upsell-header {
  border-top: none !important;
} */

/* No .tw-mb-2 in the selector on purpose: the server renders these pills with
   it, but item_option_list() in api/setmenuitems.php:319 rebuilds them without
   it when a size is picked, so keying on it makes the rule vanish on rebuild. */
.input-group-radio.item-option-input-group.col-sm-6{
  width: 50% !important;
  margin-bottom: 0.5rem;
}

/* --- option pill gutters ------------------------------------------------ *
 * The two columns are spaced by inline padding written per item:
 * "padding-right:15px; padding-left:0px" on the first, mirrored on the
 * second, so the gap between them is a 30px total. Halved to 7.5px a side
 * for a 15px gutter. Keyed off the inline value because the padding is
 * generated per item, and matched in both the authored form and the
 * space-separated form a browser re-serialises to if JS touches the style. */
.input-group-radio.item-option-input-group.col-sm-6[style*="padding-right:15px"],
.input-group-radio.item-option-input-group.col-sm-6[style*="padding-right: 15px"] {
  padding-right: 7.5px !important;
}
.input-group-radio.item-option-input-group.col-sm-6[style*="padding-left:15px"],
.input-group-radio.item-option-input-group.col-sm-6[style*="padding-left: 15px"] {
  padding-left: 7.5px !important;
}

.check-img-popup {
  width: 20px !important;
  margin-top: 0px !important;
  margin-left: 5px !important;
}

.popup-current-toppings #current-toppings,
.popup-extra-toppings #extra-toppings {
  padding : 0px !important;
  margin-top: 15px !important
}
.modal-deals .modal-body .deal-modal-body-customize .deal-options,
.modal-deals .modal-body .deal-modal-body-hh .deal-hh-option,
.modal-deals .modal-body .deal-modal-body-hh .deal-hh-pizza {
  /* padding: 0px !important; */
  background-color: unset !important;
}

.current-toppings .current-toppings-list {
  padding: 8px !important;
}

.hh-pizza.tw-mb-3.tw-p-4 {
  background-color: unset;
}
.modal-deals .deal-modal-body-customize .accordion .sub-item ul li:hover{
  background-color : unset;
}
.input-group-label:hover  {
  background-color: unset;
}

#modal-body-main .h-size,
#modal-body-main .hh-size,
#modal-body-main .hh-option,
#modal-body-main .hh-pizza {
  background-color : unset;
}

.mp-bg-unset {
  background-color: unset !important;
}

#menu-items .modal-popup .modal-body .menu-item-option .input-group-label {
  background-color: unset;
}

.mp-border-grey {
  border: 1px solid rgba(0, 0, 0, 0.1) 
}

.mp-color-dark-red {
    color: #991b1b !important;
}

.mp-bg-red {
  background-color: #fecdd3;
}
/* --- item-modal extras accordion chevron -------------------------------- */
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion li a.item:before {
  background: none;
  border: none;
  width: auto;
  height: auto;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  content: "\e114";
  color: #555;
  font-size: 12px;
  line-height: 1;
  transition: transform .2s ease;
}
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion li {
  padding: 10px 0 px !important;
}

.mp-py-8px {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.mp-my-12px {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}
.mp-p-8px {
  padding :8px !important;
}

.mp-m-12px {
  margin: 12px !important;
}

.mp-color-dark-blue {
    color: #1e3a8a !important;
}

.mp-bg-blue {
  background-color: #dbeafe;
}

.modal-deals .deal-modal-body-customize .accordion .sub-item ul li,
.modal-deals .deal-modal-body-customize .current-toppings-list-ul-deals .current-deal-topping .current-deal-topping-desc, 
.modal-deals .deal-modal-body-customize .accordion .sub-item .extra-deal-topping .extra-deal-topping-desc,
#menu-items,
#menu-items .modal-hh .modal-body #modal-body-hh ul#first-current-toppings-list-ul .current-hh-topping .current-hh-topping-desc,
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion li ul li,
.popup-current-toppings {
  font-size: 14px;
}

@media only screen and (max-width: 480px) {
  .input-group-radio.item-option-input-group.col-sm-6 {
    width: 100% !important;
  }

  .input-group-radio.item-option-input-group.col-sm-6[style*="padding-left:15px"], .input-group-radio.item-option-input-group.col-sm-6[style*="padding-left: 15px"] {
    padding-left: 0 !important;
  }

  .input-group-radio.item-option-input-group.col-sm-6[style*="padding-right:15px"], .input-group-radio.item-option-input-group.col-sm-6[style*="padding-right: 15px"] {
    padding-right: 0 !important;
  }
  .mb-mp-bg-slate-100 {
    background-color: #f1f5f9 !important;
  }

}

@media only screen and (min-width: 768px) { 
  .hover-options:hover {
    box-shadow: 0 3px 20px rgba(20, 30, 45, 0.10);
    transition: all 0.2s ease;
  }

  .hover-current-topping:hover {
    background-color: #d5eadb !important;
  }

  .hover-extras-topping:hover {
    background-color: #e3e8f0 !important;
  }

}

/* Suppress the red required-option highlight that JS applies inline (border + padding) */
[class*="deal-item-option-container-"][style*="rgb(220, 53, 69)"] {
  border: none !important;
  padding: 5px 0 !important;
}

[class*="item-option-per-hh-container-"][style*="rgb(220, 53, 69)"] {
  border: none !important;
  padding: 0 !important;
}


/* --- toppings loader: spinner -> skeleton -------------------------------- *
 * Every toppings/options loader in the item, deal and half/half modals is
 * the same markup: <div class="lds-ring"><div></div><div></div><div></div></div>
 * (class.MenuItems.php .popup-condiments, class.Deals.php modal-body + the
 * deal-hh-first/second-selection panels, class.HalfHalf.php hh-pizza-container
 * + hh-first/hh-second). The JS (api/setmenuitems.php, core/browse_js.php,
 * core/ajax/deals_popup_js.php) only .show()s/.hide()s it, so display is left
 * to it. Restyled, without markup changes, into a skeleton of the loaded
 * toppings panel:
 *   ring::before  title + description lines
 *   div 1         "Current toppings | Add or remove" header
 *   div 2         current-toppings box with 4 checkbox rows
 *   div 3         "Extras | Choose up to" header, ::after = accordion rows
 *   ring::after   one light sweep across all of it
 * Rows are painted with repeat-y gradient tiles (38px / 50px per row).
 * Every shape is the one slate grey (#e2e8f0); boxes carry no fill of
 * their own so the rows inside them stay visible.
 * !important throughout so the base .lds-ring spinner in all.css can never
 * win, whatever the surrounding modal markup.                              */
.modal-popup .popup-condiments > .lds-ring,
.modal-deals .modal-body .lds-ring,
.modal-hh .modal-body .lds-ring,
[id^="deal-hh-first-selection-"] > .lds-ring,
[id^="deal-hh-second-selection-"] > .lds-ring {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  height: auto !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 24px 0 8px !important;
}
.modal-popup .popup-condiments > .lds-ring::before,
.modal-deals .modal-body .lds-ring::before,
.modal-hh .modal-body .lds-ring::before,
[id^="deal-hh-first-selection-"] > .lds-ring::before,
[id^="deal-hh-second-selection-"] > .lds-ring::before {
  content: "" !important;
  display: block !important;
  height: 40px !important;
  margin-bottom: 24px !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 45% 18px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 0 28px / 75% 12px no-repeat !important;
}
.modal-popup .popup-condiments > .lds-ring > div,
.modal-deals .modal-body .lds-ring > div,
.modal-hh .modal-body .lds-ring > div,
[id^="deal-hh-first-selection-"] > .lds-ring > div,
[id^="deal-hh-second-selection-"] > .lds-ring > div {
  position: relative !important;
  width: 100% !important;
  height: 12px !important;
  margin: 0 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  animation: none !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 30% 12px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 0 / 38% 12px no-repeat !important;
}
/* div 2: current-toppings box, checkbox square + label bar per 38px row */
.modal-popup .popup-condiments > .lds-ring > div:nth-child(2),
.modal-deals .modal-body .lds-ring > div:nth-child(2),
.modal-hh .modal-body .lds-ring > div:nth-child(2),
[id^="deal-hh-first-selection-"] > .lds-ring > div:nth-child(2),
[id^="deal-hh-second-selection-"] > .lds-ring > div:nth-child(2) {
  height: 166px !important;
  margin-bottom: 20px !important;
  border-radius: 12px !important;
  background:
    linear-gradient(to bottom, transparent 0 7px, #e2e8f0 7px 31px, transparent 31px 38px) 20px 7px / 24px 38px repeat-y,
    linear-gradient(to bottom, transparent 0 7px, #e2e8f0 7px 31px, transparent 31px 38px) 58px 7px / 32% 38px repeat-y !important;
}
/* div 3: extras header, then the accordion rows drawn by its ::after */
.modal-popup .popup-condiments > .lds-ring > div:nth-child(3),
.modal-deals .modal-body .lds-ring > div:nth-child(3),
.modal-hh .modal-body .lds-ring > div:nth-child(3),
[id^="deal-hh-first-selection-"] > .lds-ring > div:nth-child(3),
[id^="deal-hh-second-selection-"] > .lds-ring > div:nth-child(3) {
  height: 124px !important;
  margin-bottom: 0 !important;
}
.modal-popup .popup-condiments > .lds-ring > div:nth-child(3)::after,
.modal-deals .modal-body .lds-ring > div:nth-child(3)::after,
.modal-hh .modal-body .lds-ring > div:nth-child(3)::after,
[id^="deal-hh-first-selection-"] > .lds-ring > div:nth-child(3)::after,
[id^="deal-hh-second-selection-"] > .lds-ring > div:nth-child(3)::after {
  content: "" !important;
  position: absolute !important;
  top: 24px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  border-radius: 12px !important;
  background:
    linear-gradient(to bottom, transparent 0 13px, #e2e8f0 13px 37px, transparent 37px 50px) 20px 0 / 25% 50px repeat-y,
    linear-gradient(to bottom, transparent 0 18px, #e2e8f0 18px 32px, transparent 32px 50px) calc(100% - 20px) 0 / 14px 50px repeat-y !important;
}
.modal-popup .popup-condiments > .lds-ring::after,
.modal-deals .modal-body .lds-ring::after,
.modal-hh .modal-body .lds-ring::after,
[id^="deal-hh-first-selection-"] > .lds-ring::after,
[id^="deal-hh-second-selection-"] > .lds-ring::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%) !important;
  transform: translateX(-100%);
  animation: mp-skeleton-sweep 1.4s ease-in-out infinite !important;
}
@keyframes mp-skeleton-sweep {
  100% { transform: translateX(100%); }
}

/* --- deal customise loader: item-option skeleton ------------------------ *
 * The ring that sits directly in the deal .modal-body (class.Deals.php,
 * shown by deals_popup_js.php while get_extra_toppings_popup_deals.php
 * loads) precedes a different panel: item card, item-option groups with a
 * "Required" pill and 2-column option pills, then current-topping rows.
 * Same parts as the skeleton above, re-laid out; every property the rules
 * above set is restated so this one wins on source order.
 *   ring::before  item card: title + 2 description lines
 *   div 1         "Item option" label, group name + "Required" pill
 *   div 2         2 x 2 option pills (56px rows)
 *   div 3         "Current toppings" label, ::after = 4 checkbox rows      */
.modal-deals .modal-body > .lds-ring {
  padding: 20px 0 8px !important;
}
.modal-deals .modal-body > .lds-ring::before {
  height: 96px !important;
  margin-bottom: 20px !important;
  border-radius: 12px !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 16px 18px / 40% 16px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 16px 46px / 80% 11px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 16px 66px / 55% 11px no-repeat !important;
}
.modal-deals .modal-body > .lds-ring > div:nth-child(1) {
  height: 40px !important;
  margin-bottom: 12px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 24% 11px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 0 26px / 16% 12px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 24px / 34% 16px no-repeat !important;
}
.modal-deals .modal-body > .lds-ring > div:nth-child(2) {
  height: 96px !important;
  margin-bottom: 20px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(to bottom, #e2e8f0 0 40px, transparent 40px 56px) 0 0 / 48% 56px repeat-y,
    linear-gradient(to bottom, #e2e8f0 0 40px, transparent 40px 56px) 100% 0 / 48% 56px repeat-y !important;
}
.modal-deals .modal-body > .lds-ring > div:nth-child(3) {
  height: 176px !important;
  margin-bottom: 0 !important;
  background: linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 30% 11px no-repeat !important;
}
.modal-deals .modal-body > .lds-ring > div:nth-child(3)::after {
  top: 24px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(to bottom, transparent 0 7px, #e2e8f0 7px 31px, transparent 31px 38px) 0 0 / 24px 38px repeat-y,
    linear-gradient(to bottom, transparent 0 7px, #e2e8f0 7px 31px, transparent 31px 38px) 36px 0 / 30% 38px repeat-y !important;
}

/* --- item-options-only popup: fake skeleton on open ---------------------- *
 * class.MenuItems.php renders this popup (Allow Addition off, item options
 * on; marker .item-option-only) fully server-side, so nothing loads and
 * there is no .lds-ring. For consistency with the other popups a skeleton
 * overlay is shown for ~0.6s each time Bootstrap adds .in on open, then
 * fades out to the real options already underneath. CSS only: the
 * animation restarts whenever .in is re-added; pointer-events are off so a
 * fast tap still reaches the options.
 *   ::before  skeleton: 2 option groups (name + "Required" pill + 2-col pills)
 *   ::after   the same light sweep as the toppings skeleton               */
.modal-popup.in .modal-body:has(> .item-option-only) {
  position: relative !important;
}
.modal-popup.in .modal-body:has(> .item-option-only)::before,
.modal-popup.in .modal-body:has(> .item-option-only)::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  pointer-events: none !important;
}
.modal-popup.in .modal-body:has(> .item-option-only)::before {
  z-index: 2 !important;
  padding: 20px 24px !important;
  background-origin: content-box !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 22% 13px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 0 / 34% 18px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 0 30px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 30px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 0 94px / 22% 13px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 92px / 42% 18px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 0 124px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 124px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 0 180px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 180px / 48% 40px no-repeat content-box,
    linear-gradient(#e2e8f0, #e2e8f0) 0 236px / 48% 40px no-repeat content-box,
    #f6f6f6 !important;
  animation: mp-fake-skeleton-out .6s ease forwards !important;
}
/* The sweep moves its gradient (background-position) instead of the box
   (transform): .modal-body scrolls, so a translated pseudo-element widened
   its scrollable area and showed a horizontal scrollbar, even after fading
   out (visibility:hidden still takes part in layout). */
.modal-popup.in .modal-body:has(> .item-option-only)::after {
  z-index: 3 !important;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%) no-repeat !important;
  background-size: 50% 100% !important;
  animation: mp-skeleton-sweep-bg 1.4s ease-in-out infinite, mp-fake-skeleton-out .6s ease forwards !important;
}
@keyframes mp-skeleton-sweep-bg {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes mp-fake-skeleton-out {
  0%, 75% { opacity: 1; visibility: visible; }
  100%    { opacity: 0; visibility: hidden; }
}

/* --- small screens: option-pill skeletons in one column ------------------ *
 * At <=480px the real option pills go full width (the .col-sm-6 rule in the
 * max-width:480px block above), so the 2-column pill rows of the deal
 * customise skeleton and the item-options-only skeleton are redrawn as one
 * full-width pill per row, same 56px row pitch (40px pill + 16px gap).       */
@media only screen and (max-width: 480px) {
  .modal-deals .modal-body > .lds-ring > div:nth-child(2) {
    height: 208px !important;
    background:
      linear-gradient(to bottom, #e2e8f0 0 40px, transparent 40px 56px) 0 0 / 100% 56px repeat-y !important;
  }
  .modal-popup.in .modal-body:has(> .item-option-only)::before {
    background:
      linear-gradient(#e2e8f0, #e2e8f0) 0 0 / 22% 13px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 100% 0 / 34% 18px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 30px / 100% 40px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 86px / 100% 40px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 150px / 22% 13px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 100% 148px / 42% 18px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 180px / 100% 40px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 236px / 100% 40px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 292px / 100% 40px no-repeat content-box,
      linear-gradient(#e2e8f0, #e2e8f0) 0 348px / 100% 40px no-repeat content-box,
      #f6f6f6 !important;
  }
}

/* --- half/half size-change loader: pizza-picker skeleton ----------------- *
 * #hh-pizza-container's ring (class.HalfHalf.php) is shown by core/browse_js.php
 * while get_options_halfhalf_popup.php reloads the "Select your pizzas"
 * block for the new size. Re-laid out to match that block; the id makes this
 * outrank the shared toppings skeleton above.
 *   ring::before  "Select your pizzas" label + "Required" pill
 *   div 1 / 2     first / second half card: round pizza, label bar, chevron
 *   div 3         unused here                                              */
#hh-pizza-container > .lds-ring {
  padding: 8px 0 !important;
}
#hh-pizza-container > .lds-ring::before {
  height: 16px !important;
  margin-bottom: 16px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(#e2e8f0, #e2e8f0) 0 2px / 32% 12px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 100% 0 / 18% 16px no-repeat !important;
}
#hh-pizza-container > .lds-ring > div:nth-child(1),
#hh-pizza-container > .lds-ring > div:nth-child(2) {
  height: 80px !important;
  margin: 0 0 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle closest-side, #e2e8f0 98%, transparent 100%) 16px 50% / 56px 56px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 102px 50% / 40% 14px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) calc(100% - 20px) 50% / 10px 14px no-repeat !important;
}
#hh-pizza-container > .lds-ring > div:nth-child(3) {
  height: 0 !important;
  margin: 0 !important;
  background: none !important;
}
#hh-pizza-container > .lds-ring > div:nth-child(3)::after {
  content: none !important;
}

/* --- item modal footer qty buttons: no offset on small screens ----------- *
 * all.css pulls them up with margin-top:-7% !important at <=480px using this
 * exact selector, which a tw- class cannot beat; same selector + later
 * source order resets it to 0 (= tw-mt-0).                                 */
@media screen and (max-width: 480px) {
  #menu-items .modal-popup .modal-footer .qty-btn-popup {
    margin-top: 0 !important;
  }
}

/* --- half/half + deal half/half extras accordion: let the panel slide ---- *
 * style.css:7900 gives every div in these list items min-height:100px (meant
 * for the pizza cards), which also hits the accordion's div.sub-item - the
 * element browse_js.php / deals_popup_js.php slideUp/slideDown("fast"). A
 * min-height floors that height animation, so the panel popped to 100px and
 * only the rest slid. Reset on the panel only; same specificity as that
 * rule, later source wins.                                                 */
#menu-items .modal-hh .modal-body #modal-body-hh ul li div.sub-item,
#menu-items .modal-deals .modal-body .deal-modal-body-hh-selection ul li div.sub-item {
  min-height: 0;
}

@media (max-width: 768px) {
    #extra-toppings {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
  .modal-header > .toggle-title {
    position: absolute;
    left: 50%;
    bottom: -14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background-color: #fff;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transform: translateX(-50%);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  .modal-header > .toggle-title:hover,
  .modal-header > .toggle-title:active {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
  }
  .modal-header > .toggle-title .glyphicon {
    top: 0;
    font-size: 11px;
    line-height: 1;
    transition: transform .25s ease;
  }
  /* class.js renders a glyphicon; repaint it with the Font Awesome 7 solid
     chevron-down (solid.min.css) so it matches the fa-xmark close button */
  .modal-header > .toggle-title .glyphicon-chevron-down::before {
    font: var(--fa-font-solid);
    content: "\f078";
  }
  .modal-header.toggled-title > .toggle-title {
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .modal-header.toggled-title > .toggle-title .glyphicon {
    transform: rotate(180deg);
  }

  /* fade the last clamped line instead of a hard cut, only while collapsed
     and only when the toggle exists (i.e. the text actually overflows) */
  .modal-header:has(> .toggle-title) > .item-description-popup:not(.modal-title-full) {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
}

.divider-solid-top {
  border-bottom: none;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}
.divider-solid-bottom {
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}
/* --- item popup extras accordion: whole category row is clickable ------- *
 * class.js only binds the toggle to a.item (the "Cheese"/"Other" label), so
 * the rest of the row (li padding, the space beside the label) did nothing.
 * CSS only: a.item::after is an invisible hit-area over the category header
 * (li top padding 8px + 20px label + bottom padding 8px = 36px) - a click on
 * it is a click on a.item, so the existing handler runs unchanged. The
 * nested topping list is lifted above it so, when open, its first row still
 * takes its own clicks. a.item:before (the chevron) is untouched.          */
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li {
  position: relative;
}
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li > a.item {
  cursor: pointer;
}
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li > a.item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  cursor: pointer;
}
.popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li > ul {
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 480px) {
  .popup-extra-toppings #extra-toppings #extra-toppings-list ul#accordion > li > ul {
    z-index: 0;
  }
  
}

#menu-items .modal-popup .modal-footer .qty-btn-popup {
  margin-top: 0 !important;
}


@media only screen and (max-width: 768px) {
.border-0.li-topping.tw-py-2 {
      padding: 10px 0 !important;
}
.border-0.tw-py-2 {
      padding: 10px 0 !important;
}
}
/* --- deal customise item card: full description, no clamp ---------------- *
 * get_extra_toppings_popup_deals.php renders the item description in the
 * card at the top of the deal customise panel with tw-line-clamp-2. Inside
 * that card only, the clamp is undone so the whole description shows; the
 * deal selection list (class.Deals.php) keeps its 2-line clamp.
 * Same for the half/half customise panel (get_extra_toppings_popup.php, the
 * text-center/tw-min-h-fit card); the pizza picker list (class.HalfHalf.php,
 * div.add-half) keeps its clamp.                                           */
div.mp-bg-slate-50.mp-border-slate-200 > p.deal-item-desc.tw-line-clamp-2,
div.text-center.tw-min-h-fit.tw-p-0.tw-text-left > p.hh-item-desc.tw-line-clamp-2 {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

/* --- modals: fade only, no Bootstrap slide-down -------------------------- *
 * Bootstrap 3 (all.css) slides .modal-dialog down from translate(0,-25%) on
 * open and back up on close. The dialog no longer moves; the modal just
 * fades. The backdrop is synced to this fade in the backdrop rules near the
 * top of this file.                                                        */
/* Menu modals only: other modals position their dialog with transform
   (e.g. .modal-dialog-centered: translate3d(0,-50%,0), style.css:9269),
   and a blanket transform:none knocked them off centre. */
.modal.modal-popup.fade .modal-dialog {
  transform: none !important;
}
.modal.fade {
  transition: opacity 0.1s ease-in-out;
}
