.customer-addresses-page { min-height: 70vh; padding: clamp(1.5rem, 4vw, 4rem) 0; background: radial-gradient(circle at 88% 7%, rgba(159, 119, 44, .13), transparent 28rem), #f8f6f1; }
.customer-addresses-shell { display: grid; gap: 1.25rem; max-width: 1120px; }
.addresses-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; border-radius: 0; background: linear-gradient(125deg, #1d1a16, #56452b); box-shadow: 0 1.2rem 3rem rgba(44, 34, 18, .18); }
.addresses-hero > div:first-child > span { color: #d8b766; font-size: .78rem; font-weight: 800; }
.addresses-hero h1 { margin: .4rem 0 .65rem; font-size: var(--text-heading-1); }
.addresses-hero p { max-width: 43rem; margin: 0; color: #ddd6ca; line-height: 1.9; }
.addresses-back { display: block; width: fit-content; margin-bottom: 1rem; color: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: .3rem; opacity: .82; }
.addresses-hero__actions { display: grid; flex: 0 0 12rem; gap: .7rem; }
.addresses-hero__actions > div { padding: .85rem 1rem; text-align: center; border: 1px solid rgba(255,255,255,.15); border-radius: 0; background: rgba(255,255,255,.07); }
.addresses-hero__actions strong, .addresses-hero__actions span { display: block; }
.addresses-hero__actions strong { color: #e8c978; font-size: 1.8rem; }
.addresses-hero__actions span { font-size: .75rem; }
.address-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.address-card { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid #e4dccf; border-radius: 1.2rem; background: #fff; box-shadow: 0 .8rem 2rem rgba(54, 43, 25, .06); }
.address-card > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding-bottom: .85rem; border-bottom: 1px solid #eee8de; }
.address-card__marker { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #fff; border-radius: 50% 50% 50% 12%; background: #8a6a28; font-weight: 900; }
.address-card header span, .address-card header h2 { display: block; }
.address-card header div > span { color: #81796c; font-size: .72rem; }
.address-card h2 { margin: .15rem 0 0; color: #302a22; font-size: 1.05rem; }
.address-area { padding: .3rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.address-area--tehran { color: #236b47; background: #def4e8; }
.address-area--outside { color: #75591d; background: #fff2c9; }
.address-card address { min-height: 4rem; color: #494238; font-style: normal; line-height: 1.95; }
.address-card dl { display: flex; gap: 1.5rem; margin: 0; }
.address-card dl div { display: grid; gap: .2rem; }
.address-card dt { color: #827a6e; font-size: .7rem; }
.address-card dd { margin: 0; color: #373128; font-size: .85rem; font-weight: 800; }
.address-card footer { display: flex; gap: .6rem; padding-top: .8rem; border-top: 1px solid #eee8de; }
.addresses-note { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; color: #5a4b2d; border: 1px solid #e6d6ae; border-radius: 0; background: #fff9e9; }
.addresses-note strong { flex: 0 0 auto; }
.addresses-note p { margin: 0; line-height: 1.8; }
.address-editor { display: grid; gap: 1rem; }
.address-editor__field { display: grid; gap: .4rem; }
.address-editor__field label { color: #3e372d; font-size: .85rem; font-weight: 800; }
.address-editor__field select { width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 1px solid #d8d0c3; border-radius: .75rem; background: #fff; font: inherit; }
.address-editor__field--error select { border-color: #b84444; }
.address-editor__field small { color: #a12d2d; }
.address-delete-note { margin: 0; color: #625a4f; line-height: 1.9; }
.address-modal.ui-modal { background: rgb(4 28 52 / 60%); backdrop-filter: blur(6px); }
.address-modal .ui-modal__panel { width: min(640px, 100%); padding: 0; border: 1px solid #e1e5e8; border-radius: 18px; background: #fff; box-shadow: 0 32px 100px rgb(0 19 39 / 24%); }
.address-modal .ui-modal__close { z-index: 2; inset-block-start: 20px; inset-inline-end: 20px; width: 34px; height: 34px; border: 0; border-radius: 9px; color: #758796; background: #f0f4f6; font-size: 1.4rem; }
.address-modal .ui-modal__header { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 4px 13px; padding: 27px 28px 22px; border-bottom: 1px solid #edf0f2; background: #fcfcfa; }
.address-modal .ui-modal__symbol { display: grid; grid-row: 1 / 3; width: 45px; height: 45px; place-items: center; border: 1px solid #e4d9c4; border-radius: 12px; color: #a18149; background: #f8f3e9; }
.address-modal .ui-modal__eyebrow { padding-inline-end: 30px; color: var(--color-gold-dark); font-size: .65rem; font-weight: 500; letter-spacing: 0; }
.address-modal .ui-modal__header h2 { margin: 0; padding-inline-end: 30px; color: var(--color-ink); font-size: 1.2rem; font-weight: 600; }
.address-modal .ui-modal__header p { grid-column: 1 / -1; margin: 12px 0 0; color: #7c8b97; font-size: .73rem; line-height: 1.9; }
.address-modal .ui-modal__body { padding: 25px 28px; }
.address-modal .address-editor { gap: 22px; }
.address-editor__row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
.address-modal :is(.ui-field label, .address-editor__field label) { color: #536d7f; font-size: .76rem; font-weight: 500; }
.address-modal :is(.ui-field input, .ui-field textarea, .address-editor__field select) { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #dae2e7; border-radius: 9px; color: var(--color-ink); background: #fff; font: inherit; font-size: .86rem; }
.address-modal input[name='postal_code'] { direction: ltr; text-align: left; letter-spacing: .08em; }
.address-modal .ui-field textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.address-modal :is(input, select, textarea):focus { outline: 0; border-color: #b3945e; box-shadow: 0 0 0 3px rgb(210 172 103 / 13%); }
.address-modal :is(.ui-field small, .address-editor__field small) { color: #86939e; font-size: .64rem; line-height: 1.9; }
.address-modal :is(.ui-field--error input, .ui-field--error textarea, .address-editor__field--error select) { border-color: #b85b51; }
.address-modal :is(.ui-field--error small, .address-editor__field--error small) { color: #ac514a; }
.address-editor__note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 9px; color: #7890a2; background: #f4f7f9; font-size: .67rem; line-height: 1.9; }
.address-editor__note .roz-icon { width: 18px; height: 18px; margin-top: 2px; }
.address-editor__actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid #edf0f2; }
.address-editor__actions .ui-button { min-height: 47px; min-width: 115px; border-radius: 9px; box-shadow: none; font-size: .78rem; }
.address-editor__actions .ui-button--primary { color: #fff; background: var(--color-ink); }
.address-editor__actions .ui-button--ghost { color: #768996; background: #f3f6f8; }
@media (max-width: 760px) { .address-card-grid { grid-template-columns: 1fr; } .addresses-hero { align-items: stretch; flex-direction: column; } .addresses-hero__actions { grid-template-columns: 1fr 1.3fr; flex-basis: auto; align-items: stretch; } }
@media (max-width: 500px) { .addresses-hero__actions { grid-template-columns: 1fr; } .address-card > header { grid-template-columns: auto 1fr; } .address-area { grid-column: 2; width: fit-content; } .addresses-note { align-items: flex-start; flex-direction: column; } }
@media (max-width: 640px) {
    .address-modal.ui-modal { padding: 12px; align-items: end; }
    .address-modal.ui-modal .ui-modal__panel { padding: 0; border-radius: 18px; max-height: calc(100dvh - 24px); }
    .address-modal .ui-modal__header { padding: 25px 22px 20px; }
    .address-modal .ui-modal__body { padding: 22px; }
    .address-editor__row { grid-template-columns: 1fr; gap: 20px; }
    .address-editor__actions .ui-button { min-width: 0; flex: 1; }
}
