#offer-dialog {
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px #24192b4d;
  color: var(--ink);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 0;
  width: min(540px, calc(100% - 32px));
}

#offer-dialog::backdrop {
  background: #201328a6;
  backdrop-filter: blur(3px);
}

#dialog-body > .dialog-panel {
  background: #fff;
  position: relative;
}

.dialog-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  height: 42px;
  justify-items: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
}

.dialog-close:hover,
.quantity-stepper button:not(:disabled):hover {
  background: var(--page);
  color: var(--purple);
}

.dialog-close svg,
.quantity-stepper svg {
  height: 19px;
  width: 19px;
}

.dialog-photo {
  background: var(--page);
  display: block;
  height: clamp(145px, 25vh, 220px);
  object-fit: cover;
  width: 100%;
}

.dialog-content {
  padding: 25px 30px 30px;
}

.dialog-content.is-compact {
  padding-top: 42px;
}

.dialog-title {
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  letter-spacing: -.045em;
  line-height: 1.16;
  margin: 0;
}

.dialog-title:focus {
  outline: none;
}

.dialog-eyebrow {
  color: var(--purple);
  font-size: .875rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.dialog-merchant {
  font-weight: 700;
  margin: 6px 0 0;
}

.dialog-intro {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 16px;
}

.detail-list {
  background: var(--page);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 15px;
}

.detail-line dt,
.order-status {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.detail-line svg,
.order-status svg {
  color: var(--purple);
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.detail-line dt {
  font-size: .875rem;
  font-weight: 800;
}

.detail-line dd {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
  margin: 2px 0 0 27px;
}

.reservation-controls {
  display: grid;
  gap: 13px;
  margin-top: 19px;
}

.quantity-row,
.dialog-total {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.quantity-row span {
  color: var(--muted);
  display: block;
  font-size: .875rem;
  margin-top: 2px;
}

.quantity-stepper {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 40px minmax(26px, auto) 40px;
  justify-items: center;
  overflow: hidden;
}

.quantity-stepper button {
  align-items: center;
  background: #fff;
  border: 0;
  color: var(--purple);
  cursor: pointer;
  display: grid;
  height: 40px;
  justify-items: center;
  padding: 0;
  width: 40px;
}

.quantity-stepper button:focus-visible {
  outline-offset: -3px;
}

.quantity-stepper button:disabled,
.reservation-controls button:disabled {
  cursor: default;
  opacity: .46;
}

.quantity-stepper output {
  font-weight: 800;
}

.dialog-total {
  border-top: 1px solid var(--border);
  font-weight: 700;
  padding-top: 12px;
}

.dialog-total strong {
  color: var(--purple);
  font-size: 1.15rem;
}

.dialog-note {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  margin: 0;
}

.reservation-action > * {
  width: 100%;
}

.dialog-error {
  background: #fff0eb;
  border-radius: .65rem;
  color: #862d1d;
  font-size: .875rem;
  padding: .65rem .8rem;
}

.dialog-actions + .dialog-error {
  margin-top: .75rem;
}

.collection-notice {
  background: #fff4e4;
  border-radius: .75rem;
  color: #603b15;
  font-size: .9rem;
  grid-column: 1 / -1;
  padding: .75rem 1rem;
}

.collection-notice button {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: 800;
  padding: .25rem;
  text-decoration: underline;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.dialog-symbol,
.empty-icon {
  align-items: center;
  background: #eee5f5;
  border-radius: 17px;
  color: var(--purple);
  display: grid;
  height: 53px;
  justify-items: center;
  width: 53px;
}

.dialog-symbol {
  margin-bottom: 14px;
}

.dialog-symbol svg,
.empty-icon svg {
  height: 25px;
  width: 25px;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 240px;
  padding: 30px 22px;
  text-align: center;
}

.empty-state h2 {
  font-size: 1.25rem;
  letter-spacing: -.025em;
  margin: 12px 0 0;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 17px;
  max-width: 36ch;
}

#orders-list {
  display: grid;
  gap: 15px;
}

.order-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  padding: 16px;
}

.order-photo {
  align-self: stretch;
  background: var(--page);
  border-radius: 11px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  width: 100%;
}

.order-content h2 {
  font-size: 1.15rem;
  letter-spacing: -.03em;
  margin: 7px 0 3px;
}

.order-content p {
  color: var(--muted);
  margin: 0 0 10px;
}

.status-pill {
  background: var(--lime);
  border-radius: 50px;
  color: #304416;
  display: inline-block;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 5px 10px;
}

.status-pill.is-cancelled {
  background: var(--page);
  color: var(--muted);
}

.order-status {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
  margin-top: 5px;
}

.order-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-actions > strong {
  color: var(--purple);
}

.pickup-code {
  align-items: center;
  background: #eee5f5;
  border-radius: 10px;
  color: var(--purple);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  padding: 10px 12px;
}

.pickup-code span {
  font-size: .875rem;
  font-weight: 700;
}

.pickup-code strong {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .95rem;
  letter-spacing: .035em;
}

#toast {
  background: var(--ink);
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 10px 30px #24192b2e;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  position: fixed;
  right: 24px;
  z-index: 10;
}

@media (max-width: 650px) {
  .dialog-content {
    padding: 21px 20px 24px;
  }

  .order-card {
    gap: 12px;
    grid-template-columns: 79px minmax(0, 1fr);
    padding: 12px;
  }

  .order-actions {
    align-items: flex-start;
    border-top: 1px solid var(--border);
    flex-flow: row wrap;
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .order-actions > strong {
    align-self: center;
  }

  #toast {
    bottom: 76px;
    right: 16px;
  }
}
