/* Clasico Next HOTFIX54 — checkout address picker UI. Native checkout actions stay intact. */
#checkout .js-address-form, #order .js-address-form{--cn54-blue:#3574c9;--cn54-dark:#1a3154;--cn54-border:#d9e6f6}
#checkout .cn54-address-intro,#order .cn54-address-intro{margin:0 0 16px;color:#60718c;font-size:14px;line-height:1.55}
#checkout .cn54-section-heading,#order .cn54-section-heading{font-weight:750;color:#1a3154;margin:15px 0 10px;font-size:19px}
#checkout .cn54-billing-choice,#order .cn54-billing-choice{margin:15px 0;padding:13px 16px;background:#f1f7ff;border:1px solid #d4e6fd;border-radius:14px}
#checkout .cn54-billing-choice a,#order .cn54-billing-choice a{color:#2464ae;font-weight:700;text-decoration:none}
#checkout .cn54-billing-choice a:hover,#order .cn54-billing-choice a:hover{text-decoration:underline}
#checkout .js-address-selector,#order .js-address-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:stretch}
#checkout .js-address-selector .address-item,#order .js-address-selector .address-item{width:100%!important;max-width:none!important;min-width:0;min-height:180px;float:none!important;margin:0!important;border:1px solid var(--cn54-border,#d9e6f6);border-radius:20px;background:#f8faff;padding:16px 18px;box-sizing:border-box;overflow-wrap:anywhere}
#checkout .js-address-selector .address-item.selected,#order .js-address-selector .address-item.selected,
#checkout .js-address-selector .address-item.cn54-is-selected,#order .js-address-selector .address-item.cn54-is-selected{border:2px solid #55aeca;background:#fff;box-shadow:0 4px 20px rgba(28,70,110,.09)}
#checkout .js-address-selector .address-item .address,#order .js-address-selector .address-item .address{font-size:14px;line-height:1.48;color:#334864;overflow-wrap:anywhere}
#checkout .js-address-selector .address-item .address-alias,#order .js-address-selector .address-item .address-alias{color:#1a3154;font-size:17px;font-weight:750}
#checkout .js-address-selector .address-item .address-footer,#order .js-address-selector .address-item .address-footer{margin-top:12px}
#checkout .js-address-selector.cn54-many-addresses .address-item:not(.cn54-is-selected),
#order .js-address-selector.cn54-many-addresses .address-item:not(.cn54-is-selected){display:none!important}
#checkout .js-address-selector.cn54-many-addresses .address-item.cn54-is-selected,
#order .js-address-selector.cn54-many-addresses .address-item.cn54-is-selected{grid-column:1/-1;max-width:620px!important}
#checkout .js-address-selector .cn54-picker-toolbar,#order .js-address-selector .cn54-picker-toolbar{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border:1px solid #dfebf9;background:#f3f8ff;border-radius:13px;order:2}
#checkout .js-address-selector .cn54-picker-toolbar[hidden],#order .js-address-selector .cn54-picker-toolbar[hidden]{display:none!important}
.cn54-picker-count{font-size:13px;color:#536d91;font-weight:600}
.cn54-picker-open{background:#2f6dc8!important;color:white!important;border:0!important;cursor:pointer;border-radius:10px;padding:11px 16px;font-size:13px;font-weight:700;min-height:42px}
#checkout .add-address,#order .add-address{margin-top:16px}
#checkout .add-address a,#order .add-address a{display:inline-flex;align-items:center;gap:7px;background:#eff6ff;color:#2566b8;border:1px solid #d6e7fc;border-radius:11px;padding:10px 14px;font-weight:700;text-decoration:none}
body.cn54-address-dialog-open{overflow:hidden!important}
.cn54-modal-backdrop{position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(12,25,48,.62);display:flex;justify-content:center;align-items:center;padding:18px;box-sizing:border-box}
.cn54-modal-panel{width:min(100%,850px);max-height:min(90vh,850px);display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #dce8fa;border-radius:22px;box-shadow:0 25px 80px rgba(11,30,58,.35);padding:22px;box-sizing:border-box;color:#243b60}
.cn54-modal-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.cn54-modal-heading h3{font-weight:800;font-size:22px;color:#1b335a;margin:0}
.cn54-modal-close{border:1px solid #dce7f7;background:#f3f7ff;border-radius:50%;width:42px;height:42px;color:#284a81;font-size:20px;cursor:pointer;flex:0 0 42px}
.cn54-modal-search{width:100%;box-sizing:border-box;padding:13px 15px;min-height:46px;font-size:15px;border:1px solid #cddcf1;border-radius:12px;background:#fafdff;margin:0 0 13px}
.cn54-modal-search:focus-visible,.cn54-modal-panel button:focus-visible,.cn54-modal-panel a:focus-visible,.cn54-picker-open:focus-visible{outline:3px solid #6da6fa;outline-offset:2px}
.cn54-modal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0;max-height:55vh;overflow-y:auto;overscroll-behavior:contain;padding:3px 5px 5px 2px;align-content:start}
.cn54-modal-address{border:1px solid #d9e5f5;background:#f8faff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:9px;min-width:0;overflow-wrap:anywhere}
.cn54-modal-address.is-current{border:2px solid #4d9bc1;background:#f4fbff}
.cn54-modal-address[hidden]{display:none!important}
.cn54-modal-address strong{font-size:16px;color:#20375e}
.cn54-modal-address-text{white-space:pre-line;font-size:13px;line-height:1.5;color:#536582;max-height:165px;overflow-y:auto}
.cn54-modal-address-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto;padding-top:5px}
.cn54-modal-select{background:#326fce;border:0;border-radius:10px;color:white;cursor:pointer;min-height:39px;padding:9px 12px;font-weight:700;font-size:13px}
.cn54-modal-address.is-current .cn54-modal-select{background:#436484}
.cn54-modal-edit{font-size:13px;font-weight:700;color:#386db3;text-decoration:underline}
.cn54-modal-empty{font-size:14px;color:#5a6e89;padding:10px}
.cn54-modal-footer{border-top:1px solid #e3ecf7;padding-top:15px;margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cn54-modal-add{color:#2c6ac2;font-weight:750;padding:9px 12px;border-radius:10px;background:#eef6ff}
.cn54-modal-cancel{padding:9px 17px;border:1px solid #d6e2f2;border-radius:10px;background:white;color:#264a76;cursor:pointer}
@media(max-width:767px){#checkout .js-address-selector,#order .js-address-selector{grid-template-columns:minmax(0,1fr)}.cn54-modal-backdrop{padding:0;align-items:flex-end}.cn54-modal-panel{width:100%;max-height:94vh;border-radius:22px 22px 0 0;padding:17px}.cn54-modal-list{grid-template-columns:minmax(0,1fr);max-height:62vh}.cn54-modal-heading h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.cn54-modal-panel{animation:none}}
