.page-head {
  max-width: 1360px;
  margin: auto;
  padding: 45px 5% 15px;
}
.page-head p:last-child {
  color: var(--muted);
  max-width: 650px;
}
.page-head h1 {
  font-size: clamp(2.5rem, 4.3vw, 4rem);
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 25px;
}
.size-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}
.size-card .price {
  font-size: 3rem;
  line-height: 1.3;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 15px;
}
.size-card small {
  color: var(--muted);
  display: block;
}
.size-card .button {
  margin-top: 25px;
  width: 100%;
}
.drink-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel h2 {
  font-size: 1.6rem;
}
.panel h3 {
  font-size: 1.15rem;
}
.panel-body {
  padding: 26px;
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.builder-summary {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.summary-photo {
  height: 200px;
  overflow: hidden;
}
.summary-photo img {
  width: 100%;
  height: 100%;
  object-position: 50% 65%;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 32px;
  min-width: 0;
}
legend {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.step-number {
  display: inline-flex;
  height: 30px;
  width: 30px;
  align-items: center;
  justify-content: center;
  background: #ebdfd3;
  color: var(--red);
  border-radius: 50%;
  font-size: 1rem;
  margin-right: 8px;
}
.builder-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.builder-sizes.two {
  grid-template-columns: 1fr 1fr;
}
.choice-card {
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 5px;
}
.choice-card input {
  position: absolute;
  top: 15px;
  right: 12px;
  margin: 0;
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  min-height: 0;
}
.choice-card:has(input:checked) {
  border-color: var(--red);
  background: #fbefea;
  box-shadow: inset 0 0 0 1px var(--red);
}
.choice-card strong {
  padding-right: 18px;
  font-size: 0.9375rem;
}
.choice-card strong span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}
.choice-card small {
  font-size: 0.75rem;
  color: var(--muted);
}
.choice-card b {
  font-size: 1.3rem;
}
.topping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.topping-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  background: var(--paper);
  min-height: 52px;
}
.topping-choice:has(input:checked) {
  background: #fbefea;
  border-color: var(--red);
}
.topping-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin: 0;
  flex-shrink: 0;
  min-height: 0;
}
.topping-choice small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.topping-choice span {
  font-size: 0.875rem;
}
.field-hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 10px 0 18px;
}
.totals {
  margin: 20px 0;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  font-size: 0.9375rem;
}
.totals dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.totals .total {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.35rem;
}
.quantity-input {
  max-width: 100px;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 7px;
}
input,
select,
textarea {
  border: 1px solid #777e70;
  background: var(--paper);
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--ink);
  width: 100%;
  min-height: 46px;
  margin: 0;
}
textarea {
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
}
textarea + small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
input + label,
textarea + label,
select + label {
  margin-top: 17px;
}
.quantity-input + label {
  margin-top: 20px;
}
.error {
  background: #fff0ed;
  color: #872516;
  border: 1px solid #c36457;
  border-radius: 7px;
  padding: 15px;
  margin: 12px 0;
}
.error a {
  text-decoration: underline;
}
.field-error {
  color: #9c2217;
  display: block;
  min-height: 1.5rem;
  margin-top: 5px;
}
input[aria-invalid='true'] {
  border-color: #a22920;
}
.success {
  background: #eff4ea;
  border-color: #8d9f82;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.cart-items {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}
.cart-item {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item:last-child {
  border: 0;
}
.item-monogram {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ece3d5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--red);
  flex-shrink: 0;
}
.cart-item h2 {
  font-size: 1.125rem;
}
.cart-item p {
  font-size: 0.875rem;
  margin: 6px 0;
  color: var(--muted);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cart-item-price {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}
.cart-item-price input {
  width: 70px;
}
.item-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.text-button {
  background: none;
  border: 0;
  color: var(--red);
  padding: 10px 0;
  min-height: 44px;
  font-size: 0.875rem;
  text-decoration: underline;
}
.add-pizza {
  margin: 15px 0 24px;
}
.order-summary {
  position: sticky;
  top: 24px;
}
.order-summary > small {
  display: block;
  color: var(--muted);
  margin-top: 18px;
}
.inline-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.inline-field input {
  min-width: 0;
  flex: 1;
}
.inline-field .button {
  flex-shrink: 0;
  padding-inline: 16px;
}
.promotion-applied {
  font-size: 0.875rem;
}
.promotion-applied .text-button {
  margin-left: 10px;
}
.drinks-panel h2 {
  font-size: 1.3rem;
}
.drinks-panel p {
  font-size: 0.875rem;
  color: var(--muted);
}
.drink-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.drink-form > div {
  flex: 1;
  min-width: 0;
}
.empty {
  text-align: center;
  padding: 50px 25px;
}
.empty p {
  color: var(--muted);
}
.empty .button {
  margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.radio-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin: 0;
  min-height: 48px;
}
.tracking-layout {
  max-width: 1060px;
}
.tracking-estimate {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px;
  background: #f0f1e8;
  border-radius: 9px;
  margin: 25px 0;
}
.tracking-estimate strong {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: -0.05em;
}
.tracking-estimate span,
.tracking-estimate small {
  display: block;
}
.tracking-estimate > div:last-child {
  align-self: center;
}
.timeline {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 35px 0;
  gap: 10px;
}
.timeline li {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  gap: 12px;
}
.timeline li:before {
  content: '';
  position: absolute;
  top: 19px;
  height: 2px;
  background: var(--border);
  left: calc(-50% - 5px);
  width: 100%;
  z-index: 0;
}
.timeline li:first-child:before {
  display: none;
}
.timeline .done:before {
  background: var(--green);
}
.timeline-dot {
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e9e1;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 700;
}
.done .timeline-dot {
  background: var(--green);
  color: white;
}
.timeline small {
  display: block;
  color: var(--red);
  font-size: 0.75rem;
}
.tracking-meta {
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.demo-controls .muted {
  font-size: 0.75rem;
}
.order-line-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.order-line-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.order-line-list small,
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 5px;
  background: #efe5dc;
  color: #69391f;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge.good {
  background: #e5eddf;
  color: #36513b;
}
.badge.warning {
  background: #fff0d8;
  color: #765000;
}
.rewards-banner {
  background: var(--green);
  color: var(--paper);
  padding: 40px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 44px;
}
.rewards-banner .eyebrow {
  color: #f0d8b0;
}
.rewards-banner h2 {
  font-size: 5rem;
  letter-spacing: -0.07em;
}
.rewards-banner h2 span {
  font-size: 1.125rem;
  letter-spacing: 0;
  margin-left: 18px;
}
.rewards-banner small {
  display: block;
  color: #e1e7dc;
}
progress {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 10px;
  margin: 17px 0 22px;
  border: 0;
  accent-color: #f4d7ab;
}
progress::-webkit-progress-bar {
  background: #71816b;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #f4d7ab;
  border-radius: 10px;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.offer p {
  color: var(--muted);
  flex: 1;
}
.offer .eyebrow {
  color: var(--red);
  flex: 0;
}
.offer small {
  display: block;
  margin-top: 15px;
  color: var(--muted);
}
.offer .totals {
  width: 100%;
}
.account-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 35px;
}
.account-grid aside p {
  overflow-wrap: anywhere;
}
.account-grid aside select + small {
  display: block;
  margin-top: 12px;
}
.account-grid aside > .text-link {
  margin-top: 20px;
}
.avatar {
  width: 60px;
  height: 60px;
  background: #e8dfd0;
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: Georgia, serif;
  margin-bottom: 20px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 25px 0;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 35px;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
  align-self: start;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.chat-header h2 {
  font-size: 1.125rem;
}
.chat-header small {
  color: var(--muted);
}
.assistant-icon {
  height: 42px;
  width: 42px;
  background: var(--red);
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
}
.chat-messages {
  padding: 25px;
  max-height: 450px;
  min-height: 300px;
  overflow-y: auto;
}
.chat-message {
  padding: 14px 18px;
  background: #f0f0e8;
  border-radius: 0 12px 12px;
  max-width: 90%;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.chat-message.customer {
  margin-left: auto;
  background: #f6e9e3;
  border-radius: 12px 0 12px 12px;
}
.chat-message small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.chat-message p {
  font-size: 0.9375rem;
  margin: 7px 0 0;
}
.chat-panel form {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.quick-question {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  padding: 15px 0;
  min-height: 48px;
}
.quick-question span {
  color: var(--red);
}
dialog {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 14px;
  padding: 28px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  color: var(--ink);
}
dialog::backdrop {
  background: #19221888;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 1.6rem;
}
.icon-button {
  border: 0;
  background: #eeede5;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.dialog-heading + form label {
  margin-top: 15px;
}
.dialog-heading + form fieldset {
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #263f2d;
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  box-shadow: 0 6px 25px #0002;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
