/* menu.css — small supplements for /order/menu.
   The bulk of styling comes from the shared compiled screen.css (Tailwind utilities).
   Keep this file minimal. */

/* Accessible-but-hidden headings */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Add-to-cart toast */
#pj-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #2b6a2f;            /* papaGreen */
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
#pj-toast.pj-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- crust slider (dependency-free Swiper) ----------
   The markup reuses the legacy Swiper DOM (.swiper > .swiper-wrapper >
   .swiper-slide) for a 1:1 look, but Swiper.js is NOT loaded. We restore
   horizontal scrolling natively. Scoped via .pj-swiper so it never touches
   any other compiled Swiper styles. */
.pj-swiper.swiper {
  overflow-x: auto;
  overflow-y: visible;          /* let the +button overhang the top edge */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* .swiper-horizontal sets touch-action:pan-y which blocks horizontal
     touch-swipe; re-enable both axes so finger-swipe scrolls the track. */
  touch-action: pan-x pan-y;
  cursor: grab;
  /* Don't select card text while swiping/dragging. */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.pj-swiper .swiper-slide img { -webkit-user-drag: none; user-drag: none; }

.pj-swiper.swiper.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;       /* free dragging; snap restored on release */
  scroll-behavior: auto;
}
.pj-swiper.swiper.is-dragging * { cursor: grabbing; }
.pj-swiper.swiper::-webkit-scrollbar { height: 0; }

.pj-swiper .swiper-wrapper {
  display: flex;
  flex-direction: row;
  transform: none !important;   /* kill any inline Swiper translate */
}
.pj-swiper .swiper-slide { scroll-snap-align: start; }
/* Make the whole card keyboard-focusable like a link. */
.pj-swiper [data-href]:focus-visible {
  outline: 2px solid rgb(45 93 42);
  outline-offset: 2px;
}

/* ---------- cart line thumbnails ----------
   Cart and checkout summary share renderCart() from menu.js. Keep thumbnails
   square and opt out of flex cross-axis stretching. */
body[data-app="pj-menu"] [data-cart-list] .pj-cart-line,
body[data-app="pj-checkout"] [data-cart-list] .pj-cart-line {
  align-items: flex-start;
}

body[data-app="pj-menu"] [data-cart-list] .pj-cart-image,
body[data-app="pj-checkout"] [data-cart-list] .pj-cart-image {
  display: block;
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-width: 72px;
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  object-fit: cover;
  object-position: center;
  background: rgb(249 243 237);
}

/* ---------- pizza builder (card design, matches papajohns.com) ----------

   Brand colors taken from the compiled Tailwind palette (app.css):
     papaGreen-base rgb(45 93 42) · doughie-100 rgb(249 243 237)
     orange-base rgb(255 190 32) · maroon-base rgb(113 5 0)
     doughie-900 rgb(194 155 122) · black-50 rgb(249 249 249)
     black-300 rgb(209 209 209) · gray-500 rgb(107 114 128)            */

.bld-check { width: 16px; height: 16px; display: block; }

/* --- Size: horizontal cards with the orange S/M/L/XL badge --- */
.bld-size {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  cursor: pointer;
  padding: 14px 12px 26px;
  border: 2px solid rgb(209 209 209);
  border-radius: 16px;
  background: rgb(249 249 249);
  height: 142px;
  flex: 1 1 0;
  min-width: 0;
  transition: border-color .2s ease, background .2s ease;
  user-select: none;
}
@media (min-width: 768px) {
  .bld-size { flex: 0 0 106px; width: 106px; min-width: 106px; padding: 14px 14px 26px; }
}
.bld-size:hover { border-color: rgb(45 93 42); }
.bld-size.is-active { background: rgb(249 243 237); border-color: rgb(45 93 42); }
.bld-size__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  background: rgb(255 190 32);
  border: 2px solid rgb(194 155 122);
  border-radius: 9999px;
  color: rgb(113 5 0);
  font-weight: 500;
  line-height: 1;
  font-size: 1.4rem;
}
.bld-size__slices {
  margin-top: 14px;
  color: rgb(18 20 18);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
}
.bld-size__delta {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .8125rem;
  line-height: 1;
  color: rgb(107 114 128);
}
.bld-size__check {
  position: absolute;
  top: -5px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #fff;
  background: rgb(45 93 42);
  align-items: center;
  justify-content: center;
  display: none;
}
.bld-size.is-active .bld-size__check { display: flex; }

