:root {
  --burgundy: #76222b;
  --burgundy-dark: #4d1119;
  --tomato: #bc3c2e;
  --olive: #5f7338;
  --ink: #221f1f;
  --muted: #6a4f44;
  --paper: #f1dbb7;
  --surface: #f8e8c7;
  --white: #fff7e6;
  --line: rgba(118, 34, 43, 0.32);
  --shadow: 0 16px 34px rgba(57, 29, 18, 0.13);
  --menu-heading: "Marker Felt", "Chalkboard SE", "Comic Sans MS", "Bradley Hand", fantasy, cursive;
  --menu-body: "Comic Sans MS", "Chalkboard SE", "Marker Felt", "Trebuchet MS", cursive;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--menu-body);
  background:
    linear-gradient(90deg, rgba(118, 34, 43, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(118, 34, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 12px;
  border: 3px solid var(--burgundy);
  border-radius: 0 0 24px 24px;
  background: rgba(248, 232, 199, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand-logo {
  display: block;
  width: clamp(58px, 8vw, 78px);
  aspect-ratio: 1;
  height: auto;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(34, 31, 31, 0.14);
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
}

.brand-copy p,
.eyebrow,
.category,
.results-bar p {
  margin: 0;
  color: var(--muted);
  font-family: var(--menu-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  color: var(--burgundy-dark);
  font-family: var(--menu-heading);
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-logo {
  display: block;
  width: min(178px, 54vw);
  aspect-ratio: 1;
  height: auto;
  margin-bottom: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(34, 31, 31, 0.13);
  object-fit: cover;
}

.install-button,
.cart-button,
.add-button,
.text-button,
.quantity-button,
.segmented button,
.icon-link {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--menu-heading);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.install-button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: var(--burgundy);
  box-shadow: inset 0 -2px 0 rgba(34, 31, 31, 0.22);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-left: auto;
  padding: 0 14px;
  color: var(--burgundy);
  border: 2px solid rgba(118, 34, 43, 0.35);
  background: rgba(255, 247, 230, 0.74);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--burgundy);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 22px;
  align-items: start;
  padding-top: 22px;
}

.menu-panel,
.source-panel {
  border: 4px solid var(--burgundy);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.menu-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.menu-panel::before,
.source-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(118, 34, 43, 0.44);
  border-radius: 26px;
  pointer-events: none;
}

.menu-panel > *,
.source-panel > * {
  position: relative;
}

.source-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  display: flex;
  max-height: calc(100vh - 116px);
  flex-direction: column;
  background: var(--surface);
}

.controls,
.source-heading,
.results-bar,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.controls h2,
.source-heading h2 {
  margin: 4px 0 0;
  color: var(--burgundy-dark);
  font-family: var(--menu-heading);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.status-pill {
  min-width: 78px;
  padding: 8px 10px;
  border: 2px solid rgba(95, 115, 56, 0.42);
  border-radius: 8px;
  color: var(--olive);
  background: rgba(255, 247, 230, 0.7);
  font-family: var(--menu-heading);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.status-pill.offline {
  color: var(--tomato);
  background: rgba(208, 72, 50, 0.13);
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 18px;
  padding: 0 14px;
  border: 2px solid var(--burgundy);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.68);
}

.search-box span {
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}

.search-box:focus-within {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.segmented button {
  min-height: 44px;
  padding: 0 10px;
  color: var(--burgundy);
  border: 2px solid rgba(118, 34, 43, 0.3);
  background: rgba(255, 247, 230, 0.7);
  white-space: nowrap;
}

.segmented button[aria-pressed="true"] {
  color: var(--white);
  background: var(--burgundy);
}

.results-bar {
  min-height: 42px;
  margin-top: 8px;
}

.text-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--burgundy);
  background: transparent;
}

.text-button:hover,
.cart-button:hover,
.add-button:hover,
.quantity-button:hover,
.segmented button:hover,
.install-button:hover,
.icon-link:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.menu-card {
  min-height: 190px;
  padding: 18px 4px 16px;
  border: 0;
  border-bottom: 2px solid rgba(118, 34, 43, 0.28);
  border-radius: 0;
  background: transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  border-color: rgba(118, 34, 43, 0.62);
  box-shadow: none;
  outline: 0;
  transform: none;
}

.category {
  color: var(--burgundy);
}

.menu-card h3 {
  margin: 4px 0 0;
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: clamp(25px, 3.3vw, 36px);
  line-height: 1.05;
  text-transform: uppercase;
}

.card-ingredients,
.card-removed {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card-ingredients .ingredient-pill:not(.empty):not(:last-child)::after {
  content: " /";
  margin-left: 7px;
  color: var(--burgundy);
}

.ingredient-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #2f2824;
  background: transparent;
  box-shadow: none;
  font-family: var(--menu-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.ingredient-pill.empty {
  color: var(--muted);
  background: transparent;
}

.card-removed {
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(208, 72, 50, 0.24);
}

.removed-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--tomato);
  font-family: var(--menu-heading);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ingredient-pill.removed {
  color: var(--tomato);
  background: rgba(208, 72, 50, 0.08);
  border-color: rgba(208, 72, 50, 0.2);
  text-decoration: line-through;
}

.card-removed:empty {
  display: none;
}

.pizza-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(118, 34, 43, 0.28);
  border-left: 5px solid var(--burgundy);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 247, 230, 0.62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(118, 34, 43, 0.22);
}

.card-size-options {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 6px;
  margin-right: auto;
}

.card-size-options[hidden] {
  display: none;
}

.size-chip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(118, 34, 43, 0.34);
  border-radius: 8px;
  color: var(--burgundy);
  background: rgba(255, 247, 230, 0.66);
  cursor: pointer;
  font-family: var(--menu-heading);
  font-size: 13px;
  font-weight: 900;
}

.size-chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--burgundy);
}

