/* Shared only by postcode dialogs; legacy account forms retain their styles. */
#_body_#_body_ #zipcode_frame.us-postcode-dialog { box-sizing:border-box; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog [hidden] { display:none!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog button { min-width:48px!important; min-height:48px!important; font-size:16px!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog :is(.us-postcode-close,.us-account-close) { padding:0!important; font-size:28px!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog p { font-size:16px!important; line-height:1.7; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog button:focus-visible { outline:3px solid var(--es-color-focus)!important; outline-offset:3px!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog #zipcode_provider { max-width:100%; overflow:auto; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog #zipcode_provider:empty { display:none; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog #zipcode_provider iframe { display:block!important; max-width:100%!important; }
@media(max-width:480px) {
 #_body_#_body_ #zipcode_frame.us-postcode-dialog { inset:0 0 auto!important; width:100%!important; max-width:none!important; max-height:100dvh!important; padding:12px 0!important; border:0; border-radius:0 0 16px 16px; }
 #_body_#_body_ #zipcode_frame.us-postcode-dialog :is(header,footer,p,.us-account-actions) { margin-inline:12px; }
}

/* The owner chrome uses brand roles; the official address widget keeps its UI. */
#_body_#_body_ #zipcode_frame.us-postcode-dialog { background:var(--es-color-bg-surface)!important; color:var(--es-color-text-primary)!important; border-color:var(--es-color-border-subtle)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog::backdrop { background:var(--es-brand-charcoal); opacity:.5; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog h2 { color:var(--es-color-text-primary)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog p { color:var(--es-color-text-secondary)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog #zipcode_unavailable { color:var(--es-color-status-warning)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog button { background:var(--es-color-action-secondary-bg)!important; color:var(--es-color-action-secondary-fg)!important; border-color:var(--es-color-action-secondary-border)!important; border-radius:var(--es-radius-control); }
#_body_#_body_ #zipcode_frame.us-postcode-dialog :is(.us-postcode-close,.us-account-close) { background:var(--es-color-bg-subtle)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog :is(footer,.us-account-actions) button { background:var(--es-color-action-primary-bg)!important; color:var(--es-color-action-primary-fg)!important; border-color:var(--es-color-action-primary-border)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog button:hover:not(:disabled) { background:var(--es-color-action-secondary-hover)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog button:active:not(:disabled) { background:var(--es-color-action-secondary-pressed)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog :is(footer,.us-account-actions) button:hover:not(:disabled) { background:var(--es-color-action-primary-hover)!important; }
#_body_#_body_ #zipcode_frame.us-postcode-dialog :is(footer,.us-account-actions) button:active:not(:disabled) { background:var(--es-color-action-primary-pressed)!important; }

/* Keep the keyboard outline above the widget clear of its iframe paint. */
#_body_#_body_ #zipcode_frame.us-postcode-dialog header { margin-bottom:8px; }
