.order-page {
  min-height: 100vh;
  background: #fff9fa;
  color: #30282a;
}

.order-topbar {
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #f1d5db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.order-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.order-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fce4ec;
  color: #ad1457;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.order-brand strong,
.order-brand small {
  display: block;
}

.order-brand strong {
  color: #ad1457;
  font-size: .98rem;
  line-height: 1.25;
}

.order-brand small {
  color: #786b6f;
  font-size: .76rem;
  margin-top: 2px;
}

.order-back-link {
  color: #6c5e62;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.order-back-link:hover {
  color: #ad1457;
}

.order-main {
  width: min(calc(100% - 34px), 1240px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 0 90px;
}

.order-address-stage {
  max-width: 900px;
  margin: 0 auto;
}

.order-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.order-kicker {
  display: inline-block;
  color: #ad1457;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 800;
}

.order-intro h1,
.order-menu-header h1,
.order-modal h2,
.tracking-card h1 {
  margin: 8px 0 12px;
  color: #2f282a;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.order-intro p,
.order-menu-header p,
.order-modal-intro {
  margin: 0;
  color: #74686b;
}

.order-address-card {
  background: #fff;
  border: 1px solid #f1d5db;
  border-radius: 26px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 22px 60px rgba(121, 72, 84, .1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.order-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ad1457;
  color: white;
  font-weight: 800;
}

.order-address-form,
.checkout-form,
.pass-form {
  display: grid;
  gap: 16px;
}

.order-address-form label,
.checkout-form label,
.pass-form label,
.builder-group {
  display: grid;
  gap: 7px;
}

.order-address-form label > span,
.checkout-form label > span,
.pass-form label > span,
.builder-label {
  font-size: .88rem;
  font-weight: 800;
  color: #3b3235;
}

.order-address-form input,
.checkout-form input,
.checkout-form textarea,
.pass-form input {
  width: 100%;
  border: 1px solid #e9ccd4;
  background: #fffdfd;
  color: #30282a;
  border-radius: 13px;
  padding: 13px 14px;
  outline: 0;
}

.order-address-form input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.pass-form input:focus {
  border-color: #d77e99;
  box-shadow: 0 0 0 4px rgba(215, 126, 153, .14);
}

.order-primary-button,
.order-secondary-button {
  min-height: 46px;
  border-radius: 13px;
  padding: 11px 18px;
  font-weight: 800;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-primary-button {
  background: #ad1457;
  color: white;
  box-shadow: 0 10px 24px rgba(173, 20, 87, .18);
}

.order-primary-button:hover:not(:disabled) {
  background: #95114b;
}

.order-primary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.order-secondary-button {
  background: white;
  border: 1px solid #e9ccd4;
  color: #5c4d52;
}

.order-form-message {
  min-height: 22px;
  margin: 0;
  font-size: .9rem;
  color: #74686b;
}

.order-form-message.error {
  color: #b42318;
}

.order-form-message.success {
  color: #147d55;
}

.order-info-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.order-info-strip > div {
  background: rgba(255, 255, 255, .7);
  border: 1px solid #f1d5db;
  border-radius: 16px;
  padding: 15px;
}

.order-info-strip strong,
.order-info-strip span {
  display: block;
}

.order-info-strip strong {
  color: #ad1457;
  font-size: .88rem;
}

.order-info-strip span {
  color: #74686b;
  font-size: .8rem;
  margin-top: 3px;
}

.order-menu-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.order-menu-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 26px;
  align-items: start;
}

.order-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.order-category-tab {
  border: 1px solid #ead0d7;
  background: white;
  color: #5d4f53;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 800;
}

.order-category-tab.active {
  color: white;
  border-color: #ad1457;
  background: #ad1457;
}

.order-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-product-card {
  background: white;
  border: 1px solid #f0d6dd;
  border-radius: 19px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  box-shadow: 0 10px 28px rgba(121, 72, 84, .06);
}

.order-product-card.builder {
  background: linear-gradient(145deg, #fff, #fff4f7);
  border-color: #e9b9c8;
}

.order-product-card h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  color: #30282a;
}

.order-product-card p {
  margin: 0 0 18px;
  color: #776a6e;
  font-size: .88rem;
  line-height: 1.55;
}

.order-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-product-price {
  color: #ad1457;
  font-weight: 800;
}

.order-add-button {
  border: 0;
  border-radius: 11px;
  padding: 9px 13px;
  background: #fce4ec;
  color: #ad1457;
  font-weight: 800;
}

.basket-panel {
  position: sticky;
  top: 98px;
  background: white;
  border: 1px solid #f0d6dd;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(121, 72, 84, .09);
}

.basket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f2dfe4;
}

.basket-heading h2 {
  margin: 4px 0 0;
  font-size: 1.3rem;
}

.basket-count {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fce4ec;
  color: #ad1457;
  font-weight: 800;
}

.basket-items {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  max-height: 390px;
  overflow: auto;
}

.basket-empty {
  color: #897b80;
  text-align: center;
  padding: 22px 8px;
  font-size: .9rem;
}

.basket-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid #f3e4e8;
  padding-bottom: 12px;
}

.basket-item:last-child {
  border-bottom: 0;
}

.basket-item-name {
  font-weight: 800;
  font-size: .9rem;
}

.basket-item-options {
  display: block;
  margin-top: 3px;
  color: #817378;
  font-size: .76rem;
  line-height: 1.4;
}

.basket-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.basket-item-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #ebd2d9;
  border-radius: 8px;
  background: white;
  color: #5f5155;
  font-weight: 800;
}

.basket-item-remove {
  border: 0 !important;
  width: auto !important;
  padding: 0 4px !important;
  color: #a73838 !important;
}

.basket-item-price {
  color: #ad1457;
  font-weight: 800;
  font-size: .88rem;
  white-space: nowrap;
}

.basket-totals {
  border-top: 1px solid #f2dfe4;
  padding-top: 14px;
  display: grid;
  gap: 9px;
}

.basket-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6d6064;
  font-size: .88rem;
}