.add-button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--white);
  background: var(--burgundy);
  box-shadow: inset 0 -2px 0 rgba(34, 31, 31, 0.24);
}

.source-heading {
  padding: 20px 20px 12px;
}

.source-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-link {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 38px;
  padding: 0 10px;
  color: var(--white);
  background: var(--burgundy);
  font-size: 13px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(34, 31, 31, 0.22);
}

.poster-stack {
  overflow: auto;
}

.poster-link {
  display: block;
  margin: 0;
  border-top: 2px solid rgba(118, 34, 43, 0.24);
  background: var(--paper);
}

.poster-link img {
  display: block;
  width: 100%;
  height: auto;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 247, 230, 0.58);
  font-weight: 800;
  text-align: center;
}

body.customizer-open,
body.cart-open,
body.add-to-home-open {
  overflow: hidden;
}

.customizer[hidden],
.cart-drawer[hidden],
.add-to-home-guide[hidden] {
  display: none;
}

.customizer,
.cart-drawer,
.add-to-home-guide {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  padding: 18px;
}

.customizer {
  align-items: end;
  justify-items: end;
}

.cart-drawer {
  align-items: stretch;
  justify-items: end;
}

.add-to-home-guide {
  align-items: center;
  justify-items: center;
}

.customizer-backdrop,
.cart-backdrop,
.add-to-home-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(34, 31, 31, 0.38);
  cursor: pointer;
}

.add-to-home-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  border: 4px solid var(--burgundy);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(34, 31, 31, 0.3);
  background: var(--surface);
}

.add-to-home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.add-to-home-header h2 {
  margin: 4px 0 0;
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
}

.add-to-home-intro,
.add-to-home-tip {
  color: #322c2a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.add-to-home-intro {
  margin: 18px 0 0;
}

.add-to-home-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-left: 28px;
}

.add-to-home-steps li {
  padding-left: 4px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.add-to-home-steps li::marker {
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-weight: 900;
}

.add-to-home-tip {
  margin: 0 0 16px;
  padding: 12px;
  border: 2px solid rgba(95, 115, 56, 0.24);
  border-radius: 8px;
  background: rgba(95, 115, 56, 0.1);
}

.customizer-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border: 4px solid var(--burgundy);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(34, 31, 31, 0.26);
  background: var(--surface);
}

