/*
 * View 样式：customer address book layout。
 * 源码：frontend/src/views/styles/106-customer-address-book-layout.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */

.customer-address-book{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;min-height:calc(100dvh - 28px);align-items:stretch}
body.signed .customer-address-book>.panel{min-width:0;margin:0;padding:18px!important;border-radius:12px;display:flex;flex-direction:column;gap:16px}
.address-book-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px}
.address-book-heading h2{margin:0!important;font-size:17px;line-height:1.4}
.address-book-count{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.address-book-heading button{flex:none;min-height:36px;margin:0;padding:7px 10px;font-size:12px;white-space:nowrap}
.customer-address-book .address-list{margin:0;display:grid;gap:12px;align-content:start}
.customer-address-book .pickup-address-list{grid-template-columns:minmax(0,1fr)}
.customer-address-book .delivery-address-list{grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.customer-address-book .address-card{min-width:0;width:100%;margin:0;padding:15px;border-radius:9px;border:1px solid #dde6e1;background:#f8fbfa;cursor:default}
.customer-address-book .address-card h3{margin:0 0 6px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.customer-address-book .address-card .id{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8a9991}
.customer-address-book .address-card p{margin:12px 0 10px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.customer-address-book .address-card .contact{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;line-height:1.6}
.customer-address-book .address-card .address-remove{margin:12px 0 0;padding:4px 0;min-height:28px;background:transparent;border:0;color:#aa5d56;font-size:11px}
.address-book-search{display:flex;align-items:center;gap:8px;margin:0;padding:0 12px;border:1px solid #dce5df;border-radius:8px;background:#fafcfb}
.address-book-search svg{width:17px;height:17px;flex:none;color:#7b9085}
.address-book-search input{margin:0!important;min-width:0;width:100%;min-height:40px;padding:9px 0!important;border:0!important;background:transparent!important;font-size:13px;box-shadow:none!important}
.customer-address-book .address-book-empty{margin:12px 0;padding:25px 10px;text-align:center;color:var(--muted);font-size:12px}
.customer-address-book [hidden]{display:none!important}
@media(max-width:850px){.customer-address-book{grid-template-columns:minmax(0,1fr);min-height:0;gap:12px}.customer-address-book .delivery-address-list{grid-template-columns:minmax(0,1fr)}body.signed .customer-address-book>.panel{padding:14px!important;gap:12px}.address-book-heading h2{font-size:16px}.address-book-search input{font-size:16px}}