.basket-total-row {
  padding-top: 8px;
  border-top: 1px dashed #e9ccd4;
  color: #30282a !important;
  font-size: 1rem !important;
}

.basket-total-row strong {
  color: #ad1457;
  font-size: 1.15rem;
}

.basket-checkout {
  width: 100%;
  margin-top: 16px;
}

.basket-cash-note {
  margin: 9px 0 0;
  text-align: center;
  color: #87797e;
  font-size: .76rem;
}

.mobile-basket-button {
  display: none;
}

.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(36, 21, 26, .64);
  padding: 22px;
  overflow: auto;
}

.order-modal-backdrop:not([hidden]) {
  display: grid;
  place-items: center;
}

.order-modal {
  position: relative;
  width: min(100%, 560px);
  background: white;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}

.order-modal h2 {
  font-size: 2rem;
}

.order-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f8eef1;
  color: #6e5f64;
  font-size: 1.4rem;
}


.builder-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ebd1d9;
  border-radius: 11px;
  padding: 10px 12px;
  background: #fffdfd;
  color: #5e5054;
  font: inherit;
  font-weight: 700;
}

.builder-select:focus {
  outline: 2px solid rgba(173, 20, 87, .22);
  border-color: #ad1457;
}

.builder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-choice {
  position: relative;
}

.builder-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.builder-choice span {
  display: block;
  border: 1px solid #ebd1d9;
  border-radius: 11px;
  padding: 9px 12px;
  background: #fffdfd;
  color: #5e5054;
  font-size: .84rem;
  font-weight: 700;
}

.builder-choice input:checked + span {
  background: #ad1457;
  color: white;
  border-color: #ad1457;
}

.builder-form-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.builder-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1dce2;
  padding-top: 16px;
}

.builder-price-row strong {
  color: #ad1457;
  font-size: 1.25rem;
}

.checkout-address-box,
.checkout-cash-box {
  background: #fff5f8;
  border: 1px solid #efd2da;
  border-radius: 15px;
  padding: 14px;
  margin: 16px 0;
}

.checkout-address-box strong,
.checkout-address-box span,
.checkout-cash-box span,
.checkout-cash-box strong,
.checkout-cash-box small {
  display: block;
}

.checkout-address-box span,
.checkout-cash-box span,
.checkout-cash-box small {
  color: #75686c;
  font-size: .8rem;
}

.checkout-cash-box strong {
  margin: 3px 0;
  color: #ad1457;
  font-size: 1.6rem;
}

.pass-modal {
  text-align: center;
}

.pass-lock {
  font-size: 2rem;
  margin-bottom: 8px;
}

.pass-form {
  text-align: left;
  margin-top: 22px;
}

.tracking-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 48px 18px 72px;
}

.tracking-card {
  width: min(100%, 660px);
  background: white;
  border: 1px solid #f0d6dd;
  border-radius: 26px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 24px 70px rgba(121, 72, 84, .11);
}

