/* Address book follows the warm catalogue surfaces and the shared B2B type scale. */
.b2b-shell .address-workspace { max-width: 1220px; }
.b2b-shell .address-workspace .b2b-page-heading { align-items: center; gap: 20px; margin-bottom: 26px; }
.b2b-shell .address-workspace .b2b-page-heading h1 { font-size: clamp(25px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.7px; }
.b2b-shell .address-workspace .b2b-page-heading p { margin-top: 8px; color: #756773; font-size: 13px; font-weight: 400; }
.address-book { color: #3a303b; }
.address-book-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.address-book-heading>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.address-book-heading h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.25px; }
.address-book-heading span { color: #847680; font-size: 11px; font-weight: 400; }
.address-book-heading>i { color: #b99b74; font-size: 19px; }
.address-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-address { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e8e0da; border-radius: 19px; padding: 22px; background: #fff; box-shadow: 0 4px 15px #392b3d04; transition: border-color .18s, box-shadow .18s; }
.delivery-address.is-main { border-color: #dcc8a9; background: linear-gradient(140deg, #fffaf2, #fff 74%); }
.delivery-address-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.delivery-address-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #8e7566; background: #f6f0eb; font-size: 18px; }
.is-main .delivery-address-icon { background: #f1e5d1; color: #947034; }
.delivery-address-badge { font-size: 10px; font-weight: 500; color: #857680; background: #f5f1f4; border: 1px solid #ebe4e9; padding: 4px 9px; border-radius: 20px; }
.is-main .delivery-address-badge { color: #95703c; background: #faf1df; border-color: #e9d9bc; }
.b2b-shell .address-book .delivery-address h3 { margin: 0 0 10px; color: #3a2e3c; font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: -.3px; overflow-wrap: anywhere; }
.delivery-address address { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 20px; color: #786b75; font-size: 12px; font-weight: 400; line-height: 1.8; font-style: normal; overflow-wrap: anywhere; }
.delivery-address address strong { color: #5d4c5a; font-size: 12px; font-weight: 500; }
.delivery-address address small { color: #95838e; font-size: 10px; }
.delivery-address-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; margin-top: auto; border-top: 1px solid #f0e9e4; }
.delivery-address-contact>span { display: inline-flex; align-items: baseline; gap: 7px; color: #796973; font-size: 11px; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.delivery-address-contact i { color: #ac8d6a; flex-shrink: 0; }
.address-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; border: 1px dashed #dacbc0; border-radius: 18px; background: #fdfaf7; }
.address-empty>span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; color: #ac8860; background: #f4eadc; border-radius: 16px; font-size: 23px; }
.b2b-shell .address-book .address-empty h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.address-empty p { color: #867780; font-size: 12px; margin: 0; }
.address-create { margin-top: 24px; border: 1px solid #e5dad1; border-radius: 19px; background: #fff; overflow: hidden; }
.address-create>summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 20px 24px; background: #fcf8f3; cursor: pointer; }
.address-create>summary::-webkit-details-marker { display: none; }
.address-create>summary>span:nth-child(2) { min-width: 0; flex: 1; }
.address-create>summary strong { display: block; color: #58443d; font-size: 15px; font-weight: 500; }
.address-create>summary small { display: block; color: #8a766e; font-size: 11px; margin-top: 4px; font-weight: 400; }
.address-create-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #ebd9c6; border-radius: 12px; background: #fff; color: #a97749; font-size: 19px; }
.address-create-chevron { color: #b09681; font-size: 13px; flex-shrink: 0; transition: transform .18s ease; }
.address-create[open] .address-create-chevron { transform: rotate(180deg); }
.address-create[open]>summary { border-bottom: 1px solid #eae1d8; }
.address-create form { padding: 26px; }
.address-create fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.address-form-section { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.address-section-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; font-size: 11px; font-weight: 500; border-radius: 10px; background: #f7f1e9; color: #ab865c; }
.b2b-shell .address-form-section h3 { margin: 0; font-size: 14px; font-weight: 500; color: #4d3e4d; }
.address-form-section p { margin: 4px 0 0; font-size: 11px; font-weight: 400; color: #887581; }
.address-contact-section { margin-top: 28px; border-top: 1px solid #eee6e0; padding-top: 24px; }
.address-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.address-field-wide { grid-column: 1 / -1; }
.address-short-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.b2b-shell .address-create .b2b-field { margin-bottom: 0; gap: 7px; min-width: 0; }
.b2b-shell .address-create .b2b-field label { font-size: 12px; font-weight: 400; color: #766372; }
.address-create label>span { color: #b37d69; }
.b2b-shell .address-create :is(.b2b-field input, .b2b-field select) { min-width: 0; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #e4dcd5; border-radius: 10px; color: #493849; background: #fff; font-size: 14px; font-weight: 400; box-shadow: none; }
.address-create input::placeholder { color: #ac9ba7; font-size: 12px; }
.b2b-shell .address-create input:focus { border-color: #bf9c78; box-shadow: 0 0 0 3px #bf9c7815; outline: none; }
.address-form-footer { margin-top: 24px; padding-top: 22px; border-top: 1px solid #eee6e0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.b2b-shell .address-form-footer .b2b-checkbox { margin: 0; font-size: 12px; font-weight: 400; color: #7a6574; gap: 9px; }
.address-form-footer .b2b-checkbox span { color: inherit; }
.b2b-shell .address-form-footer .b2b-button { min-height: 46px; border-radius: 11px; font-size: 13px; font-weight: 500; padding: 10px 20px; }
.address-create>summary:focus-visible { outline: 3px solid #bf9c78; outline-offset: -4px; }
@media(hover:hover) and (pointer:fine) { .delivery-address:hover { border-color: #d2bda7; box-shadow: 0 7px 20px #50352c08; } }
@media(max-width:767px) {
    .b2b-shell .address-workspace .b2b-page-heading { flex-wrap: wrap; align-items: flex-start; margin-bottom: 24px; }
    .address-book-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .delivery-address { padding: 19px; }
    .address-create>summary { padding: 18px; gap: 12px; }
    .address-create form { padding: 20px; }
    .address-create>summary small { line-height: 1.7; }
}
@media(max-width:479px) {
    .address-form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .address-short-fields { gap: 10px; }
    .b2b-shell .address-create :is(.b2b-field input, .b2b-field select) { padding: 10px; font-size: 16px; }
    .address-form-footer { align-items: stretch; }
    .address-form-footer .b2b-button { width: 100%; justify-content: center; }
    .address-book-heading h2 { font-size: 15px; }
}
@media(prefers-reduced-motion:reduce) { .delivery-address, .address-create-chevron { transition: none; } }