/* --- Cut: square cards with a yellow disc icon + label --- */
.bld-cut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 8px;
  border: 2px solid rgb(209 209 209);
  border-radius: 16px;
  background: rgb(249 249 249);
  transition: border-color .2s ease, background .2s ease;
  user-select: none;
}
.bld-cut:hover { border-color: rgb(45 93 42); }
.bld-cut.is-active { background: rgb(249 243 237); border-color: rgb(45 93 42); }
.bld-cut__icon {
  display: block;
  width: 45px;
  height: 44px;
  margin-bottom: 14px;
}
.bld-cut__name {
  color: rgb(18 20 18);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
}
.bld-cut__check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #fff;
  background: rgb(45 93 42);
  align-items: center;
  justify-content: center;
  display: none;
}
.bld-cut.is-active .bld-cut__check { display: flex; }
.bld-cut input.sr-only { pointer-events: none; }

/* --- Crust / Sauce: full-width selectable rows --- */
.bld-row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  padding: 14px 16px;
  min-height: 82px;
  border: 2px solid rgb(209 209 209);
  border-radius: 14px;
  background: rgb(249 249 249);
  transition: border-color .2s ease, background .2s ease;
  user-select: none;
}
.bld-row:hover { border-color: rgb(45 93 42); }
.bld-row input.sr-only,
.bld-size input.sr-only,
.bld-segment__item input.sr-only {
  pointer-events: none;
}
.bld-row.is-active { background: rgb(249 243 237); border-color: rgb(45 93 42); font-weight: 700; }
.bld-row.is-disabled { opacity: .45; pointer-events: none; }
.bld-row--plain { cursor: default; }
.bld-row--plain:hover { border-color: rgb(209 209 209); }
.bld-row__thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 9999px;
  overflow: hidden;
  background: rgb(237 237 237);
}
.bld-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bld-row__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 0; }
.bld-row__name { color: rgb(18 20 18); font-size: 1rem; line-height: 1.2; }
.bld-row__cal { color: rgb(18 20 18); font-size: .8125rem; line-height: 1.4; font-weight: 400; }
.bld-row__price { flex: 0 0 auto; padding: 0 10px; color: rgb(107 114 128); font-size: .8125rem; line-height: 1; white-space: nowrap; }
.bld-radio {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgb(209 209 209);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.bld-row.is-active .bld-radio { border: 2px solid rgb(45 93 42); background: rgb(45 93 42); }
.bld-radio .bld-check { display: none; }
.bld-row.is-active .bld-radio .bld-check { display: block; }

/* --- Toppings: segmented None / Regular / Extra control --- */
.bld-amt-group {
  flex: 0 0 auto;
  display: inline-flex;
  border: 1px solid rgb(209 209 209);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}
.bld-amt {
  font-family: inherit;
  font-size: .8125rem;
  line-height: 1;
  padding: 9px 13px;
  border: 0;
  border-left: 1px solid rgb(209 209 209);
  background: #fff;
  color: rgb(51 53 51);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bld-amt:first-child { border-left: 0; }
.bld-amt:hover { background: rgb(249 243 237); }
.bld-amt.is-active { background: rgb(45 93 42); color: #fff; }



/* ---------- source-like CYO builder shell ---------- */
.bld-page {
  max-width: 1290px;
}
.bld-builder {
  display: block;
  align-items: stretch;
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .bld-builder {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(620px, 1fr);
    gap: 0;
  }
}
.bld-product {
  padding-bottom: 24px;
}
@media (min-width: 1024px) {
  .bld-product {
    padding: 0 62px 24px 0;
  }
}
.bld-product > p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.25;
}
.bld-product__image {
  aspect-ratio: 4 / 3;
  object-position: center;
}
.bld-product__media { position: relative; }
/* Mobile: full-bleed image, square corners, no max-width (matches source).
   Desktop keeps the rounded, centered card. */
@media (max-width: 1023.98px) {
  .bld-product__image {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    border-radius: 0;
  }
}
@media (min-width: 1024px) {
  .bld-product__image {
    border-radius: 10px;
    max-width: 472px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Back button overlaid on the photo (mobile only, matches source).
   Display is set inside the <lg media query below so it doesn't override
   the Tailwind `lg:hidden` on desktop (menu.css loads after app.css). */
.bld-back {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(249 249 249);
  color: rgb(18 20 18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.bld-back:hover { background: rgb(237 237 237); }

/* ---- Product detail page: hide global chrome on mobile only ----
   Scoped to body.pj-product-detail so no other route is affected; desktop
   (lg+) keeps the normal header. The "START NEW ORDER" bar is the header
   partial's first child (.bg-black-50), the nav lives in <header>. */
@media (max-width: 1023.98px) {
  body.pj-product-detail > #modal-root > .bg-black-50,
  body.pj-product-detail > #modal-root > header {
    display: none;
  }
  .bld-back { display: flex; }
  /* Image flush to the top where the header used to be, and no gap below it
     before the title block. */
  body.pj-product-detail .bld-page { padding-top: 0; }
  body.pj-product-detail .container.mx-auto.px-5 { padding-left: 0; padding-right: 0; }
  body.pj-product-detail .bld-builder { margin-top: 0; }
  body.pj-product-detail .bld-product { padding-bottom: 0; }
}
/* View Details: revealed description collapse on mobile.
   Scoped to <lg so it doesn't override the Tailwind `lg:hidden` (equal
   specificity, but menu.css loads after app.css). */
@media (max-width: 1023.98px) {
  .bld-details-link {
    display: block;
    margin-top: 8px;
    color: rgb(20 115 230);
  }
  .bld-details { display: none; }
  .bld-details.is-open { display: block; }
}
.bld-panel {
  background: #fff;
  min-width: 0;
}
@media (min-width: 1024px) {
  .bld-panel {
    border-left: 2px solid rgb(224 224 224);
  }
}
.bld-hero {
  padding: 0 8px 20px;
}
.bld-summary {
  padding: 0 8px 24px;
  border-bottom: 2px solid rgb(224 224 224);
}
.bld-summary,
.bld-whats,
.bld-sections {
  overflow-anchor: none;
}
@media (min-width: 1024px) {
  .bld-hero {
    padding: 36px 36px 20px;
  }
  .bld-summary {
    padding: 0 36px 42px;
  }
}
.bld-tabs {
  display: flex;
  align-items: baseline;
  gap: 18px;
  overflow-x: auto;
  padding: 28px 8px 0;
  border-bottom: 2px solid rgb(224 224 224);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  scrollbar-width: none;
}
.bld-tabs::-webkit-scrollbar { height: 0; }
@media (min-width: 1024px) {
  .bld-tabs { padding: 30px 18px 0; top: 0; }
  .bld-sections {
    max-height: calc(100vh - 276px);
    overflow-y: auto;
  }
}
.bld-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 0.25rem;
  border: 0;
  background: transparent;
  color: rgb(18 20 18);
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.bld-tab.is-active {
  color: rgb(45 93 42);
  font-family: "papaSansFont", "papaSansFont Fallback", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5rem;
  padding-bottom: 0.25rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.bld-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 9999px;
  background: rgb(45 93 42);
}
.bld-sections {
  margin-top: 24px;
  padding: 32px 8px 96px;
  border-top: 2px solid rgb(224 224 224);
}
@media (min-width: 1024px) {
  .bld-sections {
    padding: 32px 36px 96px;
  }
}
.bld-section {
  scroll-margin-top: 72px;
  margin-bottom: 32px;
}
.bld-section > div:first-child {
  margin-bottom: 24px;
}
[data-group="size"] {
  display: flex;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  padding-top: 2px;
  padding-right: 2px;
}
[data-group="crust"],
[data-group="crust-flavor"],
[data-group="sauce"],
[data-group="bake"],
[data-group="toppings-cheese"],
[data-group="toppings-meats"],
[data-group="toppings-veggies"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-group="cut"] {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.bld-whats {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  transition: all .3s ease-in;
}
.bld-whats::-webkit-scrollbar { height: 0; }
.bld-whats__group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bld-whats__group--left,
.bld-whats__group--right {
  border-left: 1px solid rgb(209 209 209);
  padding-left: 12px;
}
/* Whole-pizza group: bordered card with a caption on mobile (matches source);
   border + caption disappear on desktop. */
.bld-whats__card {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgb(209 209 209);
  border-radius: 16px;
  padding: 12px;
}
.bld-whats__card-label {
  color: rgb(18 20 18);
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .bld-whats__card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .bld-whats__card-label { display: none; }
}
.bld-whats__items {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bld-whats__group-label {
  flex: 0 0 42px;
  color: rgb(18 20 18);
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: .78rem;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
.bld-whats__half-pill {
  flex: 0 0 auto;
  width: 18px;
  height: 34px;
  background: rgb(45 93 42);
}
.bld-whats__half-pill--left { border-radius: 9999px 0 0 9999px; }
.bld-whats__half-pill--right { border-radius: 0 9999px 9999px 0; }
.bld-whats__item {
  position: relative;
  width: 64px;
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgb(18 20 18);
  font-family: inherit;
  font-size: .75rem;
  line-height: 1.15;
  text-align: center;
}
.bld-whats__name {
  display: block;
  max-width: 70px;
}
.bld-whats__thumb {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgb(237 237 237);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bld-whats__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bld-whats__remove {
  position: absolute;
  top: 0;
  right: 6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(45 93 42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  z-index: 2;
}
.bld-whats__remove:hover,
.bld-whats__remove:focus-visible { background: rgb(32 73 30); }
.bld-row__tag {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgb(184 32 37);
  color: #fff;
  font-size: .75rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}
.bld-row--topping .bld-radio .bld-check { display: none; }
.bld-row--topping.is-active {
  background: rgb(249 243 237);
  border-color: rgb(45 93 42);
  font-weight: 700;
}
.bld-row--topping.is-active .bld-radio {
  border: 2px solid rgb(45 93 42);
  background: rgb(45 93 42);
}
.bld-row--topping.is-active .bld-radio .bld-check { display: block; }
.bld-row--topping {
  display: block;
  scroll-margin-top: 96px;
}
.bld-topping-main {
  display: flex;
  align-items: center;
  min-height: 50px;
}
.bld-topping-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}
.bld-row--topping.is-active .bld-topping-controls { display: flex; }
.bld-topping-amount {
  flex: 1 1 auto;
  min-width: 220px;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgb(209 209 209);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}
.bld-topping-amount__btn {
  flex: 1 1 0;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: rgb(18 20 18);
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
}
.bld-topping-amount__btn.is-active {
  border-radius: 9999px;
  background: rgb(45 93 42);
  color: #fff;
  font-weight: 700;
}
.bld-side-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bld-side-btn {
  position: relative;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bld-side-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  right: 3px;
  border: 2px solid rgb(209 209 209);
  background: #fff;
}
.bld-side-btn--left::before {
  border-right-width: 0;
  border-radius: 9999px 0 0 9999px;
}
.bld-side-btn--whole::before {
  border-radius: 9999px;
}
.bld-side-btn--right::before {
  border-left-width: 0;
  border-radius: 0 9999px 9999px 0;
}
.bld-side-btn.is-active::before {
  border-color: rgb(45 93 42);
  background: rgb(45 93 42);
}
@media (max-width: 640px) {
  .bld-topping-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .bld-topping-amount { min-width: 0; }
  .bld-side-toggle { justify-content: flex-end; }
}
.bld-segment {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid rgb(209 209 209);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}
.bld-segment__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 10px 14px;
  border-left: 1px solid rgb(209 209 209);
  color: rgb(51 53 51);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
}
.bld-segment__item:first-child { border-left: 0; }
.bld-segment__item.is-active {
  background: rgb(45 93 42);
  color: #fff;
  font-weight: 700;
}

/* --- Sauce: portion segment nested inside the active sauce card --- */
.bld-sauce-card {
  border: 2px solid rgb(209 209 209);
  border-radius: 14px;
  background: rgb(249 249 249);
  transition: border-color .2s ease, background .2s ease;
}
.bld-sauce-card:hover { border-color: rgb(45 93 42); }
.bld-sauce-card.is-active { border-color: rgb(45 93 42); background: rgb(249 243 237); }
/* The row inside a card drops its own border/background — the card owns it. */
.bld-sauce-card .bld-row {
  border: 0;
  border-radius: 14px;
  background: transparent;
}
.bld-sauce-card .bld-row:hover { border-color: transparent; }
.bld-sauce-card .bld-row.is-active { background: transparent; }
.bld-sauce-card__slot:empty { display: none; }
.bld-sauce-card__slot {
  padding: 0 12px 12px;
}
.bld-sauce-card__slot .bld-segment {
  display: flex;
  width: 100%;
}
.bld-sauce-card__slot .bld-segment__item {
  flex: 1 1 0;
  min-width: 0;
}
.bld-tray {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-top: 1px solid rgb(224 224 224);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .14);
}
@media (min-width: 1024px) {
  .bld-tray { padding: 14px 14px 28px; }
}
.bld-qty-select {
  min-width: 72px;
  height: 44px;
  border: 1px solid rgb(209 209 209);
  border-radius: 8px;
  background: #fff;
  color: rgb(18 20 18);
  font: inherit;
  padding: 0 12px;
}

/* Deals page (/order/specials) */
body[data-app="pj-deals"] .pj-deals {
  padding: 1rem 0.5rem 4rem;
}
body[data-app="pj-deals"] .pj-deal-card {
  color: rgb(18 18 18);
  display: flex;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body[data-app="pj-deals"] .pj-deal-card:hover,
body[data-app="pj-deals"] .pj-deal-card:focus {
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
body[data-app="pj-deals"] .pj-deal-card:focus-visible {
  outline: 3px solid rgb(45 93 42);
  outline-offset: 3px;
}
body[data-app="pj-deals"] .pj-deal-card--hero {
  min-height: 17rem;
  background: rgb(45 93 42);
}
body[data-app="pj-deals"] .pj-deal-card--feature {
  min-height: 14rem;
  background: rgb(245 232 220);
  border: 1px solid rgb(45 93 42);
}
body[data-app="pj-deals"] .pj-deal-card--compact {
  min-height: 10rem;
  background: rgb(249 249 249);
  border: 1px solid rgb(209 209 209);
  flex-direction: row;
}
body[data-app="pj-deals"] .pj-deal-card__body {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
}
body[data-app="pj-deals"] .pj-deal-card--hero .pj-deal-card__body {
  gap: 0.75rem;
}
body[data-app="pj-deals"] .pj-deal-card__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  width: 66.666%;
  min-width: 0;
}
body[data-app="pj-deals"] .pj-deal-card__top {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
body[data-app="pj-deals"] .pj-deal-card__media {
  align-items: flex-start;
  display: flex;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  width: 33.333%;
}
body[data-app="pj-deals"] .pj-deal-card__media img {
  border-radius: 0.75rem;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  width: 100%;
}
body[data-app="pj-deals"] .pj-deal-badge {
  background: rgb(230 0 0);
  border-radius: 0.125rem;
  color: #fff;
  display: inline-block;
  font-family: "papaSansFont", "papaSansFont Fallback", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.25rem;
  max-width: 100%;
  overflow: hidden;
  padding: 0 0.25rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
body[data-app="pj-deals"] .pj-deal-badge--hero {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
body[data-app="pj-deals"] .pj-deal-badge--small {
  margin-bottom: 0.125rem;
}
body[data-app="pj-deals"] .pj-deal-title {
  font-family: "papaSansFont", "papaSansFont Fallback", system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}
body[data-app="pj-deals"] .pj-deal-title--hero {
  color: rgb(215 243 29);
  display: -webkit-box;
  font-size: 2.25rem;
  line-height: 0.92;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-app="pj-deals"] .pj-deal-title--feature {
  color: rgb(45 93 42);
  display: -webkit-box;
  font-size: 1.25rem;
  line-height: 1.15;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-app="pj-deals"] .pj-deal-title--compact {
  color: rgb(18 18 18);
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.25rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body[data-app="pj-deals"] .pj-deal-description {
  color: rgb(18 18 18);
  display: -webkit-box;
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
body[data-app="pj-deals"] .pj-deal-description--hero {
  color: rgb(249 249 249);
}
body[data-app="pj-deals"] .pj-deal-description--compact {
  -webkit-line-clamp: 3;
}
body[data-app="pj-deals"] .pj-deal-price-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
body[data-app="pj-deals"] .pj-deal-price {
  color: rgb(45 93 42);
  font-family: "pappyFont", "pappyFont Fallback", cursive, serif;
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  line-height: 1.5rem;
}
body[data-app="pj-deals"] .pj-deal-price--hero {
  color: rgb(230 0 0);
  -webkit-text-stroke: 5px white;
  paint-order: stroke fill;
}
body[data-app="pj-deals"] .pj-deal-regular {
  color: rgb(18 18 18);
  font-family: "sarabunFont", "sarabunFont Fallback", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: line-through;
}
body[data-app="pj-deals"] .pj-deal-compact__image {
  flex: 0 0 8rem;
  height: auto;
  object-fit: cover;
  width: 8rem;
}
body[data-app="pj-deals"] .pj-deal-compact__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.5rem 2.25rem 0.5rem 0.5rem;
}
body[data-app="pj-deals"] .pj-deal-plus-anchor,
body[data-app="pj-deals"] .pj-deals-plus {
  align-items: center;
  background: rgb(45 93 42);
  border: 2px solid rgb(245 232 220);
  border-radius: 9999px;
  color: #fff;
  display: inline-flex;
  fill: currentColor;
  justify-content: center;
  padding: 0.125rem;
  pointer-events: none;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}
body[data-app="pj-deals"] .pj-deals-plus--large {
  background: rgb(215 243 29);
  border-color: rgb(45 93 42);
  border-width: 4px;
  color: rgb(45 93 42);
  right: -0.5rem;
  top: -0.5rem;
}
@media (min-width: 768px) {
  body[data-app="pj-deals"] .pj-deals {
    padding-bottom: 4rem;
  }
  body[data-app="pj-deals"] .pj-deal-card {
    border-radius: 1rem;
  }
  body[data-app="pj-deals"] .pj-deal-card--hero {
    border-radius: 32px;
    min-height: 20rem;
  }
  body[data-app="pj-deals"] .pj-deal-card__body {
    gap: 1.25rem;
    padding: 1.5rem;
  }
  body[data-app="pj-deals"] .pj-deal-card--feature .pj-deal-card__body {
    padding: 0.75rem;
  }
  body[data-app="pj-deals"] .pj-deal-title--hero {
    font-size: 2.5rem;
    line-height: 1;
  }
  body[data-app="pj-deals"] .pj-deal-badge--hero {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  body[data-app="pj-deals"] .pj-deal-price--hero {
    font-size: 1.875rem;
    line-height: 1.75rem;
  }
  body[data-app="pj-deals"] .pj-deal-title--compact {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  body[data-app="pj-deals"] .pj-deal-description--hero {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