.customizer-header,
.cart-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.customizer-header h2,
.cart-header h2 {
  margin: 4px 0 0;
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}

.close-button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--burgundy);
  cursor: pointer;
  font-family: var(--menu-heading);
  font-weight: 900;
}

.customizer-description {
  margin: 14px 0 0;
  color: #322c2a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.customizer-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.crust-section,
.size-section {
  margin-top: 14px;
  padding: 12px;
  border: 2px solid rgba(118, 34, 43, 0.32);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.62);
}

.section-heading {
  align-items: center;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
  color: var(--burgundy-dark);
  font-family: var(--menu-heading);
  font-size: 24px;
  text-transform: uppercase;
}

.crust-options,
.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.crust-option,
.size-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border: 2px solid rgba(118, 34, 43, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.76);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--menu-heading);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.crust-option input,
.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crust-radio,
.size-radio {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid rgba(118, 34, 43, 0.5);
  border-radius: 999px;
  background: var(--white);
}

.crust-option.selected,
.size-option.selected {
  border-color: rgba(118, 34, 43, 0.56);
  background: rgba(118, 34, 43, 0.12);
}

.crust-option.selected .crust-radio,
.size-option.selected .size-radio {
  border-color: var(--burgundy);
}

.crust-option.selected .crust-radio::after,
.size-option.selected .size-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--burgundy);
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ingredient-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border: 2px solid rgba(118, 34, 43, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.76);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.ingredient-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ingredient-check {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid var(--burgundy);
  border-radius: 7px;
  background: var(--burgundy);
  box-shadow: 0 4px 10px rgba(118, 34, 43, 0.16);
}

.ingredient-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ingredient-name {
  line-height: 1.25;
}

.ingredient-row.removed {
  color: var(--muted);
  background: rgba(34, 31, 31, 0.04);
  text-decoration: line-through;
}

.ingredient-row.removed .ingredient-check {
  border-color: rgba(110, 100, 97, 0.46);
  background: transparent;
  box-shadow: none;
}

.ingredient-row.removed .ingredient-check::after {
  display: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.summary-block {
  min-height: 98px;
  padding: 12px;
  border: 2px solid rgba(95, 115, 56, 0.2);
  border-radius: 8px;
  background: rgba(95, 115, 56, 0.1);
}

.summary-block.removed {
  border-color: rgba(188, 60, 46, 0.2);
  background: rgba(188, 60, 46, 0.1);
}

.summary-block p:last-child {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.customizer-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 10px;
  margin-top: 14px;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 247, 230, 0.72);
}

.done-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--burgundy);
  cursor: pointer;
  font-family: var(--menu-heading);
  font-weight: 900;
  text-transform: uppercase;
}

.cart-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  padding: 18px;
  border: 4px solid var(--burgundy);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(34, 31, 31, 0.26);
  background: var(--surface);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  margin-top: 14px;
  overflow: auto;
  padding-right: 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(118, 34, 43, 0.2);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.72);
}

.cart-item-copy {
  min-width: 0;
}

.cart-item h3 {
  margin: 4px 0 0;
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}

.cart-customizations {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quantity-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--burgundy);
  background: rgba(122, 31, 43, 0.08);
  font-size: 18px;
}

.cart-quantity {
  display: grid;
  place-items: center;
  height: 34px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-family: var(--menu-heading);
  font-weight: 900;
}

.remove-cart-item {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 30px;
  padding-inline: 0;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 14px 0 0;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 247, 230, 0.58);
  font-weight: 800;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.checkout-options {
  display: grid;
  gap: 13px;
  max-height: 44vh;
  margin-top: 14px;
  overflow: auto;
  padding-top: 14px;
  padding-right: 2px;
  border-top: 1px solid var(--line);
}

.checkout-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-group legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--menu-heading);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
}