.tracking-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.tracking-order-id {
  color: #ad1457;
  font-weight: 800;
  margin: 0 0 24px;
}

.tracking-progress {
  display: grid;
  gap: 0;
  margin: 26px 0;
}

.tracking-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  min-height: 74px;
  opacity: .38;
}

.tracking-step::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 20px;
  width: 2px;
  height: 34px;
  background: #ead4da;
}

.tracking-step:last-child::after {
  display: none;
}

.tracking-step > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3e3e8;
  color: #8d727a;
  font-weight: 800;
}

.tracking-step strong,
.tracking-step small {
  display: block;
}

.tracking-step small {
  color: #7f7176;
  margin-top: 2px;
}

.tracking-step.complete,
.tracking-step.current {
  opacity: 1;
}

.tracking-step.complete > span,
.tracking-step.current > span {
  background: #ad1457;
  color: white;
}

.tracking-step.complete::after {
  background: #ad1457;
}

.tracking-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border-radius: 15px;
  background: #fff5f8;
  border: 1px solid #efd2da;
}

.tracking-total strong {
  color: #ad1457;
  font-size: 1.3rem;
}

.tracking-home {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .basket-panel {
    position: static;
  }

  .order-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-basket-button:not([hidden]) {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 45;
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    background: #ad1457;
    color: white;
    padding: 13px 18px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 16px 38px rgba(173, 20, 87, .3);
    font-weight: 800;
  }
}

@media (max-width: 650px) {
  .order-topbar {
    min-height: 68px;
    padding: 10px 15px;
  }

  .order-brand-mark {
    width: 40px;
    height: 40px;
  }

  .order-brand small {
    display: none;
  }

  .order-back-link {
    font-size: .78rem;
  }

  .order-main {
    width: min(calc(100% - 28px), 1240px);
    padding-top: 40px;
  }

  .order-address-card {
    grid-template-columns: 1fr;
  }

  .order-step-number {
    width: 36px;
    height: 36px;
  }

  .order-info-strip {
    grid-template-columns: 1fr;
  }

  .order-menu-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-product-grid {
    grid-template-columns: 1fr;
  }

  .order-product-card {
    min-height: 0;
  }

  .order-modal-backdrop {
    padding: 10px;
    align-items: end;
  }

  .order-modal {
    border-radius: 22px 22px 10px 10px;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}

/* v3: customer substitution approval */
.tracking-approval {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dccbef;
  border-radius: 18px;
  background: #fbf8ff;
}

.tracking-approval h2 {
  margin: 7px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.tracking-approval > p {
  margin: 0;
  color: #74697a;
  line-height: 1.5;
}

.tracking-change-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.tracking-change {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 13px;
  background: white;
  border: 1px solid #e8def1;
  font-size: .84rem;
}

.tracking-change > span {
  color: #8a7d90;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tracking-change > i {
  font-style: normal;
  color: #9a89aa;
}

.tracking-change.removed {
  grid-template-columns: auto minmax(0, 1fr);
}

.tracking-change.removed small {
  grid-column: 1 / -1;
  color: #8a7d90;
}

.tracking-change-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e3d7ed;
}

.tracking-change-total span {
  color: #716576;
  font-weight: 700;
}

.tracking-change-total strong {
  color: #6d3aa1;
  font-size: 1.35rem;
}

.tracking-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.tracking-cancel-button {
  border: 1px solid #efc4c0;
  border-radius: 14px;
  background: #fff3f1;
  color: #b42318;
  font-weight: 800;
  padding: 12px 16px;
}

.tracking-cancel-area {
  margin-top: 14px;
  text-align: center;
}

.tracking-cancel-link {
  border: 0;
  background: transparent;
  color: #a63b31;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tracking-cancel-area small {
  display: block;
  margin-top: 5px;
  color: #8b7d82;
}

@media (max-width: 600px) {
  .tracking-change {
    grid-template-columns: 1fr;
  }

  .tracking-change > i {
    transform: rotate(90deg);
    width: max-content;
  }

  .tracking-change.removed {
    grid-template-columns: 1fr;
  }

  .tracking-action-row {
    grid-template-columns: 1fr;
  }
}

/* v4: customer approval is a full-screen decision */
body.approval-open {
  overflow: hidden;
}

.tracking-approval {
  position: fixed;
  inset: 0;
  z-index: 200;
  margin: 0;
  padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(38, 27, 31, .78);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 0;
}

.tracking-approval-panel {
  width: min(100%, 680px);
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 26px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 34px 100px rgba(23, 15, 19, .32);
}

.tracking-approval-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #f2eaf9;
  color: #6d3aa1;
  font-size: 1.65rem;
  font-weight: 900;
}

