/* Botão de busca da rua integrado ao campo do PDV. */
#deliveryfields .pdv-street-search-wrap { display:flex;position:relative;width:100%;align-items:center; }
#deliveryfields .pdv-street-search-wrap #pdvstreet { width:100%;min-width:0;box-sizing:border-box;padding-right:46px; }
#deliveryfields .pdv-street-search-wrap .address-lookup-button { position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;min-height:0;padding:7px;display:flex;align-items:center;justify-content:center;margin:0;border:0;background:transparent;color:inherit;border-radius:9px;cursor:pointer; }
#deliveryfields .pdv-street-search-wrap .address-lookup-button:hover {background:rgba(0,0,0,.06)}
#deliveryfields .pdv-street-search-wrap .address-lookup-button:focus-visible {outline:2px solid currentColor;outline-offset:-2px}
#deliveryfields .pdv-street-search-wrap .address-lookup-button svg {pointer-events:none}
#deliveryfields .delivery-location-status:empty,#deliveryfields .delivery-price-notice:empty{display:none}

/* Apenas PDV: apresentação legível das sugestões no computador. */
@media (min-width: 700px) {
 body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) {width:min(92vw,700px)}
 body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates {display:grid;gap:10px}
 body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button {display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left;white-space:normal;line-height:1.35;padding:12px 16px;min-height:0}
 body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button strong {font-size:1rem}
 body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button span,body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button small {font-size:.85rem}
}
#deliveryfields .pdv-street-search-wrap #pdvstreet {padding-right:12px}
#deliveryfields .pdv-street-search-wrap .address-lookup-button {display:none}
.pdv-search-settings{margin:8px 0;padding:12px;border:1px solid #ddd;border-radius:8px}
.pdv-search-settings label{display:flex;align-items:center;gap:8px;margin:8px 0}
.pdv-search-settings input{width:auto}
.pdv-settings-toggle{margin:8px 0}

/* PDV: sugestões suaves, com contraste para leitura e foco visível. */
body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button {background:#fff3f2;color:#562d30;border:1px solid #edc9c7;box-shadow:none;}
body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button:hover {background:#fce5e3;color:#562d30;}
body:has(#pdvstreet) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-candidates button:focus-visible {outline:2px solid #a52328;outline-offset:2px;}

/* Busca de ruas — cliente e PDV, sem alterar a validação do endereço. */
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern{width:min(94vw,520px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:22px;box-sizing:border-box;border:1px solid #e9e1da;border-radius:22px;background:#fff;color:#292321;overflow:auto;box-shadow:0 18px 60px #24181033}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern::backdrop{background:#211b186b;backdrop-filter:blur(4px)}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choices-heading{display:flex;gap:10px;align-items:center;margin:0 0 10px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-heading-icon{width:25px;flex:0 0 25px;color:#ae2531;display:flex}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern h2{margin:0;font-size:clamp(20px,5vw,25px);line-height:1.2;flex:1}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern>.address-choices-heading+p{font-size:14px;color:#746a64;line-height:1.5;margin:0 0 12px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-choices-close{padding:0;width:32px;min-width:32px;min-height:32px;height:32px;display:grid;place-items:center;background:transparent;border:0;color:#766d66;font-size:28px;line-height:1;box-shadow:none;border-radius:8px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-choices-count{display:table;margin:0 0 14px;padding:5px 10px;background:#f4f1ed;border-radius:20px;color:#6b625b;font-size:12px;line-height:1.4}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-candidates{display:grid;gap:10px;margin:0}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-candidates button.address-choice{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;align-items:start;min-height:0;height:auto;width:100%;margin:0;padding:14px;text-align:left;white-space:normal;background:#fff;color:#292321;border:1px solid #e7ded7;border-radius:15px;box-shadow:none;line-height:1.35;font-size:14px}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-candidates button.address-choice:hover{background:#fffaf6;border-color:#c9a48e}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-candidates button.address-choice:focus-visible{outline:2px solid #ae2531;outline-offset:2px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-content{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-pin{display:grid;place-items:center;background:#fff0e8;color:#ae2531;width:34px;height:34px;border-radius:50%;margin-top:2px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-pin svg{width:20px;height:20px}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-street{display:block;font-size:16px;line-height:1.3;color:#292321}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-neighborhood{display:block;color:#98242e;font-size:15px;line-height:1.3}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-segment{justify-self:start;font-size:12px;font-weight:600;color:#9b2930;background:#fff0e6;border-radius:8px;padding:3px 8px;margin:4px 0}
:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-info{color:#82766e;font-size:12px;line-height:1.4;font-weight:400}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-chevron{align-self:center;color:#ae2531;font-size:27px;line-height:1}
:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-is-unavailable{color:#a32731;font-size:12px}
:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-choices-back{display:block;width:100%;min-height:42px;margin:16px 0 0;padding:11px 14px;border:1px solid #e4dcd3;border-radius:13px;background:#faf7f3;color:#a72831;font-size:14px;font-weight:600;box-shadow:none}
@media(max-width:370px){:is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern{padding:16px}:is(body,body:has(#pdvstreet)) :is(#addresschoicesdialog,#profileaddresschoicesdialog).address-choices-modern .address-candidates button.address-choice{grid-template-columns:28px minmax(0,1fr) 12px;gap:7px;padding:11px}:is(#addresschoicesdialog,#profileaddresschoicesdialog) .address-choice-pin{width:28px;height:28px}}
