/* Tablet portrait activates only through the runtime layout token. Component
 * geometry remains owned by later device phases. */
html[data-layout="tablet"] {
  --tablet-content-max: 880px;
  --tablet-page-padding: 24px;
  --tablet-header-height: 80px;
  --tablet-progress-height: 56px;
  --tablet-cta-height: 104px;
  --tablet-summary-height: 92px;
  --tablet-bottom-gap: 24px;
  --tablet-bottom-stack-height: calc(
    var(--tablet-cta-height) + var(--tablet-summary-height) +
    var(--tablet-bottom-gap) + var(--safe-bottom)
  );
  --tablet-modal-width: 720px;
  --tablet-stage-top-offset: calc(
    var(--tablet-header-height) + var(--tablet-progress-height) + var(--safe-top)
  );
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-layout="tablet"] body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-layout="tablet"] :where(#main, .app) {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}

html[data-layout="tablet"] :where(.head, .c-header),
html[data-layout="tablet"] :where(.progress, .c-progress),
html[data-layout="tablet"] :where(.stage, .mainContent, .sectionWrapper) {
  width: 100%;
  max-width: var(--tablet-content-max) !important;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

html[data-layout="tablet"] :where(.head, .c-header) {
  box-sizing: border-box;
  height: calc(var(--tablet-header-height) + var(--safe-top)) !important;
  min-height: calc(var(--tablet-header-height) + var(--safe-top)) !important;
  padding-top: var(--safe-top) !important;
  padding-right: calc(var(--tablet-page-padding) + var(--safe-right)) !important;
  padding-left: calc(var(--tablet-page-padding) + var(--safe-left)) !important;
  gap: var(--space-4);
  z-index: var(--z-header);
}

html[data-layout="tablet"] :where(.head, .c-header) :where(.brand, .brandName, .storeName) {
  min-width: 0;
}

html[data-layout="tablet"] :where(.head, .c-header) :where(.brand, .headerActions) {
  display: flex;
  align-items: center;
}

html[data-layout="tablet"] :where(.head, .c-header) .brand {
  flex: 1 1 auto;
  overflow: hidden;
}

html[data-layout="tablet"] :where(.head, .c-header) :where(.brandName, .storeName) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-layout="tablet"] :where(.head, .c-header) :where(
  .headerActions,
  .homeBtn,
  .backBtn,
  .langBtn,
  .langTopBtn
) {
  flex: 0 0 auto;
}

html[data-layout="tablet"] :where(.head, .c-header) :where(
  button,
  .homeBtn,
  .backBtn,
  .langBtn,
  .langTopBtn
) {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min) !important;
  max-width: min(42vw, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-layout="tablet"] :where(.progress, .c-progress) {
  box-sizing: border-box;
  top: calc(var(--tablet-header-height) + var(--safe-top)) !important;
  min-height: var(--tablet-progress-height);
  padding-right: calc(var(--tablet-page-padding) + var(--safe-right)) !important;
  padding-left: calc(var(--tablet-page-padding) + var(--safe-left)) !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  z-index: var(--z-progress);
}

html[data-layout="tablet"] :where(.progress, .c-progress) :where(
  .progressStep,
  .step,
  .stepLabel,
  span
) {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

html[data-layout="tablet"] .progress .progressStep[class~="done"] {
  padding: 8px 10px;
}

html[data-layout="tablet"] :where(.stage, .mainContent, .sectionWrapper) {
  box-sizing: border-box;
  padding-right: calc(var(--tablet-page-padding) + var(--safe-right)) !important;
  padding-left: calc(var(--tablet-page-padding) + var(--safe-left)) !important;
  padding-bottom: calc(
    var(--tablet-summary-height) + var(--tablet-bottom-gap) + var(--safe-bottom)
  ) !important;
  scroll-margin-top: var(--tablet-stage-top-offset);
}

/* Phase 3-4: fixed ordering controls and popup geometry. These selectors are
 * deliberately runtime-scoped so the phone and default layers remain owners
 * of their existing geometry. */
html[data-layout="tablet"] :where(.selectionFooter, .c-selection-footer) {
  right: 0;
  bottom: calc(var(--tablet-summary-height) + var(--safe-bottom));
  left: 0;
  z-index: var(--z-selection-footer);
  width: min(100%, var(--tablet-content-max));
  height: var(--tablet-cta-height);
  margin-inline: auto;
  padding: 10px calc(var(--tablet-page-padding) + var(--safe-right)) 10px
    calc(var(--tablet-page-padding) + var(--safe-left));
}

html[data-layout="tablet"] :where(.selectionFooter, .c-selection-footer) :where(
  button,
  .selectionFooterCard,
  .next,
  .prev,
  .start,
  .doneBtn,
  .confirmBtn,
  .submitBtn
) {
  min-width: 0;
  min-height: var(--touch-target-min) !important;
}

html[data-layout="tablet"] :where(.cartbar, .c-order-summary) {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-order-summary);
  width: min(100%, var(--tablet-content-max));
  height: calc(var(--tablet-summary-height) + var(--safe-bottom)) !important;
  margin-inline: auto;
  padding: 8px calc(var(--tablet-page-padding) + var(--safe-right))
    calc(8px + var(--safe-bottom)) calc(var(--tablet-page-padding) + var(--safe-left)) !important;
}

html[data-layout="tablet"] :where(.cartmain, .cartSummary, .orderSummary) {
  flex: 1 1 auto;
  min-width: 0;
}

html[data-layout="tablet"] :where(.cartprice, .cartTotal, .cartCount) {
  flex: 0 0 auto;
  white-space: nowrap;
}

html[data-layout="tablet"] :where(.cartbar, .c-order-summary) button {
  flex: 0 0 auto;
  min-height: var(--touch-target-min);
}

html[data-layout="tablet"] :where(.selectionFooterSpacer, .c-selection-footer-spacer, .footerSpacer) {
  display: block;
  height: var(--tablet-bottom-stack-height);
}

html[data-layout="tablet"] :where(.stage, .mainContent, .sectionWrapper):has(
  :where(.selectionFooterSpacer, .c-selection-footer-spacer, .footerSpacer)
) {
  padding-bottom: 0 !important;
}

html[data-layout="tablet"] :where(.backdrop, .c-popup-backdrop) {
  inset: 0;
  z-index: var(--z-backdrop);
  place-items: center;
  max-width: 100vw;
  padding: calc(24px + var(--safe-top)) calc(24px + var(--safe-right))
    calc(24px + var(--safe-bottom)) calc(24px + var(--safe-left));
  overflow: hidden;
}

html[data-layout="tablet"] :where(
  .c-popup,
  .modal,
  .upsellModal,
  .finalUpsellModal,
  .benefitHelperModal,
  .discountModal,
  .helperModal,
  .setUpsellModal
) {
  box-sizing: border-box;
  width: min(var(--tablet-modal-width), 100%);
  max-width: 760px;
  max-height: min(88vh, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 48px));
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

html[data-layout="tablet"] :where(.modalGrid, .modal .grid, .upsellModal .grid, .discountModal .grid, .helperModal .grid) {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-layout="tablet"] :where(.modalBtns, .modalActions, .modalFooter, .upsellActions, .finalUpsellGrid, .benefitActions) {
  position: sticky;
  bottom: 0;
  z-index: var(--z-action);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: var(--safe-bottom);
}

html[data-layout="tablet"] :where(.modalBtns, .modalActions, .modalFooter, .upsellActions, .finalUpsellGrid, .benefitActions) button {
  min-width: 0;
  min-height: var(--touch-target-min);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 680px), (max-height: 850px) {
  html[data-layout="tablet"] :where(.modalGrid, .modal .grid, .upsellModal .grid, .discountModal .grid, .helperModal .grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html[data-layout="tablet"] :where(.summaryContainer, .sectionWrapper) {
  min-width: 0;
  max-width: 100%;
}

/* Only neutral collection grids are activated here. Product, option, modal,
 * checkout, payment, and seat grids keep their established geometry. */
html[data-layout="tablet"] :where(
  .c-grid,
  .grid:not(.adaptiveCards):not(.two):not(.four):not(.crustGrid):not(.sizeGuideGrid):not(.paymentGrid):not(.seatGrid)
) {
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 680px) {
  html[data-layout="tablet"] :where(
    .c-grid,
    .grid:not(.adaptiveCards):not(.two):not(.four):not(.crustGrid):not(.sizeGuideGrid):not(.paymentGrid):not(.seatGrid)
  ) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phase 3-5: checkout, payment, and completion geometry. Runtime layout
 * scoping keeps phone and landscape/default ownership unchanged. */
html[data-layout="tablet"] body:is(
  [data-step="review"],
  [data-step="phone"],
  [data-step="payment"],
  [data-step="done"]
) :where(.stage, .cartPage, .summary, .done) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: var(--tablet-content-max);
}

html[data-layout="tablet"] body:is(
  [data-step="review"],
  [data-step="phone"],
  [data-step="payment"]
) .stage {
  padding-bottom: calc(32px + var(--safe-bottom)) !important;
}

html[data-layout="tablet"] body[data-step="review"] :where(
  .summary,
  .review,
  .reviewOrderCard,
  .reviewSection,
  .cartOrderCard
) {
  min-width: 0;
  max-width: 100%;
}

html[data-layout="tablet"] body[data-step="review"] :where(
  .cartOrderTop > :first-child,
  .cartOrderName,
  .cartOrderDesc,
  .reviewOrderHead > :first-child,
  .reviewOrderHead h3,
  .reviewMeta,
  .reviewSection li span:first-child
) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

html[data-layout="tablet"] body[data-step="review"] :where(
  .cartOrderPrice,
  .reviewOrderHead > strong,
  .reviewSection li span:last-child,
  .reviewDiscountBox .line strong,
  .multiCartTotal strong
) {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

html[data-layout="tablet"] body[data-step="review"] :where(.multiCartTotal, .reviewDiscountBox .line) {
  justify-content: space-between;
  text-align: right;
}

html[data-layout="tablet"] body[data-step="phone"] :where(.phoneStep, .summary) {
  width: 100%;
  min-width: 0;
  max-width: var(--tablet-content-max);
  margin-inline: auto;
}

html[data-layout="tablet"] body[data-step="phone"] .summary {
  padding-bottom: calc(20px + var(--safe-bottom));
}

html[data-layout="tablet"] body[data-step="phone"] .phoneDisplay {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 20px;
  overflow: hidden;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-layout="tablet"] body[data-step="phone"] .keypad {
  display: grid;
  width: min(100%, 520px);
  max-width: 520px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px auto;
}

html[data-layout="tablet"] body[data-step="phone"] .keypad button {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 14px;
  touch-action: manipulation;
}

html[data-layout="tablet"] body[data-step="phone"] #phoneNext {
  min-height: 56px;
  touch-action: manipulation;
}

html[data-layout="tablet"] body[data-step="payment"] :where(
  .summary,
  .paymentGrid,
  .paymentCard,
  .paymentSubmitBtn,
  .paymentRequiredBox
) {
  min-width: 0;
  max-width: 100%;
}

html[data-layout="tablet"] body[data-step="payment"] .summary {
  padding-bottom: calc(20px + var(--safe-bottom));
}

html[data-layout="tablet"] body[data-step="payment"] .paymentGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-layout="tablet"] body[data-step="payment"] :where(
  .paymentCard,
  .paymentSubmitBtn
) {
  min-height: 56px;
  touch-action: manipulation;
}

html[data-layout="tablet"] body[data-step="payment"] .paymentSubmitBtn {
  position: relative;
  z-index: var(--z-action);
  margin-bottom: var(--safe-bottom);
}

html[data-layout="tablet"] body[data-step="done"] .stage {
  min-height: calc(100dvh - var(--tablet-stage-top-offset));
  padding-bottom: calc(32px + var(--safe-bottom)) !important;
  overflow: visible;
}

html[data-layout="tablet"] body[data-step="done"] :where(.done) {
  min-height: 100%;
  padding: 48px 20px calc(32px + var(--safe-bottom));
  overflow: visible;
}

html[data-layout="tablet"] body[data-step="done"] :where(.done) .num {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(60px, 10vw, 88px);
  line-height: 1;
}

html[data-layout="tablet"] body[data-step="done"] :where(
  .doneGuide,
  .doneReserve,
  .paymentRequiredBox
) {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

html[data-layout="tablet"] body[data-step="done"] .doneHomeBtn {
  min-width: min(320px, 100%);
  min-height: 56px;
  margin-bottom: var(--safe-bottom);
  touch-action: manipulation;
}

@media (max-width: 680px) {
  html[data-layout="tablet"] body[data-step="payment"] .paymentGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-layout="tablet"] body[data-step="done"] .doneHomeBtn {
    width: 100%;
    min-width: 0;
  }
}

/* Phase 3-3: card and selection geometry for the tablet portrait runtime.
 * State classes and component visuals remain owned by the existing layers. */
html[data-layout="tablet"] :where(
  .card,
  .c-card,
  .darkBenefitCard,
  .darkSetCard,
  .sizeGuideCard,
  .c-size-card,
  .crustTextCard,
  .setCrustCard
) {
  min-width: 0;
  max-width: 100%;
}

html[data-layout="tablet"] :where(
  .card,
  .c-card,
  .darkBenefitCard,
  .darkSetCard,
  .sizeGuideCard,
  .c-size-card,
  .crustTextCard,
  .setCrustCard
) :where(h2, h3, p, small, strong, .crustDesc, .darkSetDesc) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

html[data-layout="tablet"] :where(
  .card,
  .c-card,
  .crustTextCard,
  .setCrustCard,
  .darkSetCard
) :where(.price, .crustPrice, .darkSetPrice) {
  white-space: nowrap;
}

@media (hover: none) {
  html[data-layout="tablet"] :where(
    .card,
    .c-card,
    .darkBenefitCard,
    .darkSetCard,
    .crustTextCard,
    .setCrustCard
  ):hover:not(:disabled) {
    transform: none;
  }
}

html[data-layout="tablet"] :where(
  .grid,
  .c-grid,
  .grid.two,
  .grid.four,
  .adaptiveCards,
  .crustGrid,
  .crustTextGrid,
  .setCrustGrid,
  .sizeGuideGrid,
  .halfPreview,
  .darkBenefitGrid,
  .darkSetGrid
) {
  min-width: 0;
  max-width: 100%;
  gap: 16px;
}

html[data-layout="tablet"] :where(
  .grid,
  .c-grid,
  .grid.two,
  .grid.four,
  .adaptiveCards,
  .crustGrid,
  .darkBenefitGrid,
  .darkSetGrid
) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-layout="tablet"] :where(.crustTextGrid, .setCrustGrid) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html[data-layout="tablet"] .sizeGuideGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html[data-layout="tablet"] .halfPreview {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-layout="tablet"] :where(.sizeGuideCard, .c-size-card) {
  min-height: 210px;
}

html[data-layout="tablet"] :where(
  .optionBtn,
  .c-selection-control,
  .crustTextCard,
  .setCrustCard
) {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
}

html[data-layout="tablet"] :where(.crustTextCard, .setCrustCard) {
  min-height: 132px;
  padding: 18px 20px;
}

html[data-layout="tablet"] :where(
  .optionBtn,
  .c-selection-control,
  .crustTextCard,
  .setCrustCard
):disabled {
  cursor: not-allowed;
}

html[data-layout="tablet"] :where(.qty, .c-quantity-control) {
  min-width: 0;
  grid-template-columns: 48px minmax(42px, 1fr) 48px !important;
  gap: 8px !important;
}

html[data-layout="tablet"] :where(.qty, .c-quantity-control) button {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  touch-action: manipulation;
}

html[data-layout="tablet"] :where(.qty, .c-quantity-control) :where(b, .drinkQuantityReadout) {
  min-width: 0;
  min-height: 48px;
}

html[data-layout="tablet"] :where(
  .pic,
  .imagePic,
  .crustPic,
  .darkSetPhoto,
  .setCrustImage,
  .c-card-media
) img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

html[data-layout="tablet"] body[data-step="pizza"] :where(.card, .c-card) .imagePic {
  height: 160px !important;
}

html[data-layout="tablet"] body[data-step="side"] :where(.card, .c-card) .imagePic {
  height: 144px !important;
}

html[data-layout="tablet"] .crustPic {
  height: 132px !important;
}

html[data-layout="tablet"] .setCrustImage {
  height: 120px;
}

html[data-layout="tablet"] .darkSetPhoto {
  height: 120px;
}

@media (max-width: 680px) {
  html[data-layout="tablet"] :where(
    .grid,
    .c-grid,
    .grid.two,
    .adaptiveCards,
    .crustGrid,
    .darkBenefitGrid,
    .darkSetGrid
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-layout="tablet"] :where(
    .grid.four,
    .drinkTextGrid,
    .v3DrinkGrid,
    .accompanimentGrid,
    .crustTextGrid,
    .setCrustGrid
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-layout="tablet"] .sizeGuideGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  html[data-layout="tablet"] :where(.sizeGuideCard, .c-size-card) {
    min-height: 176px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Order review uses two columns so all pricing details remain above the fold. */
html[data-layout="tablet"] body[data-step="review"] .stage {
  padding: 8px 18px !important;
}

html[data-layout="tablet"] body[data-step="review"] :where(.title, .sub) {
  margin-bottom: 6px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewOrderList {
  gap: 7px;
  margin-top: 6px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewOrderCard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 0;
  padding: 11px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaCategory,
html[data-layout="tablet"] body[data-step="review"] .cartOrderActions {
  grid-column: 1 / -1;
}

html[data-layout="tablet"] body[data-step="review"] .cartCategory {
  min-width: 0;
  padding: 6px 0;
}

html[data-layout="tablet"] body[data-step="review"] .cartCategory h2 {
  margin-bottom: 4px;
  font-size: 13px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaMeta {
  padding: 2px 0 5px;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaToppingLine {
  padding: 2px 0;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaPriceBreakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 5px;
  padding: 8px 10px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaPriceLine {
  padding: 3px 0;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] .cartPizzaPriceLine.final {
  margin-top: 0;
  padding-top: 3px;
  font-size: 14px;
}

html[data-layout="tablet"] body[data-step="review"] .cartItemSummary {
  padding: 2px 0;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] :where(.cartBenefitRow, .cartOrderTotal) {
  padding: 7px 0;
  font-size: 13px;
}

html[data-layout="tablet"] body[data-step="review"] .cartOrderActions {
  margin-top: 6px;
}

html[data-layout="tablet"] body[data-step="review"] .cartOrderActions button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 11px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewAddMore {
  margin: 5px 0;
  padding: 9px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewAddMore h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewAddMoreGrid {
  gap: 7px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewAddMoreGrid button {
  min-height: 44px;
  padding: 7px;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewAddMore p {
  margin-top: 5px;
  font-size: 10px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewDiscountBox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 7px;
  padding: 9px 11px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewDiscountBox .line {
  padding: 4px 0;
  font-size: 12px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewDiscountBox .totalDiscount {
  margin-top: 0;
  padding-top: 4px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewDiscountBox .final {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 6px;
  font-size: 17px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewConfirmBtn {
  min-height: 48px;
  margin-top: 7px;
  padding: 9px 12px;
  font-size: 17px;
}

html[data-layout="tablet"] body[data-step="review"] .reviewConfirmNote {
  margin-top: 3px;
  font-size: 10px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact1 .reviewOrderList {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact1 .reviewOrderCard {
  padding: 6px 9px;
  font-size: 95%;
  line-height: 1.12;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewOrderList {
  gap: 3px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewOrderCard {
  padding: 2px 6px;
  font-size: 90%;
  line-height: 1.05;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartCategory {
  padding-block: 1px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartCategory h2 {
  margin-bottom: 0;
  line-height: 1;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartPizzaMeta,
html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartPizzaToppingLine,
html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartItemSummary {
  padding-block: 0;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartPizzaPriceBreakdown {
  margin-top: 1px;
  padding: 2px 6px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartPizzaPriceLine {
  padding-block: 1px;
  line-height: 13px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 :where(
  .cartBenefitRow,
  .cartOrderTotal
) {
  padding-block: 2px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .cartOrderActions {
  margin-top: 0;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewAddMore {
  margin-block: 1px;
  padding: 3px 6px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewAddMore :where(h2, p) {
  margin-block: 0;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewDiscountBox {
  margin-top: 1px;
  padding: 3px 7px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewDiscountBox .line {
  padding-block: 1px;
  line-height: 1;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewConfirmBtn {
  margin-top: 2px;
}

html[data-layout="tablet"] body[data-step="review"].reviewCompact2 .reviewConfirmNote {
  margin-top: 0;
}

html[data-layout="tablet"] body[data-step="pizzaOptions"] .stage {
  padding-bottom: 0 !important;
}