.tracking-approval h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.tracking-approval > p,
.tracking-approval-panel > p {
  margin: 0;
  color: #74697a;
  line-height: 1.55;
}

.tracking-change-list {
  max-height: min(38vh, 360px);
  overflow-y: auto;
  padding-right: 3px;
}

.tracking-change strong small {
  display: block;
  margin-top: 4px;
  color: #837787;
  font-weight: 600;
  line-height: 1.35;
}

.tracking-change.modified {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.tracking-change.modified .tracking-change-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eee6f2;
}

.tracking-change.modified .tracking-change-detail small {
  color: #74697a;
  line-height: 1.4;
}

.tracking-change.note-only {
  grid-template-columns: 1fr;
}

.tracking-approval-hint {
  display: block;
  margin-top: 14px;
  color: #8b7f8f;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .tracking-approval {
    padding: 10px;
    align-items: end;
  }

  .tracking-approval-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 24px 24px 12px 12px;
    padding: 22px 18px max(20px, env(safe-area-inset-bottom));
  }

  .tracking-change-list {
    max-height: 34vh;
  }

  .tracking-change.modified {
    grid-template-columns: 1fr;
  }
}

.tracking-approval[hidden] {
  display: none !important;
}


/* v5: order recovery */
.order-topbar-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.order-existing-link {
  margin: 20px 0 0;
  text-align: center;
  color: #74697a;
}

.order-existing-link a {
  color: #ad1457;
  font-weight: 800;
}

.track-search-main {
  min-height: calc(100vh - 86px);
  padding: 56px 22px;
  display: grid;
  place-items: start center;
  background: linear-gradient(180deg, #fff8fa 0%, #fffdfd 100%);
}

.track-search-card {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid #f0dfe5;
  border-radius: 28px;
  box-shadow: 0 22px 65px rgba(104, 64, 76, .12);
  padding: 34px;
}

.track-search-card > h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.track-search-card > p {
  margin: 0;
  color: #74697a;
  line-height: 1.6;
}

.track-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}

.track-search-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.track-search-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #e7d8de;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: #312c32;
  font: inherit;
  text-transform: uppercase;
}

.track-search-form .order-form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.track-search-results {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #f0e4e8;
}

.track-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.track-results-head h2 {
  margin: 3px 0 0;
}

.track-results-head > span {
  color: #867985;
  font-weight: 800;
}

.track-result-list {
  display: grid;
  gap: 10px;
}

.track-result-card {
  display: block;
  text-decoration: none;
  color: #312c32;
  border: 1px solid #eadde2;
  border-radius: 18px;
  padding: 17px;
  background: #fffafb;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.track-result-card:hover {
  transform: translateY(-2px);
  border-color: #e7a6b8;
  box-shadow: 0 10px 30px rgba(104, 64, 76, .09);
}

.track-result-top,
.track-result-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.track-result-top > div {
  display: grid;
  gap: 2px;
}

.track-result-top > div > strong {
  font-size: 1.05rem;
}

.track-result-top > div > span,
.track-result-bottom > span {
  color: #7a6f79;
  font-size: .9rem;
}

.track-result-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #eadde2;
}

.track-result-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4edf0;
  color: #654e58;
  font-size: .78rem;
  font-weight: 900;
}

.track-result-status.status-dispatched,
.track-result-status.status-delivered {
  background: #e8f6ee;
  color: #227044;
}

.track-result-status.status-cancelled,
.track-result-status.status-rejected {
  background: #fff0f0;
  color: #a13c3c;
}

.track-no-results {
  text-align: center;
  padding: 28px 18px;
  border-radius: 18px;
  background: #fffafb;
  color: #74697a;
}

.track-no-results strong {
  display: block;
  color: #312c32;
  margin-bottom: 4px;
}

.track-no-results p {
  margin: 0;
}

.track-search-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #faf5f7;
  color: #74697a;
}

.track-search-note strong {
  color: #493d44;
}

.track-search-note p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.tracking-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 650px) {
  .order-topbar-links {
    gap: 5px;
  }

  .order-topbar-links .order-back-link {
    padding-inline: 8px;
    font-size: .82rem;
  }

  .track-search-main {
    padding: 22px 12px;
  }

  .track-search-card {
    border-radius: 22px;
    padding: 22px 17px;
  }

  .track-search-form {
    grid-template-columns: 1fr;
  }

  .track-search-form .order-primary-button,
  .track-search-form .order-form-message {
    grid-column: 1;
  }

  .track-result-top {
    align-items: flex-start;
  }

  .track-result-status {
    max-width: 46%;
    text-align: center;
  }
}