.checkout-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.checkout-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkout-choice span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 7px 8px;
  border: 2px solid rgba(118, 34, 43, 0.2);
  border-radius: 8px;
  color: var(--burgundy-dark);
  background: rgba(255, 247, 230, 0.72);
  font-family: var(--menu-heading);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.checkout-choice input:checked + span {
  border-color: var(--burgundy);
  color: var(--white);
  background: var(--burgundy);
  box-shadow: inset 0 -2px 0 rgba(34, 31, 31, 0.2);
}

.checkout-choice input:focus-visible + span {
  outline: 3px solid rgba(95, 115, 56, 0.58);
  outline-offset: 2px;
}

.customer-details,
.delivery-details {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 2px solid rgba(118, 34, 43, 0.22);
  border-radius: 10px;
  background: rgba(255, 247, 230, 0.72);
}

.delivery-details[hidden] {
  display: none;
}

.order-details-heading h3 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--menu-heading);
  font-size: 18px;
  text-transform: uppercase;
}

.order-details-heading p {
  margin: 5px 0 0;
  color: var(--burgundy-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.delivery-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.delivery-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.delivery-field-wide {
  grid-column: 1 / -1;
}

.delivery-field input,
.delivery-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 2px solid rgba(118, 34, 43, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.delivery-field textarea {
  min-height: 76px;
  resize: vertical;
}

.delivery-field input:focus,
.delivery-field textarea:focus {
  border-color: var(--burgundy);
  outline: 3px solid rgba(95, 115, 56, 0.34);
  outline-offset: 1px;
}

.cart-footer {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-footer p:last-child {
  margin: 4px 0 0;
  color: var(--burgundy-dark);
  font-family: var(--menu-heading);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-footer-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 10px;
}

.cart-footer-actions .text-button {
  border: 1px solid var(--line);
  background: rgba(255, 247, 230, 0.72);
}

.order-confirmation {
  margin: 0;
  padding: 10px 12px;
  border: 2px solid rgba(95, 115, 56, 0.35);
  border-radius: 8px;
  color: #34451f;
  background: rgba(232, 239, 211, 0.86);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.order-confirmation[hidden] {
  display: none;
}

.cart-toast {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 40;
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--burgundy);
  box-shadow: 0 14px 30px rgba(34, 31, 31, 0.22);
  font-family: var(--menu-heading);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.cart-toast[hidden] {
  display: none;
}

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

  .source-panel {
    position: static;
    max-height: none;
  }

  .poster-stack {
    overflow: visible;
  }

  .poster-link img {
    max-height: 640px;
    object-fit: contain;
  }
}

@media (max-width: 740px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 4px;
  }

  .brand-logo {
    width: 58px;
  }

  .brand-copy h1 {
    display: none;
  }

  .brand-copy p {
    display: none;
  }

  .layout {
    gap: 14px;
    padding-top: 14px;
  }

  .menu-panel {
    padding: 12px;
  }

  .controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls h2,
  .source-heading h2 {
    font-size: 24px;
  }

  .status-pill {
    min-width: 0;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 70px;
    padding-block: 10px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 0;
  }

  .card-actions {
    justify-content: stretch;
  }

  .card-actions .text-button,
  .add-button {
    flex: 1 1 120px;
  }

  .card-size-options {
    order: -1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-right: 0;
  }

  .size-chip {
    width: 100%;
  }

  .customizer {
    padding: 10px;
  }

  .cart-drawer,
  .add-to-home-guide {
    padding: 10px;
  }

  .customizer-panel,
  .cart-panel,
  .add-to-home-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .customizer-header h2,
  .cart-header h2,
  .add-to-home-header h2 {
    font-size: 25px;
  }

  .ingredient-list,
  .crust-options,
  .summary-grid,
  .customizer-actions,
  .delivery-fields,
  .cart-footer-actions {
    grid-template-columns: 1fr;
  }

  .delivery-field-wide {
    grid-column: auto;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .quantity-control {
    justify-self: start;
  }

  .cart-toast {
    inset: auto 10px 10px;
  }
}
