/* Product delivery uses the same readable, light LuxFish shop canvas. */
.lux-product .summary > .lux-delivery[data-product-id] { order: 6; }
.lux-delivery[data-product-id] { width: 100%; margin-top: 24px; padding: 20px; border: 1px solid var(--line, rgba(11,17,23,.13)); border-radius: 16px; background: var(--soft, #f2f6f8); font-family: var(--font-body, system-ui, sans-serif); }
.lux-delivery--blocks { margin-block: 0 24px; }
.lux-delivery-office-summary { margin: 10px 0 0; color: var(--ink-2, #3b4652); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.lux-delivery[data-product-id] button, .lux-delivery[data-product-id] input, .lux-delivery[data-product-id] select { font: inherit; }
.lux-delivery[data-product-id] button { cursor: pointer; }
.lux-delivery[data-product-id] button:disabled { cursor: wait; opacity: .65; }
.lux-delivery[data-product-id] :focus-visible { outline: 3px solid var(--brand-deep, #00719a); outline-offset: 3px; }
.lux-delivery-open { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; width: 100%; min-height: 44px; padding: 0; border: 0; color: var(--ink, #0b1117); background: transparent; text-align: left; font-size: 17px !important; line-height: 1.5; }
.lux-delivery-open > span:first-child { font-weight: 500; }
.lux-delivery-location { color: var(--brand-deep, #00719a); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lux-delivery-suggestion { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line, rgba(11,17,23,.13)); }
.lux-delivery-suggestion p { margin-bottom: 12px; color: var(--ink-2, #3b4652); font-size: 17px; }
.lux-delivery-suggestion button { min-height: 44px; margin: 0 8px 4px 0; padding: 10px 16px; border: 0; border-radius: 12px; background: #fff; color: var(--ink, #0b1117); font-size: 16px; font-weight: 600; }
.lux-delivery-suggestion [data-confirm-city] { background: var(--ink, #0b1117); color: #fff; }
#lux-delivery-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 24px; color: var(--ink, #0b1117); background: #fff; box-shadow: 0 24px 80px rgba(11,28,38,.22); font: 400 18px/1.55 var(--font-body, system-ui, sans-serif); }
#lux-delivery-dialog::backdrop { background: rgba(11,28,38,.5); }
#lux-delivery-dialog:not([open]) { display: none; }
.lux-delivery-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
#lux-delivery-dialog h2 { font: 600 26px/1.3 var(--font-body, system-ui, sans-serif); letter-spacing: -.02em; }
#lux-delivery-dialog [data-close] { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft, #f2f6f8); color: var(--ink, #0b1117); font-size: 30px; line-height: 1; }
.lux-delivery-dialog__intro { margin-bottom: 24px; color: var(--ink-2, #3b4652); font-size: 17px; }
#lux-delivery-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#lux-delivery-form label, #lux-delivery-points label { display: block; margin: 14px 0 0; color: var(--ink, #0b1117); font-size: 16px; font-weight: 500; }
#lux-delivery-form label:first-child { margin-top: 0; }
#lux-delivery-form label span { color: var(--ink-2, #3b4652); font-weight: 400; }
#lux-delivery-form input, #lux-delivery-office, #lux-delivery-office-search { display: block; width: 100%; min-width: 0; min-height: 52px; max-width: 100%; padding: 12px 14px; border: 1px solid #8996a0; border-radius: 12px; color: var(--ink, #0b1117); background: #fff; font-size: 18px; line-height: 1.4; }
#lux-delivery-form input[aria-invalid='true'] { border-color: #9c3028; }
#lux-delivery-form button[type='submit'] { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--ink, #0b1117); color: #fff; font-size: 18px; font-weight: 600; }
.lux-delivery-city-options { padding: 4px; border: 1px solid var(--line, rgba(11,17,23,.13)); border-radius: 12px; background: #fff; }
.lux-delivery-city-options button { display: block; width: 100%; min-height: 44px; padding: 12px; border: 0; border-radius: 8px; background: #fff; color: var(--ink, #0b1117); text-align: left; font-size: 16px; line-height: 1.45; }
.lux-delivery-city-options button:hover { background: var(--soft, #f2f6f8); }
#lux-delivery-points { margin-top: 24px; }
#lux-delivery-points label { margin-bottom: 8px; }
#lux-delivery-office { text-overflow: ellipsis; }
.lux-delivery-office-details { margin-top: 8px; color: var(--ink-2, #3b4652); font-size: 16px; }
.lux-delivery-office-matches { margin: 6px 0 0; color: var(--ink-2, #3b4652); font-size: 14px; line-height: 1.4; }
.lux-delivery-office-matches:empty { display: none; }
#lux-delivery-feedback { margin-top: 20px; color: var(--ink-2, #3b4652); font-size: 16px; }
#lux-delivery-feedback:empty { display: none; }
#lux-delivery-feedback.is-error { color: #9c3028; }
#lux-delivery-rates { margin-top: 24px; }
#lux-delivery-dialog .lux-delivery-rate-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.lux-delivery-rate-list > li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; min-width: 0; padding: 16px 0; border-top: 1px solid var(--line, rgba(11,17,23,.13)); }
.lux-delivery-rate-list strong { display: block; font-size: 17px; font-weight: 600; }
.lux-delivery-rate-list small, .lux-delivery-rate-list > li > span { display: block; color: var(--ink-2, #3b4652); font-size: 16px; line-height: 1.5; }
.lux-delivery-rate-list > li > b { flex-shrink: 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.lux-delivery-rate-note { margin-top: 16px; color: var(--ink-2, #3b4652); font-size: 16px; }
.lux-delivery-dialog__help { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line, rgba(11,17,23,.13)); color: var(--ink-2, #3b4652); font-size: 16px; }
.lux-delivery-dialog__help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-deep, #00719a); font-weight: 600; white-space: nowrap; }
@media (max-width: 639px) {
    .lux-delivery[data-product-id] { padding: 16px; }
    #lux-delivery-dialog { padding: 20px; border-radius: 20px; }
    #lux-delivery-dialog h2 { font-size: 24px; }
    .lux-delivery-rate-list > li > span { flex-basis: 100%; }
}

/* Shared picker: real carrier points, an explicit saved choice, and a complete list alternative. */
.lux-delivery[data-product-id] [hidden] { display: none !important; }
.lux-delivery-office-summary > span { display: block; }
.lux-delivery-map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lux-delivery-map-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid #8996a0; border-radius: 12px; color: var(--ink, #0b1117); background: #fff; text-align: left; font-size: 16px; }
#lux-delivery-dialog.has-pickup-map { width: min(1040px, calc(100% - 40px)); }
.lux-delivery-city-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; }
.lux-delivery-city-bar strong { font-size: 20px; }
.lux-delivery-city-bar button { min-height: 44px; padding: 8px 0; border: 0; color: var(--brand-deep, #00719a); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
#lux-delivery-points { margin-top: 20px; }
.lux-delivery-carriers, .lux-delivery-map-views { display: flex; gap: 8px; }
.lux-delivery-carriers { padding-bottom: 4px; }
.lux-delivery-carriers button { flex: 1; min-height: 48px; padding: 10px 16px; border: 1px solid #8996a0; border-radius: 12px; color: var(--ink, #0b1117); background: #fff; font-size: 17px; font-weight: 600; }
.lux-delivery-carriers button[aria-pressed='true'] { border-color: var(--ink, #0b1117); background: var(--ink, #0b1117); color: #fff; }
.lux-delivery-map-views { margin: 12px 0; }
.lux-delivery-map-views button { min-height: 44px; padding: 8px 16px; border: 1px solid #8996a0; border-radius: 12px; color: var(--ink, #0b1117); background: #fff; font-size: 16px; }
.lux-delivery-map-views button[aria-pressed='true'] { border-color: var(--brand-deep, #00719a); color: var(--brand-deep, #00719a); background: #ecf7fb; font-weight: 600; }
.lux-delivery-map-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 16px; }
.lux-delivery-map-wrap { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; background: #f2f6f8; }
.lux-delivery-map { width: 100%; height: 360px; isolation: isolate; color: #0b1117; background: #e8eef0; font: inherit; }
.lux-delivery-map-status { position: absolute; z-index: 500; right: 12px; bottom: 32px; left: 12px; margin: 0; padding: 12px; border: 1px solid #8996a0; border-radius: 12px; color: #0b1117; background: #fff; font-size: 15px; line-height: 1.45; pointer-events: none; }
.lux-delivery-map .leaflet-control-attribution { max-width: calc(100% - 8px); padding: 3px 6px; color: #3b4652; background: #fff; font-size: 12px; line-height: 1.4; }
.lux-delivery-map .leaflet-control-attribution a { color: #005d80; }
.lux-delivery-map .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; color: #0b1117; }
.lux-delivery-map .leaflet-tooltip { max-width: 260px; white-space: normal; font-size: 15px; line-height: 1.4; }
.lux-delivery-point-list { min-width: 0; max-height: 360px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
#lux-delivery-dialog .lux-delivery-point { display: block; width: 100%; height: auto; min-height: 76px; white-space: normal; margin: 0 0 8px; padding: 12px; border: 1px solid #8996a0; border-radius: 12px; color: var(--ink, #0b1117); background: #fff; text-align: left; }
#lux-delivery-dialog .lux-delivery-point > strong, #lux-delivery-dialog .lux-delivery-point > span, #lux-delivery-dialog .lux-delivery-point > small { display: block; }
#lux-delivery-dialog .lux-delivery-point > strong { margin-bottom: 4px; font-size: 16px; font-weight: 600; }
#lux-delivery-dialog .lux-delivery-point > span { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
#lux-delivery-dialog .lux-delivery-point > small { margin-top: 6px; color: var(--ink-2, #3b4652); font-size: 14px; line-height: 1.45; }
#lux-delivery-dialog .lux-delivery-point[aria-pressed='true'] { border-color: var(--brand-deep, #00719a); background: #ecf7fb; }
.lux-delivery-pickup[data-view='list'] .lux-delivery-map-wrap { display: none; }
.lux-delivery-pickup[data-view='list'] .lux-delivery-map-layout { grid-template-columns: minmax(0, 1fr); }
.lux-delivery-pickup[data-view='list'] .lux-delivery-point-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-items: start; align-content: start; gap: 8px; }
#lux-delivery-dialog .lux-delivery-pickup[data-view='list'] .lux-delivery-point { margin: 0; }
.lux-delivery-office-details { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 16px; border: 1px solid var(--line, rgba(11,17,23,.13)); border-radius: 12px; color: var(--ink, #0b1117); background: var(--soft, #f2f6f8); }
.lux-delivery-office-details > div { min-width: 0; }
.lux-delivery-office-details strong { display: block; font-size: 18px; font-weight: 600; }
.lux-delivery-office-details p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.lux-delivery-choose-point, .lux-delivery-done { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--ink, #0b1117); color: #fff; font-size: 17px; font-weight: 600; }
.lux-delivery-choose-point { flex: 0 0 auto; max-width: 240px; }
.lux-delivery-choose-point:disabled { cursor: default; opacity: .6; }
.lux-delivery-done { display: block; margin: 16px 0 0 auto; min-width: 140px; }
.lux-delivery-empty { margin: 0; padding: 12px 4px; font-size: 16px; line-height: 1.5; }
@media (max-width: 699px) {
    #lux-delivery-dialog, #lux-delivery-dialog.has-pickup-map { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 18px 16px; border-radius: 16px; }
    .lux-delivery-dialog__intro { margin-bottom: 16px; font-size: 16px; }
    .lux-delivery-carriers button { padding: 10px 8px; font-size: 16px; }
    .lux-delivery-map-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .lux-delivery-map { height: 280px; }
    .lux-delivery-pickup[data-view='map'] .lux-delivery-point-list { display: none; }
    .lux-delivery-pickup[data-view='list'] .lux-delivery-point-list { grid-template-columns: minmax(0, 1fr); max-height: 320px; }
    .lux-delivery-office-details { align-items: stretch; flex-direction: column; gap: 14px; padding: 14px; }
    .lux-delivery-choose-point { width: 100%; max-width: none; }
    .lux-delivery-done { width: 100%; }
    .lux-delivery-map-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .lux-delivery-city-bar strong { font-size: 18px; }
}


/* Keep the actual choice and Save visible while only the map/list middle scrolls. */
#lux-delivery-dialog[open].has-pickup-map { display: flex; flex-direction: column; height: min(900px, calc(100dvh - 32px)); overflow: hidden; }
#lux-delivery-dialog.has-pickup-map > .lux-delivery-dialog__head { flex: 0 0 auto; order: 0; margin-bottom: 8px; }
#lux-delivery-dialog.has-pickup-map > .lux-delivery-dialog__intro { display: none; }
#lux-delivery-dialog.has-pickup-map > .lux-delivery-city-bar { flex: 0 0 auto; order: 1; margin-bottom: 8px; }
#lux-delivery-dialog.has-pickup-map > #lux-delivery-form { order: 2; }
#lux-delivery-dialog.has-pickup-map > #lux-delivery-feedback { flex: 0 0 auto; order: 3; margin: 0 0 8px; }
#lux-delivery-dialog.has-pickup-map > #lux-delivery-feedback:not(.is-error) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#lux-delivery-dialog.has-pickup-map > #lux-delivery-points { display: flex; flex: 1 1 auto; flex-direction: column; order: 4; min-height: 0; margin-top: 0; }
.lux-delivery-pickup-controls { flex: 0 0 auto; }
#lux-delivery-points .lux-delivery-pickup-controls > label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lux-delivery-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 8px; }
.lux-delivery-search-bar .lux-delivery-map-views { gap: 6px; margin: 0; }
.lux-delivery-search-bar .lux-delivery-map-views button { padding: 8px 12px; }
.lux-delivery-pickup-controls .lux-delivery-office-matches { margin: 6px 0 8px; font-size: 15px; line-height: 1.4; }
#lux-delivery-dialog.has-pickup-map .lux-delivery-map-layout { flex: 1 1 auto; min-height: 0; overflow: hidden; }
#lux-delivery-dialog.has-pickup-map .lux-delivery-map-wrap { min-height: 0; }
#lux-delivery-dialog.has-pickup-map .lux-delivery-map { height: 100%; min-height: 100px; }
#lux-delivery-dialog.has-pickup-map .lux-delivery-point-list { height: 100%; max-height: none; min-height: 0; }
.lux-delivery-pickup-footer { flex: 0 0 auto; order: 5; padding-top: 12px; }
.lux-delivery-pickup-footer .lux-delivery-office-details { align-items: center; gap: 16px; margin-top: 0; padding: 14px 16px; }
.lux-delivery-selected-text { flex: 1 1 auto; max-height: min(180px, 24dvh); padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
.lux-delivery-footer-actions { flex: 0 0 auto; }
.lux-delivery-footer-actions .lux-delivery-choose-point, .lux-delivery-footer-actions .lux-delivery-done { width: 100%; min-width: 180px; margin: 0; }
.lux-delivery-point-meta { display: flex; align-items: start; flex-wrap: wrap; gap: 0 16px; }
.lux-delivery-extra { min-width: 0; max-width: 100%; }
.lux-delivery-extra > summary { display: list-item; min-height: 40px; padding-block: 8px; color: var(--brand-deep, #00719a); font-size: 16px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lux-delivery-extra[open] { flex-basis: 100%; }
.lux-delivery-extra > p, .lux-delivery-extra-body { max-height: 120px; padding: 0 4px 4px 0; overflow-y: auto; overscroll-behavior: contain; }
.lux-delivery-extra #lux-delivery-rates { margin-top: 0; }
.lux-delivery-extra .lux-delivery-dialog__help { margin-top: 12px; padding-top: 12px; }
@media (max-width: 699px) {
    #lux-delivery-dialog.has-pickup-map { height: calc(100dvh - 16px); padding: 14px 16px; }
    #lux-delivery-dialog.has-pickup-map .lux-delivery-dialog__head { margin-bottom: 4px; }
    #lux-delivery-dialog.has-pickup-map .lux-delivery-city-bar { margin-bottom: 4px; }
    .lux-delivery-search-bar { gap: 8px; }
    .lux-delivery-search-bar .lux-delivery-map-views { gap: 4px; }
    .lux-delivery-search-bar .lux-delivery-map-views button { padding: 8px; }
    .lux-delivery-search-bar #lux-delivery-office-search { min-height: 48px; padding: 10px 12px; font-size: 16px; }
    .lux-delivery-pickup-footer { padding-top: 10px; }
    .lux-delivery-pickup-footer .lux-delivery-office-details { align-items: stretch; gap: 10px; padding: 12px; }
    .lux-delivery-selected-text { max-height: min(140px, 22dvh); }
    .lux-delivery-footer-actions { width: 100%; }
    .lux-delivery-footer-actions .lux-delivery-choose-point, .lux-delivery-footer-actions .lux-delivery-done { min-width: 0; }
    .lux-delivery-point-meta { gap: 0 12px; }
}

/* Product/cart methods stay visible; only their actual point map opens a dialog. */
.lux-delivery[data-product-id] .lux-delivery-inline { margin-top: 18px; }
.lux-delivery-inline-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.lux-delivery-offer { position: relative; min-width: 0; margin: 0; border: 1px solid #c9d6dd; border-radius: 12px; background: #fff; color: var(--ink, #0b1117); }
.lux-delivery-offer.is-selected { border-color: #00719a; box-shadow: 0 0 0 1px #00719a; background: #f3fbfe; }
.lux-delivery-offer:focus-within { outline: 2px solid #00719a; outline-offset: 3px; }
.lux-delivery-offer > input[type='radio'] { position: absolute; top: 18px; left: 14px; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #00719a; cursor: pointer; }
.lux-delivery-offer > label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; min-height: 56px; margin: 0; padding: 14px 14px 14px 43px; cursor: pointer; }
.lux-delivery-offer:not(:has(> label)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 14px; }
.lux-delivery-offer__details { min-width: 0; }
.lux-delivery-offer__details > strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.lux-delivery-offer__details > small { display: block; margin-top: 4px; color: var(--ink-2, #3b4652); font-size: 14px; line-height: 1.5; }
.lux-delivery-offer__cod small { display: block; margin-top: 4px; color: var(--ink-2, #3b4652); font-size: 14px; line-height: 1.5; }
.lux-delivery-offer__point { margin: 0 14px 14px 43px; }
.lux-delivery-offer__point p { margin: 0 0 8px; color: var(--ink-2, #3b4652); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lux-delivery-inline .lux-delivery-offer__point button, .lux-delivery-inline .lux-delivery-inline-unavailable button { min-height: 44px; padding: 9px 12px; border: 1px solid #8996a0; border-radius: 9px; background: #fff; color: #006b91; font-size: 14px; line-height: 1.45; text-align: left; }
.lux-delivery-offer__price { justify-self: end; white-space: nowrap; font-size: 16px; font-weight: 650; line-height: 1.45; font-variant-numeric: tabular-nums; }
.lux-delivery-inline-unavailable { display: grid; gap: 3px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line, rgba(11,17,23,.13)); }
.lux-delivery-inline-unavailable > strong { font-size: 16px; font-weight: 600; line-height: 1.45; }
.lux-delivery-inline-unavailable > span, .lux-delivery-inline-note { margin: 0; color: var(--ink-2, #3b4652); font-size: 15px; line-height: 1.5; }
.lux-delivery-inline-feedback { margin: 12px 0 0; color: var(--ink-2, #3b4652); font-size: 15px; line-height: 1.5; }
.lux-delivery-inline-feedback.is-error { color: #9c3028; }
@media (max-width: 389px) {
    .lux-delivery-offer > label { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .lux-delivery-offer__price { justify-self: start; }
}