/* v6: delivered confirmation and order reviews */
.tracking-review {
  margin-top: 18px;
  border: 1px solid #edcbd5;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffafd, #fff3f7);
  padding: clamp(20px, 4vw, 28px);
}

.tracking-review h2 {
  margin: 6px 0 8px;
  color: #30282a;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.tracking-review p {
  color: #74686b;
  line-height: 1.55;
}

.tracking-arrival-question > .order-primary-button {
  width: 100%;
  margin-top: 8px;
}

.tracking-review-form {
  display: grid;
  gap: 16px;
}

.tracking-review-form > p {
  margin: 0;
}

.review-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-field legend,
.tracking-review-comment > span {
  display: block;
  margin-bottom: 7px;
  color: #3b3235;
  font-size: .88rem;
  font-weight: 800;
}

.review-star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.review-star-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-star-picker label {
  color: #dacbd0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

.review-star-picker label:hover,
.review-star-picker label:hover ~ label,
.review-star-picker input:checked ~ label {
  color: #d78a1f;
}

.review-star-picker label:hover {
  transform: translateY(-1px);
}

.review-star-picker input:focus-visible + label {
  outline: 3px solid rgba(173, 20, 87, .22);
  outline-offset: 3px;
  border-radius: 4px;
}

.tracking-review-comment {
  display: grid;
}

.tracking-review-comment textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  border: 1px solid #e9ccd4;
  background: #fff;
  color: #30282a;
  border-radius: 13px;
  padding: 13px 14px;
  font: inherit;
  outline: 0;
}

.tracking-review-comment textarea:focus {
  border-color: #d77e99;
  box-shadow: 0 0 0 4px rgba(215, 126, 153, .14);
}

.tracking-review-thanks {
  text-align: center;
}

.tracking-review-check {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f7ef;
  color: #147d55;
  font-size: 1.4rem;
  font-weight: 900;
}

.tracking-review-result-stars {
  margin: 12px 0 8px;
  color: #d78a1f;
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.tracking-review-thanks > p {
  margin: 0 0 16px;
  color: #5f5457;
}


/* ===== v7 ordering readability + brand weight ===== */
.order-page,
.order-page button,
.order-page input,
.order-page textarea,
.order-page select {
  font-family: 'Atkinson Hyperlegible', Arial, Helvetica, sans-serif;
}

.order-brand-mark {
  font-family: 'Lobster Two', Georgia, serif;
  font-weight: 700;
  background: #951347;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #951347, 0 8px 18px rgba(149, 19, 71, .2);
}

.order-brand strong {
  font-family: 'Lobster Two', Georgia, serif;
  font-weight: 700;
  color: #8f113f;
  font-size: 1.16rem;
}

.order-intro h1,
.order-menu-header h1,
.order-modal h2,
.tracking-card h1,
.track-search-card h1,
.track-results-head h2,
.tracking-review h2 {
  font-family: 'Atkinson Hyperlegible', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

.order-primary-button {
  background: #951347;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(149, 19, 71, .22);
}

.order-secondary-button,
.order-back-link,
.order-kicker,
.order-address-form label > span,
.checkout-form label > span,
.builder-label {
  font-weight: 700;
}

/* ===== v8.1 ordering closed state ===== */
.ordering-closed-overlay[hidden] {
  display: none !important;
}

.ordering-closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(253, 249, 248, .9);
  backdrop-filter: blur(8px);
}

.ordering-closed-card {
  width: min(100%, 580px);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 46px);
  text-align: center;
  box-shadow: 0 28px 80px rgba(91, 49, 62, .18);
}

.ordering-closed-card h2 {
  margin: 8px 0 12px;
  color: var(--brand-deep);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.ordering-closed-card p {
  margin: 0 auto;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.6;
}

.ordering-closed-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ordering-closed-actions a {
  text-decoration: none;
}


/* v8.2: out-of-range dialog and receipt preference */
.checkout-checkbox {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px !important;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid #e9ccd4;
  border-radius: 13px;
  background: #fff8fa;
  cursor: pointer;
}
.checkout-checkbox input {
  width: 20px !important;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #ad1457;
}
.checkout-checkbox > span {
  display: grid;
  gap: 2px;
}
.checkout-checkbox strong {
  color: #3b3235;
  font-size: .9rem;
}
.checkout-checkbox small {
  color: #74686b;
  font-size: .78rem;
  line-height: 1.4;
}
.range-modal {
  width: min(100%, 520px);
  text-align: center;
}
.range-modal-button {
  margin-top: 22px;
  width: 100%;
}


/* v8.3: allergen callout, minimum order and previous-order search */
.order-allergen-notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(173, 20, 87, .22);
  border-left: 5px solid var(--brand-deep, #ad1457);
  border-radius: 16px;
  background: rgba(255, 247, 249, .92);
}

.order-allergen-notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-deep, #ad1457);
  font-weight: 800;
}

