/* HostDev Delivery Zones: isolated frontend styles. No global HostCMS selectors. */
.hdz {
    --hdz-text: #18232c;
    --hdz-muted: #71808d;
    --hdz-border: rgba(29, 48, 62, .09);
    --hdz-shadow: 0 18px 55px rgba(13, 35, 49, .16);
    --hdz-radius: 22px;
    position: relative;
    isolation: isolate;
    min-height: 500px;
    height: clamp(480px, 58vw, 640px);
    width: 100%;
    overflow: hidden;
    border-radius: var(--hdz-radius);
    background: #e9f1f3;
    color: var(--hdz-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    box-shadow: 0 1px 0 var(--hdz-border);
}
.hdz, .hdz * { box-sizing: border-box; }
.hdz__map { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; }
.hdz__heading, .hdz__legend, .hdz__result, .hdz__reset { z-index: 2; }
.hdz__heading {
    position: absolute; left: 20px; top: 20px; width: min(335px, calc(100% - 88px));
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 12px 36px rgba(22, 38, 46, .08);
    backdrop-filter: blur(14px);
    padding: 18px 19px 10px;
}
.hdz__eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    color: #fa773f;
    font-weight: 850;
    margin-bottom: 5px;
}
.hdz__heading h3 {
    margin: 0; font-weight: 800; font-size: 20px;
    line-height: 1.2; letter-spacing: -.025em; color: var(--hdz-text);
}
.hdz__heading p { margin: 8px 0 0; color: var(--hdz-muted); font-size: 12px; }
.hdz__legend {
    position: absolute; left: 20px; top: 116px; width: min(335px, calc(100% - 88px));
    max-height: 235px; overflow: auto;
    padding: 6px 9px 10px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.75);
    border-top: 0; border-radius: 0 0 18px 18px;
    box-shadow: 0 13px 29px rgba(22, 38, 46, .10);
    backdrop-filter: blur(14px);
}
.hdz__legend-title {
    padding: 2px 9px 8px;
    color: #86939c; font-size: 11px; font-weight: 800;
    letter-spacing: .04em;
}
.hdz__zone {
    width: 100%; display: grid; grid-template-columns: 14px minmax(0,1fr);
    align-items: center; gap: 9px;
    border: 1px solid transparent; border-radius: 11px;
    padding: 9px 10px; margin: 0;
    font: inherit; background: transparent; text-align: left; color: var(--hdz-text);
    cursor: pointer; transition: background .18s, border-color .18s, transform .18s;
}
.hdz__zone:hover { background: #f3f6f9; }
.hdz__zone:active { transform: scale(.99); }
.hdz__zone:focus-visible, .hdz__reset:focus-visible { outline: 3px solid #326de6; outline-offset: 2px; }
.hdz__zone--active { background: #ecf4fc; border-color: #d6e6fc; }
.hdz__dot {
    height: 11px; width: 11px; display: block; border-radius: 50%;
    background: var(--zone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zone), transparent 83%);
}
.hdz__zone-details { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hdz__zone-free { font-size: 14px; line-height: 1.3; color: #1a2b33; font-weight: 820; font-variant-numeric: tabular-nums; }
.hdz__zone-meta, .hdz__zone-name { display: block; color: #62737d; font-size: 11px; line-height: 1.4; font-weight: 450; }
.hdz__zone-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdz__result {
    position: absolute; right: 18px; bottom: 18px;
    width: min(420px, calc(100% - 36px));
    display: flex; align-items: center; gap: 12px;
    min-height: 82px; padding: 15px 16px;
    border-radius: 18px; border: 1px solid var(--hdz-border);
    background: rgba(255,255,255,.98);
    box-shadow: var(--hdz-shadow); backdrop-filter: blur(16px);
}
.hdz__result-icon {
    width: 39px; height: 39px; flex: none; border-radius: 13px;
    display: grid; place-items: center; font-weight: 900; font-size: 22px;
    background: #e9f0fa; color: #547eb6;
}
.hdz__result[data-state="valid"] .hdz__result-icon { background: #dcf8e9; color: #138f5b; }
.hdz__result[data-state="invalid"] .hdz__result-icon,
.hdz__result[data-state="outside"] .hdz__result-icon,
.hdz__result[data-state="error"] .hdz__result-icon { background: #fff0e7; color: #e06637; }
.hdz__result[data-state="loading"] .hdz__result-icon { animation: hdz-pulse 1.2s ease-in-out infinite alternate; }
.hdz__result-copy { flex: 1; min-width: 0; }
.hdz__result-title { font-size: 15px; font-weight: 850; line-height: 1.3; }
.hdz__result-message { font-size: 11px; color: var(--hdz-muted); margin-top: 7px; }
.hdz__result-extra { display: flex; gap: 5px 12px; flex-wrap: wrap; margin-top: 6px; }
.hdz__result-extra:empty { display: none; }
.hdz__result-detail { color: #63727c; font-size: 12px; line-height: 1.4; }
.hdz__result-detail b { color: #30424c; font-weight: 700; font-variant-numeric: tabular-nums; }
.hdz__chip { padding: 3px 7px; border-radius: 7px; color: #426876; background: #eaf4f7; font-size: 11px; font-weight: 750; }
.hdz__reset {
    position: absolute; left: 20px; bottom: 18px; cursor: pointer;
    padding: 11px 14px; border: 1px solid rgba(38,64,79,.08);
    border-radius: 12px; color: #23414e; font: inherit; font-weight: 750;
    background: rgba(255,255,255,.96); box-shadow: 0 6px 19px rgba(22,38,46,.11);
    transition: transform .15s, background .15s;
}
.hdz__reset:hover { background: white; transform: translateY(-1px); }
@keyframes hdz-pulse { from {opacity: .45; transform: rotate(0);} to {opacity: 1; transform: rotate(90deg);} }
@media (max-width: 790px) {
    .hdz { min-height: 610px; height: 610px; border-radius: 16px; }
    .hdz__heading { left: 12px; top: 12px; width: calc(100% - 74px); border-radius: 15px 15px 0 0; padding: 13px 13px 8px; }
    .hdz__heading h3 { font-size: 16px; }
    .hdz__heading p { display: none; }
    .hdz__legend { left: 12px; top: 79px; width: calc(100% - 74px); max-height: 215px; padding: 3px 6px 7px; border-radius: 0 0 15px 15px; }
    .hdz__zone { padding: 7px 8px; font-size: 12px; }
    .hdz__result { bottom: 12px; right: 12px; left: 12px; width: auto; padding: 12px; min-height: 81px; }
    .hdz__result-icon { width: 34px; height: 34px; border-radius: 10px; }
    .hdz__result-title { font-size: 14px; }
    .hdz__reset { bottom: 110px; left: 12px; font-size: 12px; padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .hdz *, .hdz *::before, .hdz *::after { animation: none !important; transition: none !important; }
}

/* Choice of an exact house when more than one locality/street matches. */
.hdz__candidates {
    position: absolute; right: 18px; bottom: 112px;
    z-index: 200; width: min(420px, calc(100% - 36px));
    max-height: min(300px, 47%); overflow-y: auto;
    padding: 10px; border: 1px solid var(--hdz-border);
    border-radius: 16px; background: #fff; box-shadow: var(--hdz-shadow);
    overscroll-behavior: contain;
}
.hdz__candidates[hidden] { display: none; }
.hdz__candidates-heading { font-size: 12px; font-weight: 800; padding: 6px 7px 8px; }
.hdz__candidate {
    width: 100%; padding: 11px 10px; display: block; cursor: pointer;
    border: 0; border-top: 1px solid #edf0f2; border-radius: 8px;
    color: #203441; background: transparent; text-align: left;
    font: inherit; font-size: 12px; line-height: 1.45;
}
.hdz__candidate:hover, .hdz__candidate:focus-visible { background: #f0f7fa; outline: 2px solid #65a4dc; outline-offset: -2px; }
.hdz__result[data-state="ambiguous"] .hdz__result-icon { background: #eaf1ff; color: #336bba; }
@media (max-width: 790px) {
    .hdz__candidates { right: 12px; left: 12px; width: auto; bottom: 107px; max-height: 255px; }
}

/* Geosuggest HTTP results: attached to document.body to avoid clipping in checkout. */
.hdz__suggest-list {
    position: fixed; z-index: 2147480000; max-height: 320px; overflow-y: auto;
    padding: 5px; border: 1px solid #dfe7ed; border-radius: 12px;
    background: #fff; box-shadow: 0 14px 42px rgba(15, 32, 46, .19);
    color: #263743; font-size: 13px; line-height: 1.45; overscroll-behavior: contain;
}
.hdz__suggest-list[hidden] { display: none; }
.hdz__suggest-option {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; padding: 10px 12px; margin: 0;
    border: 0; border-radius: 8px; background: transparent;
    color: inherit; cursor: pointer; text-align: left; font: inherit;
}
.hdz__suggest-option:hover, .hdz__suggest-option[aria-selected="true"],
.hdz__suggest-option:focus-visible { background: #eaf4fd; outline: none; }
.hdz__suggest-primary { font-weight: 700; }
.hdz__suggest-secondary { margin-top: 2px; color: #687784; font-size: 11px; }
.hdz__suggest-note { padding: 12px; color: #647586; }
/* API 3 pins: the YMapMarker coordinate is the TIP of the delivery pin.
 * Keep the anchored DOM element unrotated; rotate only its decoration.
 * Rotating the draggable root shifts the tip off its geographic position. */
.hdz-map-marker {
    box-sizing: border-box;
    position: relative;
    width: 36px; height: 48px;
    margin: 0; padding: 0;
    border: 0; border-radius: 0;
    background: transparent;
    transform: translate(-50%, -100%);
    font-size: 0; line-height: 0;
    cursor: grab; touch-action: none;
}
.hdz-map-marker::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 34px; height: 34px;
    top: 7px; left: 1px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 5px;
    background: var(--marker-color, #ee633d);
    transform: rotate(-45deg);
    box-shadow: -2px 3px 13px rgba(0, 0, 0, .3);
    pointer-events: none;
}
.hdz-map-marker::after {
    content: '';
    position: absolute;
    left: 50%; top: 23px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hdz-map-marker[hidden] { display: none !important; }
/* GeoJSON Point markers have a centered anchor, not a pin-tip anchor. */
.hdz-map-point {
    box-sizing: border-box;
    position: relative;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    margin: 0; padding: 0;
    display: grid; place-items: center;
    border: 3px solid #fff; border-radius: 50%;
    background: #20a376;
    color: transparent; font-size: 0;
    box-shadow: 0 3px 13px rgba(0, 0, 0, .3);
    cursor: default; touch-action: none;
}
.hdz__zoom {position:absolute;right:18px;top:18px;z-index:3;display:grid;gap:7px;}
.hdz__zoom button {width:40px;height:40px;border:1px solid rgba(40,70,90,.13);border-radius:12px;
  background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.12);font-size:25px;cursor:pointer;color:#18232c;}
.hdz__zoom button:focus-visible {outline:3px solid #326de6;outline-offset:2px;}

