/* Delivery zones, the map, and the 15/20/30-minute time grid in the order form. */

.zones {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 40px -36px rgba(18, 12, 7, 0.6);
}

.zones__map {
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream-200);
  isolation: isolate;
}

.zones__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--bark-900);
}

.zones__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-left: 5px solid var(--cream-300);
  border-radius: 10px;
  background: var(--cream-50);
}

.zone--free {
  border-left-color: var(--ember-600);
}

.zone--day {
  border-left-color: var(--wa-600);
}

.zone span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.zones__note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .zones {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    padding: 20px;
  }

  .zones__map {
    height: 340px;
  }
}

/* Time grid: every open slot is one button, booked ones are not shown. */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.slots .slot {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.slots .slot[aria-pressed='true'] {
  border-color: var(--bark-900);
  background: var(--bark-900);
  color: var(--cream-50);
  box-shadow: none;
}

.btn-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.55;
  transform: none;
}

.missing {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  color: var(--ember-700);
}

/* The order button can always be tapped. While something is missing it looks
   quieter, and tapping it opens the list of what is still needed. */
.btn-submit.is-waiting {
  filter: grayscale(0.5);
  opacity: 0.7;
}

.need {
  width: min(92vw, 420px);
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: #fffaf2;
  color: var(--ink, #22170e);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.need::backdrop {
  background: rgba(18, 12, 7, 0.6);
}

.need__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.need__intro {
  margin: 0 0 10px;
}

.need ul {
  margin: 0 0 20px;
  padding-left: 22px;
  font-weight: 700;
  line-height: 1.7;
}

/* Bank details on the thank-you screen for customers who pay by EFT. */
.bankbox {
  margin: 16px auto;
  padding: 16px 18px;
  max-width: 420px;
  border: 1px solid rgba(34, 23, 14, 0.14);
  border-radius: 14px;
  background: #fffaf2;
  color: #22170e;
  text-align: left;
}

.bankbox h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.bankbox dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
}

.bankbox dt {
  color: #5f4a37;
}

.bankbox dd {
  margin: 0;
  font-weight: 800;
  user-select: all;
}

.bankbox__note {
  margin: 12px 0 0;
  font-weight: 700;
}
