.delivery-page {
  color: var(--green);
  line-height: 1.55;
}

.delivery-page a {
  text-underline-offset: 4px;
}

.delivery-page a:hover {
  color: var(--red);
}

.delivery-page button,
.delivery-page select,
.delivery-page summary {
  cursor: pointer;
}

.delivery-page main {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 36px;
  width: min(86rem, calc(100% - 3rem));
  max-width: 1112px;
  margin: 8px auto 60px;
}

.intro {
  padding: 32px 28px 0;
  overflow: hidden;
  border-radius: 32px;
}

.delivery-overview { min-width: 0; display: grid; gap: 24px; }
.delivery-area { padding: 24px; border-radius: 32px; scroll-margin-top: 24px; }
.delivery-area h2 { font-size: 27px; }
.delivery-area > p { margin: 12px 0 18px; }
.area-map { height: 360px; border-radius: 18px; isolation: isolate; background: #e9dfcb; }
.area-map:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.area-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.94); }
.area-map .leaflet-control-attribution a { color: #435a2e; }
.area-map .leaflet-control-zoom a { color: var(--green); width: 40px; height: 40px; line-height: 40px; }
.area-legend { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.area-legend > span { width: 17px; height: 17px; flex: none; border: 2px solid var(--green); border-radius: 50%; background: rgba(186,214,62,.35); }
.area-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 700; }
.delivery-page .area-actions button { width: auto; min-height: 44px; margin: 0; padding: 8px 12px; font-size: 12px; }
#map-status:empty { display: none; }

h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(48px, 5.8vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -1px;
}

.intro p {
  margin: 0 0 16px;
  font-size: 18px;
}

.intro .intro-note {
  max-width: 32ch;
  font-size: 15px;
}

.hunter {
  display: block;
  width: 76%;
  max-width: 255px;
  height: auto;
  margin: 24px auto 0;
}

.order {
  padding: 32px;
  border-radius: 32px;
}

h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

h3 {
  margin: 22px 0 12px;
  font-size: 23px;
}

#availability {
  margin: 0 0 24px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

label {
  display: block;
  min-width: 0;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 650;
}

.optional {
  font-weight: 400;
}

input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(67, 90, 46, 0.38);
  border-radius: 0.8rem;
  box-shadow: inset 0 1px 2px rgba(67, 90, 46, 0.04), 0 1px rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

input:hover,
select:hover {
  border-color: var(--green);
}

input:focus-visible,
select:focus-visible {
  background: #fff;
}

input::placeholder {
  color: #64695f;
}

.row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
}

.row.equal {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hint {
  margin: 8px 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

#phone-help,
#window-detail {
  margin-top: -6px;
}

.reward {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(67, 90, 46, 0.2);
}

.reward summary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
}

.reward a {
  font-size: 14px;
}

.subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(67, 90, 46, 0.2);
}

.subtotal strong {
  font-size: 26px;
  white-space: nowrap;
}

.privacy,
.help {
  font-size: 13px;
}

.delivery-page button {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  color: var(--green);
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.delivery-page button:hover:not(:disabled) {
  color: var(--green);
  background: #c5df54;
}

.delivery-page button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.delivery-page button.secondary {
  margin-top: 8px;
  color: var(--green);
  background: transparent;
  border-color: rgba(67, 90, 46, 0.32);
  text-decoration: underline;
}

.delivery-page button.secondary:hover {
  background: rgba(67, 90, 46, 0.06);
}

.confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}

.confirmation input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--green);
}

.address {
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 650;
  white-space: pre-line;
}

#message:empty {
  display: none;
}

#message {
  padding: 10px 14px;
  color: #8e2417;
  background: #fff2ef;
  border-left: 3px solid var(--red);
}

.help {
  margin: 24px 0 0;
}

@media (max-width: 760px) {
  .delivery-page main {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 1rem);
    max-width: 620px;
  }

  .intro {
    position: relative;
    min-height: 265px;
    padding: 24px;
  }

  .delivery-overview { gap: 20px; }
  .delivery-area { padding: 22px 18px; }
  .area-map { height: 330px; }

  h1 {
    max-width: 65%;
    font-size: 52px;
  }

  .intro p {
    max-width: 65%;
    font-size: 16px;
  }

  .intro .intro-note {
    max-width: 62%;
    font-size: 13px;
  }

  .hunter {
    position: absolute;
    right: -5px;
    bottom: -24px;
    width: 34%;
    max-width: 145px;
    max-height: 290px;
    margin: 0;
    object-fit: contain;
  }

  .order {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .row.equal {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order {
    padding: 22px 18px;
  }

  h1 {
    font-size: 46px;
  }
}
