/* Shared address book and native WooCommerce editor. */
.wg-address-book, .wg-address-editor { color: #202724; }
.wg-address-heading { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--account-line); }
.wg-address-heading .wg-address-eyebrow { color: var(--account-deep); font-size: 11px; font-weight: 600; letter-spacing: .17em; margin: 0 0 10px; }
.account-page .wg-address-heading h2,
.woocommerce-account .wg-address-heading h2 { font: 600 38px/1.12 'Barlow Condensed', Arial, sans-serif; margin: 0 0 12px; color: var(--account-deep); }
.wg-address-heading p:last-child { margin: 0; font-size: 15px; line-height: 1.6; max-width: 650px; }
.wg-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.wg-address-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: var(--account-canvas); border: 1px solid var(--account-line); border-top: 3px solid var(--account-deep); }
.wg-address-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.wg-address-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--account-deep); color: #fff; }
.wg-address-icon svg { width: 24px; height: 24px; }
.wg-address-status { padding: 5px 10px; border: 1px solid var(--account-line); border-radius: 20px; background: var(--account-surface); color: var(--account-deep); font-size: 12px; font-weight: 600; }
.account-page .wg-address-card h3,
.woocommerce-account .wg-address-card h3 { font: 600 28px/1.2 'Barlow Condensed', Arial, sans-serif; margin: 0 0 6px; color: var(--account-deep); }
.wg-address-card .wg-address-purpose { font-size: 13px; margin: 0; }
.wg-address-details { flex: 1; padding: 20px 0 24px; }
.wg-address-details p, .wg-address-details address { font-size: 15px; line-height: 1.65; font-style: normal; margin: 0; overflow-wrap: anywhere; }
.wg-address-book .wg-address-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; min-height: 46px; box-sizing: border-box; background: var(--account-deep); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.wg-address-action:hover { filter: brightness(1.15); }
.wg-address-note { display: flex; align-items: baseline; gap: 12px; padding-top: 22px; color: var(--account-deep); }
.wg-address-note p { margin: 0; font-size: 13px; line-height: 1.6; }
.wg-address-note > span { font-weight: 600; }
.wg-address-back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin: -12px 0 18px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--account-deep); }
.wg-address-editor .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.woocommerce-account .wg-address-editor form .form-row { width: auto; float: none; margin: 0; min-width: 0; }
.wg-address-editor .form-row-wide, .wg-address-editor #billing_address_2_field, .wg-address-editor #shipping_address_2_field { grid-column: 1 / -1; }
.wg-address-editor :is(#billing_state_field, #shipping_state_field, #billing_postcode_field, #shipping_postcode_field, #billing_phone_field, #billing_email_field) { grid-column: auto; }
.wg-address-editor .woocommerce-input-wrapper { display: block; }
.wg-address-editor .select2-container .select2-selection--single { min-height: 48px; border: 1px solid #aeb5ae; border-radius: 0; background: #fafbf9; }
.wg-address-editor .select2-container .select2-selection--single .select2-selection__rendered { padding: 9px 30px 9px 12px; line-height: 28px; }
.wg-address-editor .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.wg-address-form-actions { display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--account-line); margin-top: 28px; padding-top: 24px; }
.woocommerce-account.wg-wordpress .wg-address-editor button.wg-address-save { display: inline-flex; justify-content: space-between; align-items: center; gap: 36px; background: var(--account-deep); }
.wg-address-cancel { display: inline-flex; align-items: center; min-height: 46px; font-size: 14px; font-weight: 600; color: var(--account-deep); text-underline-offset: 4px; }
.wg-address-book a:focus-visible, .wg-address-editor a:focus-visible, .wg-address-editor button:focus-visible { outline: 2px solid var(--account-deep); outline-offset: 4px; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper:empty { display: none; }
@media (max-width: 1100px) and (min-width: 801px), (max-width: 600px) {
  .wg-address-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wg-address-card { padding: 22px; }
  .wg-address-editor .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
  .wg-address-editor .woocommerce-address-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
  .account-page .wg-address-heading h2, .woocommerce-account .wg-address-heading h2 { font-size: 34px; }
}
