/* Address modal: CanDoc City "Standort-Pop-up" design (CDC-18, CDCity brandbook).
   Deliberately isolated from legacy utility/form classes. */
.address-modal{--am-ink:#1d1d1d;--am-paper:#f9f8f6;--am-lilac-soft:#e9e2f5;--am-muted:#625b68;--am-control:#8f849b;--am-focus:#6f4c9b;--am-error:#a12632}
html body dialog.address-modal{box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:24px;background:#fff;color:var(--am-ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #1d1d1d26;font-family:'Open Sans',Arial,sans-serif;font-size:16px;line-height:1.5;text-align:left}
.address-modal::backdrop{background:rgb(29 29 29 / 36%);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.address-modal *,.address-modal *::before,.address-modal *::after{box-sizing:border-box}
.address-modal [hidden]{display:none!important}
.address-modal__card{position:relative;padding:48px 32px 32px}
.address-modal button,.address-modal input,.address-modal a{font:inherit}
.address-modal svg{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.address-modal .address-modal__close{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--am-ink);cursor:pointer}
.address-modal .address-modal__close:hover{background:var(--am-paper)}
.address-modal h2{margin:0 40px 8px 0;font-family:'Wittgenstein',Georgia,serif;font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.01em;color:var(--am-ink);text-transform:none}
.address-modal .address-modal__copy{max-width:365px;margin:0 0 24px;font-size:14px;line-height:1.5;color:var(--am-muted)}
.address-modal #address-form{display:block;width:100%;margin:0;padding:0;border:0;background:none}
/* Visible to screen readers only, as in the design. */
.address-modal #address-form .address-modal__label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.address-modal__field{position:relative}
.address-modal #address-input{display:block;width:100%;min-width:0;height:60px;margin:0;padding:0 60px 0 16px;border:1px solid var(--am-control);border-radius:12px;background:#fff;color:var(--am-ink);font-size:16px;letter-spacing:0;outline:0;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.address-modal #address-input::placeholder{color:var(--am-muted);opacity:1}
.address-modal #address-input:focus,.address-modal #address-input:focus-visible{border-color:var(--am-focus);box-shadow:0 0 0 3px var(--am-lilac-soft)}
.address-modal #address-input[aria-invalid="true"]{border-color:var(--am-error)}
.address-modal .address-modal__target{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--am-ink);cursor:pointer}
.address-modal .address-modal__target:hover:not(:disabled){background:var(--am-lilac-soft)}
.address-modal .address-modal__target:disabled{cursor:progress;opacity:.5}
.address-modal form[aria-busy="true"] .address-modal__target svg{animation:address-modal-pulse 1s ease-in-out infinite}
@keyframes address-modal-pulse{50%{opacity:.35}}
/* In the card's flow, so the dialog grows with the results instead of clipping them. */
.address-modal__suggestions-panel{display:none;margin-top:8px;padding:5px;border:1px solid #e4dee9;border-radius:12px;background:#fff}
.address-modal__suggestions-panel:has(#address-suggestions:not([hidden])){display:block}
.address-modal #address-suggestions{max-height:min(50dvh,360px);overflow:auto;padding:0;margin:0;list-style:none}
.address-modal #address-suggestions li{padding:12px 10px;border-radius:8px;cursor:pointer;color:var(--am-ink);font-size:14px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.address-modal #address-suggestions li:hover,.address-modal #address-suggestions li[aria-selected="true"]{background:var(--am-lilac-soft)}
.address-modal #address-suggestions .address-modal__suggestion-loading{color:var(--am-muted);cursor:default;background:none}
.address-modal .address-modal__attribution{margin:7px 10px 5px;font-size:10px;color:#707070;line-height:1.5}
.address-modal .address-modal__submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin:24px 0 0;padding:14px 24px;border:0;border-radius:999px;background:var(--am-ink);color:#fff;font-size:16px;font-weight:600;line-height:1.5;cursor:pointer;transition:background .15s}
.address-modal .address-modal__submit:hover:not(:disabled){background:#363039}
.address-modal .address-modal__submit:disabled{cursor:default;opacity:.5}
.address-modal button:focus-visible,.address-modal a:focus-visible{outline:2px solid var(--am-focus);outline-offset:4px}
.address-modal .address-modal__feedback{margin:16px 0 0;padding:12px 14px;border-radius:8px;background:var(--am-lilac-soft);color:var(--am-ink);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.address-modal .address-modal__feedback[data-tone="error"]{background:#fff3f3;color:var(--am-error)}
/* Mobile: centered dialog, 3px free space around it, more room for results.
   With the keyboard open (data-keyboard, set from visualViewport) it moves to the
   top of the visible area (16px gap) and never grows taller than that area. */
@media(max-width:540px){html body dialog.address-modal{width:calc(100% - 6px);max-height:calc(var(--address-modal-vh,100dvh) - 6px);margin:auto;border-radius:20px}html body dialog.address-modal[data-keyboard]{max-height:calc(var(--address-modal-vh,100dvh) - 22px);margin:calc(var(--address-modal-top,0px) + 16px) auto auto}.address-modal__card{padding:24px 16px 20px}.address-modal .address-modal__close{top:8px;right:8px}.address-modal #address-suggestions{max-height:min(55dvh,420px)}.address-modal #address-suggestions li{padding:14px 10px}}
@media(max-width:360px){.address-modal__card{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){.address-modal *{transition:none!important;scroll-behavior:auto!important}.address-modal form[aria-busy="true"] .address-modal__target svg{animation:none}}
