.delivery-zone { scroll-margin-top: 155px; background: #f8faf5; padding: 62px 0 66px; }
.delivery-zone .zone-card { display: grid; grid-template-columns: minmax(310px,.76fr) minmax(0,1.24fr); border-radius: 27px; border: 1px solid #e0e9dd; background: #fff; overflow: hidden; box-shadow: 0 12px 32px #203b2010; }
.zone-content { padding: clamp(26px,4vw,52px); min-width: 0; display: flex; flex-direction: column; justify-content: center; color:#183c29; }
.zone-content h2 { margin: 0 0 12px; font-size: clamp(31px,4vw,50px); line-height: .99; letter-spacing: -.04em; color:#153723; }
.zone-content p { margin: 0 0 27px; color: #566a5c; font-size: 16px; line-height: 1.55; }
.zone-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.zone-field { position: relative; display: flex; align-items: center; }
.zone-field input { width: 100%; min-width: 0; padding: 0 13px; border: 1px solid #a7bba9; background:#fff; color:#183c29; border-radius: 10px; min-height: 46px; font: inherit; font-size: 15px; }
.zone-field input:focus { outline: 2px solid #428655; outline-offset: 1px; }
.zone-options { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 12; border: 1px solid #dbe6dd; border-radius: 9px; background: #fff; box-shadow: 0 9px 24px #16352220; max-height: 175px; overflow: auto; }
.zone-options button { display: block; width: 100%; padding: 11px 12px; text-align: left; font: inherit; font-size: 13px; color: #183c29; border: 0; border-bottom: 1px solid #eef3ee; background: #fff; cursor: pointer; }
.zone-options button:focus,.zone-options button:hover { background: #edf5ee; }
.zone-feedback { margin-top: 9px; min-height: 36px; color: #596b60; font-size: 13px; line-height: 1.42; }
.zone-feedback[data-state="ok"] { color: #196333; font-weight: 750; }
.zone-feedback[data-state="outside"],.zone-feedback[data-state="error"] { color: #a02e20; font-weight: 750; }
.zone-examples { margin-top: 11px; display: flex; gap: 6px; flex-wrap: wrap; }
.zone-examples button,.zone-link { border: 0; color: #26613b; background: #edf5ee; font: inherit; font-size: 12px; font-weight: 750; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.zone-link { margin-left: 0; vertical-align: middle; }
.zone-map-wrap { position: relative; min-height: 410px; isolation: isolate; }
#zone-map,.admin-map { min-height: 410px; height: 100%; background: #e9eee5; }
.zone-legend { position: absolute; z-index: 500; bottom: 24px; left: 12px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 7px; background: #fffffff2; box-shadow: 0 1px 5px #0001; color: #23432f; font-size: 12px; font-weight: 800; pointer-events: none; }
.zone-legend span { width: 12px; height: 12px; border: 2px solid #267548; background: #8fc69d; border-radius: 3px; }
.zone-checkout { margin-top: 6px; margin-bottom: 4px; }
.zone-checkout .zone-feedback { min-height: 0; margin-bottom: 8px; }
.zone-submit:disabled { opacity: .54; cursor: not-allowed; box-shadow: none; }
.zone-map-wrap .leaflet-marker-icon,.admin-map .leaflet-marker-icon { cursor: grab; }
.zone-pin { border: 2px solid white; border-radius: 50%; background: #1b7448; box-shadow: 0 1px 4px #2229; }
.zone-pin.out { background: #b44936; }
.zone-draw-pin { background:#fff; border:2px solid #365bc9; border-radius:50%; }
@media(max-width:760px) {
  .delivery-zone { padding: 35px 0 42px; scroll-margin-top: 123px; }
  .delivery-zone .zone-card { grid-template-columns: minmax(0,1fr); border-radius: 19px; }
  .zone-content { padding: 25px 20px 19px; }
  .zone-content p { margin-bottom: 17px; }
  .zone-map-wrap,#zone-map { min-height: 310px; }
}
html[data-theme=dark] .delivery-zone { background: var(--bg); }
html[data-theme=dark] .zone-card,html[data-theme=dark] .zone-options { background: var(--surface); border-color: var(--line); }
html[data-theme=dark] .zone-content,html[data-theme=dark] .zone-content h2,html[data-theme=dark] .zone-options button { color: var(--ink); }
html[data-theme=dark] .zone-content p,html[data-theme=dark] .zone-feedback { color: var(--muted); }
html[data-theme=dark] .zone-options button { background: var(--surface); border-color: var(--line); }
html[data-theme=dark] .zone-options button:hover,html[data-theme=dark] .zone-options button:focus { background: #244030; }
html[data-theme=dark] .zone-feedback[data-state="ok"] { color: #9ed6ac; }
html[data-theme=dark] .zone-feedback[data-state="outside"],
html[data-theme=dark] .zone-feedback[data-state="error"] { color: #ffab99; }