.order-allergen-notice p {
  margin: 0;
  color: var(--muted, #725c63);
  line-height: 1.5;
}

.order-allergen-notice a {
  color: var(--brand-deep, #ad1457);
  font-weight: 800;
}

.basket-minimum-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff3cd;
  border: 1px solid #f1d78b;
  color: #6b5100;
  font-size: .9rem;
  font-weight: 700;
}

.track-result-items {
  margin: 10px 0 2px;
  color: var(--muted, #725c63);
  font-size: .88rem;
  line-height: 1.45;
}

body.dark .order-allergen-notice {
  background: rgba(173, 20, 87, .09);
}


.order-empty-category {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 26px;
  border: 1px dashed var(--order-border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  text-align: center;
  color: var(--order-muted);
}
.order-empty-category strong { color: var(--order-text); }


.checkout-privacy-note {
  margin: 4px 0 0;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--order-muted, #6d6265);
}
.checkout-privacy-note a { color: #951347; font-weight: 700; }

.builder-quantity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.builder-quantity-choice { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; border: 1px solid rgba(127,127,127,.22); border-radius: 12px; }
.builder-quantity-choice select { min-width: 72px; }
.builder-label small { display: block; margin-top: .2rem; font-weight: 500; opacity: .72; }
@media (max-width: 620px) { .builder-quantity-grid { grid-template-columns: 1fr; } }


/* ===== v9.3 brand refresh ===== */

.order-page {
  background:
    radial-gradient(circle at top left, rgba(233, 207, 190, 0.18), transparent 34%),
    #fcf7f2;
  color: #382f2e;
}

.order-topbar {
  background: rgba(255, 250, 247, .96);
  border-bottom-color: #ead7d0;
}

.order-brand-mark {
  background: #fffaf6 url('/assets/images/logo-mark.svg') center / cover no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: 0 10px 24px rgba(183, 70, 97, 0.14);
}

.order-brand strong {
  color: #b74661;
}

.order-brand small,
.order-back-link,
.order-intro p,
.order-menu-header p,
.order-modal-intro,
.order-form-message,
.order-info-strip span {
  color: #766967;
}

.order-back-link:hover {
  color: #b74661;
}

.order-kicker,
.order-info-strip strong,
.builder-label,
.order-address-form label > span,
.checkout-form label > span,
.pass-form label > span {
  color: #8f4055;
}

.order-intro h1,
.order-menu-header h1,
.order-modal h2,
.tracking-card h1 {
  color: #8f4055;
}

.order-address-card,
.order-basket-card,
.order-section-card,
.order-cart-panel,
.checkout-summary,
.tracking-card,
.order-status-shell,
.order-summary-card,
.order-review-panel,
.order-modal {
  border-color: rgba(210, 176, 157, 0.34);
  box-shadow: 0 18px 40px rgba(122, 82, 86, 0.08);
}

.order-step-number,
.order-primary-button,
.status-badge.is-ready,
.status-badge.is-with-driver,
.review-submit-button {
  background: linear-gradient(135deg, #d66a83, #be4b64);
}

.order-primary-button:hover:not(:disabled),
.review-submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #cb5e79, #ac425b);
}

.order-secondary-button {
  border-color: #ead7d0;
  color: #5f5251;
}

.order-address-form input,
.checkout-form input,
.checkout-form textarea,
.pass-form input,
.builder-select,
.builder-checkbox-card,
.builder-quantity-input {
  border-color: #e6d2cb;
  background: #fffdfa;
}

.order-address-form input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.pass-form input:focus,
.builder-select:focus,
.builder-quantity-input:focus {
  border-color: #d48097;
  box-shadow: 0 0 0 4px rgba(212, 128, 151, .14);
}

.status-progress-step.is-active .status-progress-dot,
.status-progress-step.is-complete .status-progress-dot {
  background: #b74661;
  border-color: #b74661;
}
