/* Compact account overview; preserve the existing palette and native endpoint forms. */
/* Native address endpoints: compact cards without replacing Woo save/validation. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after{display:none}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address{float:none;width:auto;min-width:0;padding:20px;border:1px solid var(--dg-border);border-radius:20px;background:rgba(255,255,255,.88)}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title::after{display:none}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2{float:none;margin:0;font-size:18px;line-height:1.4;font-weight:600}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title .edit{float:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--dg-border);border-radius:12px;font-size:14px}
.woocommerce-account .woocommerce-Address address{font-style:normal;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.woocommerce-account .woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row{float:none;width:100%;min-width:0;margin:0;padding:0;grid-column:1/-1}
.woocommerce-account .woocommerce-address-fields__field-wrapper :is(.form-row-first,.form-row-last){grid-column:span 1}
/* Locale updates replace Woo row classes; keep compact billing pairs stable. */
@media(min-width:601px){
 .woocommerce-account .dg-address-form .woocommerce-address-fields__field-wrapper :is(#dg_billing_name_field,#billing_phone_field,#billing_city_field,#billing_state_field,#billing_postcode_field,#billing_country_field){grid-column:span 1}
}
.woocommerce-account .woocommerce-address-fields :is(input.input-text,select){font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}
.woocommerce-account .dg-address-form .woocommerce-address-fields select{width:100%;padding:10px 12px;border:1px solid var(--dg-border);border-radius:14px;background:#fff;color:var(--dg-ink);font-family:inherit}
.woocommerce-account .dg-address-form .woocommerce-address-fields select:focus-visible{outline:2px solid var(--dg-primary);outline-offset:2px}
.woocommerce-account .woocommerce-address-fields>p{margin-top:20px}
@media(max-width:600px){
 .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses{grid-template-columns:minmax(0,1fr)}
 .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address{padding:16px}
 .woocommerce-account .woocommerce-address-fields__field-wrapper{grid-template-columns:minmax(0,1fr)}
 .woocommerce-account .woocommerce-address-fields__field-wrapper :is(.form-row-first,.form-row-last){grid-column:1/-1}
 .woocommerce-account .woocommerce-address-fields button[type=submit]{width:100%;min-height:48px}
}
.woocommerce-account .woocommerce-MyAccount-content .dg-profile-form .form-row{margin-bottom:18px}
.woocommerce-account .dg-profile-form :is(input.input-text,textarea){min-height:48px;font-size:16px;max-width:100%;box-sizing:border-box}
.woocommerce-account .dg-profile-form textarea{resize:vertical;min-height:88px}
.woocommerce-account .dg-profile-form .description{display:block;margin-top:6px;color:var(--dg-muted);font-size:13px;line-height:1.5}
.woocommerce-account .dg-profile-form fieldset{margin:24px 0;padding:20px;min-width:0}
.woocommerce-account .dg-profile-form legend{font-weight:500;padding:0 6px}
@media(max-width:600px){
 .woocommerce-account .dg-profile-form :is(.form-row-first,.form-row-last){float:none;width:100%}
 .woocommerce-account .dg-profile-form fieldset{padding:16px;margin-top:20px}
 .woocommerce-account .dg-profile-form button[type=submit]{width:100%;min-height:48px}
}
.woocommerce-account .dg-account-order .dg-recent-order-date{grid-column:1 / -1;font-size:12px;color:var(--dg-muted);line-height:1.5}
.woocommerce-account .dg-account-order .dg-recent-order-products{grid-column:1 / -1;list-style:none;padding:10px 0 0;margin:0;border-top:1px solid var(--dg-border);font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.woocommerce-account .dg-recent-order-products li+li{margin-top:10px}
.woocommerce-account .dg-recent-order-products small{display:block;margin-top:3px;font-size:12px;color:var(--dg-muted)}
.woocommerce-account .dg-recent-product-name{font-weight:500}
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation{margin-bottom:20px;padding-bottom:10px}
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul{gap:6px}
/* Native Woo endpoints retain their behaviour; only the account layout changes. */
@media(min-width:1024px){
 .woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
 .woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)::before,
 .woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)::after{display:none}
 .woocommerce-account .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
 .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation{width:100%;margin:0;padding:12px;border:1px solid var(--dg-border);border-radius:20px;background:rgba(255,255,255,.88);box-shadow:var(--dg-customer-shadow)}
 .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul{display:flex;flex-direction:column;gap:6px}
 .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a{width:100%;min-height:46px;overflow-wrap:anywhere}
 .woocommerce-account .woocommerce .woocommerce-MyAccount-content{width:100%;min-width:0;box-shadow:none}
}
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a{padding:8px 12px;min-height:44px;font-size:14px;font-weight:500}
.woocommerce-account .woocommerce-MyAccount-content .dg-account-welcome h2{margin:0 0 6px;font-size:24px;font-weight:600;line-height:1.3}
.woocommerce-account .dg-account-welcome p{margin:0;color:var(--dg-muted);font-size:14px;line-height:1.6}
.woocommerce-account .dg-customer-stats{margin:20px 0;gap:12px}
.woocommerce-account .dg-customer-stat{padding:16px}
.woocommerce-account .dg-customer-stat>strong{font-size:22px;line-height:1.3}
.woocommerce-account .dg-customer-profile{padding:20px}
.woocommerce-account .dg-customer-profile dl{margin:16px 0;gap:14px 20px}
.woocommerce-account .dg-profile-actions{gap:12px}
.woocommerce-account .woocommerce-MyAccount-content .dg-account-overview>h2{margin:24px 0 12px;font-size:18px}
.woocommerce-account .dg-account-order{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:10px 0;padding:14px 16px;font-size:14px}
.woocommerce-account .dg-account-order>a{font-size:14px;font-weight:500;overflow-wrap:anywhere;min-height:44px;display:flex;align-items:center}
.woocommerce-account .dg-account-order>.dg-order-badge{padding:4px 10px;border-radius:999px;font-size:12px;max-width:100%;overflow-wrap:anywhere}
.woocommerce-account .dg-account-order>.dg-recent-order-total{font-variant-numeric:tabular-nums;text-align:right}
.woocommerce-account .dg-account-order a:focus-visible{outline:2px solid var(--dg-primary);outline-offset:3px;border-radius:4px}
@media(max-width:600px){
 .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button{float:none;display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;margin:0 0 12px;white-space:normal}
 .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a{padding:8px 10px}
 .woocommerce-account .woocommerce-MyAccount-content .dg-account-welcome h2{font-size:22px}
 .woocommerce-account .dg-customer-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .woocommerce-account .dg-customer-stat:last-child{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:12px}
 .woocommerce-account .dg-customer-stat:last-child>strong{margin:0}
 .woocommerce-account .dg-customer-stat{padding:14px}
 .woocommerce-account .dg-customer-stat>strong{font-size:20px}
 .woocommerce-account .dg-customer-profile{padding:16px}
 .woocommerce-account .dg-customer-profile dl{grid-template-columns:1fr;gap:12px}
 .woocommerce-account .dg-customer-profile>header{align-items:flex-start}
 .woocommerce-account .dg-account-order{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}
 .woocommerce-account .dg-account-order>.dg-recent-order-total{grid-column:1 / -1;border-top:1px solid var(--dg-border);padding-top:8px}
}
.woocommerce-account .woocommerce-orders-table :is(.woocommerce-orders-table__header-order-number,.woocommerce-orders-table__cell-order-number){white-space:nowrap;overflow-wrap:normal;word-break:normal}
/* Woo's enhanced address controls must match the native account inputs. */
body.woocommerce-account .woocommerce .dg-address-form .select2-container{max-width:100%}
body.woocommerce-account .woocommerce .dg-address-form .select2-selection--single{box-sizing:border-box;min-height:48px;height:auto;border:1px solid var(--dg-border);border-radius:12px;background:#fff;color:var(--dg-ink)}
body.woocommerce-account .woocommerce .dg-address-form .select2-selection__rendered{padding:12px 34px 12px 14px;font-family:inherit;font-size:16px;line-height:22px;color:var(--dg-ink);white-space:normal;overflow-wrap:anywhere}
body.woocommerce-account .woocommerce .dg-address-form .select2-selection__arrow{height:46px;top:0;right:7px}
body.woocommerce-account .woocommerce .dg-address-form .select2-container--focus .select2-selection,
body.woocommerce-account .woocommerce .dg-address-form .select2-container--open .select2-selection{outline:2px solid var(--dg-primary);outline-offset:3px}
