/* Customer pages use the same tokens and surfaces as Cart and Checkout. */
/* Reuse the Cart/Checkout digit glyphs for display only; DOM text and form values stay unchanged. */
@font-face { font-family: "InstaShop Digits"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/InstaShop-Digits-Regular.woff") format("woff"); unicode-range: U+0030-0039, U+0660-0669; }
@font-face { font-family: "InstaShop Digits"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/InstaShop-Digits-Medium.woff") format("woff"); unicode-range: U+0030-0039, U+0660-0669; }
@font-face { font-family: "InstaShop Digits"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/InstaShop-Digits-SemiBold.woff") format("woff"); unicode-range: U+0030-0039, U+0660-0669; }
@font-face { font-family: "InstaShop Digits"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/InstaShop-Digits-Bold.woff") format("woff"); unicode-range: U+0030-0039, U+0660-0669; }
.woocommerce-account .woocommerce-MyAccount-content { font-family: "InstaShop Digits", var(--instashop-font); }
.woocommerce-account .woocommerce-MyAccount-content :is(input, textarea, select, .select2-container, code, .sku, .woocommerce-customer-details--email, a[href^="mailto:"]) { font-family: var(--instashop-font); }
:is(.woocommerce-account, .woocommerce-order-received) .site-main { padding-block: clamp(1.25rem, 3vw, 2.5rem) var(--instashop-space-6); }
:is(.woocommerce-account, .woocommerce-order-received) article.entry { background: transparent; border: 0; padding: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .entry-header { margin-block-end: var(--instashop-space-4); }
:is(.woocommerce-account, .woocommerce-order-received) .entry-content,
:is(.woocommerce-account, .woocommerce-order-received) .entry-content > .woocommerce { max-inline-size: none; min-inline-size: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce { min-inline-size: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--instashop-accent); outline-offset: 2px; }

/* Shared controls: match the three-rem Checkout fields without changing behavior. */
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce :is(input.input-text, textarea, select, .select2-selection--single) { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); box-shadow: none; color: var(--instashop-text); min-block-size: 3rem; min-inline-size: 0; transition: border-color .16s ease, box-shadow .16s ease; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce :is(input.input-text, textarea, select):focus { border-color: var(--instashop-primary); box-shadow: 0 0 0 3px rgb(37 99 235 / .14); outline: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .form-row { margin-block-end: var(--instashop-space-3); padding: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .form-row label { color: var(--instashop-text); font-size: var(--instashop-text-small); font-weight: 600; line-height: 1.6; margin-block-end: .35rem; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .required { color: var(--instashop-error); text-decoration: none; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .woocommerce-invalid :is(input.input-text, select, textarea) { border-color: var(--instashop-error); box-shadow: 0 0 0 3px rgb(185 28 28 / .1); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce :is(input, select, textarea, button, .button):disabled { cursor: not-allowed; opacity: .56; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce input[type="checkbox"] { accent-color: var(--instashop-primary); block-size: 1.2rem; inline-size: 1.2rem; vertical-align: middle; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .password-input { display: block; inline-size: 100%; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .show-password-input { inset-inline-end: .85rem; inset-inline-start: auto; min-block-size: 2rem; min-inline-size: 2rem; top: 50%; transform: translateY(-50%); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce .button { min-block-size: 2.9rem; text-decoration: none; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce :is(.button, button.button):focus-visible { box-shadow: 0 0 0 3px rgb(249 115 22 / .2); }

/* WooCommerce's login, registration and recovery forms stay native. */
.woocommerce-account:not(:has(.woocommerce-MyAccount-navigation)) .entry-content > .woocommerce { margin-inline: auto; max-inline-size: 58rem; }
.woocommerce-account #customer_login { display: grid; gap: var(--instashop-space-4); }
.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after { display: none; }
.woocommerce-account #customer_login > :is(.u-column1, .u-column2) { float: none; min-inline-size: 0; width: auto; }
.woocommerce-account #customer_login h2 { font-size: var(--instashop-text-section-title); line-height: 1.35; margin: 0 0 var(--instashop-space-3); }
.woocommerce-account :is(form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword, form.lost_reset_password) { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); box-shadow: var(--instashop-shadow-sm); margin: 0; padding: clamp(1.25rem, 3vw, 2rem); }
.woocommerce-account :is(form.woocommerce-ResetPassword, form.lost_reset_password) { margin-inline: auto; max-inline-size: 36rem; }
.woocommerce-account :is(form.woocommerce-ResetPassword, form.lost_reset_password) > p:first-child { color: var(--instashop-muted); line-height: 1.8; margin-block: 0 var(--instashop-space-4); }
.woocommerce-account :is(form.woocommerce-ResetPassword, form.lost_reset_password) .form-row { float: none; inline-size: 100%; }
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme { align-items: center; cursor: pointer; display: inline-flex; gap: .5rem; margin-block: .25rem var(--instashop-space-3); }
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit { display: flex; inline-size: 100%; margin: 0; }
.woocommerce-account .woocommerce-LostPassword { font-size: var(--instashop-text-small); margin: var(--instashop-space-3) 0 0; }
.woocommerce-account .woocommerce-form-register .woocommerce-privacy-policy-text { color: var(--instashop-muted); font-size: var(--instashop-text-meta); line-height: 1.7; }
.woocommerce-account :is(.woocommerce-form-register__submit, .woocommerce-ResetPassword button.button, .lost_reset_password button.button) { inline-size: 100%; }
.woocommerce-account .woocommerce-password-strength { border-radius: var(--instashop-radius-sm); font-size: var(--instashop-text-small); margin-block-start: .5rem; padding: .5rem .75rem; }

/* Account shell retains WooCommerce navigation and endpoint markup. */
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; margin: 0 0 var(--instashop-space-3); min-inline-size: 0; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; gap: .5rem; list-style: none; margin: 0; overflow-x: auto; overscroll-behavior-inline: contain; padding: .15rem .15rem .6rem; scrollbar-width: thin; }
.woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { align-items: center; background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); color: var(--instashop-text); display: inline-flex; font-size: var(--instashop-text-small); font-weight: 600; min-block-size: 2.75rem; padding: .55rem .85rem; text-decoration: none; white-space: nowrap; }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { border-color: var(--instashop-primary); color: var(--instashop-primary); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--instashop-primary); border-color: var(--instashop-primary); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); float: none; margin: 0; min-inline-size: 0; overflow-wrap: anywhere; padding: clamp(1rem, 3vw, 1.75rem); width: auto; }
.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-block-start: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-block-end: 0; }
.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); line-height: 1.4; margin-block: var(--instashop-space-4) var(--instashop-space-3); }
.woocommerce-account .woocommerce-MyAccount-content p { line-height: 1.8; }
.woocommerce-account .woocommerce-MyAccount-content p a:not(.button) { font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) { align-items: center; border: 1px dashed var(--instashop-border); border-radius: var(--instashop-radius-md); display: flex; flex-wrap: wrap; gap: var(--instashop-space-2); line-height: 1.7; margin: 0; min-block-size: 6rem; padding: var(--instashop-space-4); }
.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message)::before { display: none; }
.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) .button { margin-inline-start: auto; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .edit { float: none; font-size: var(--instashop-text-small); font-weight: 700; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); margin-block: var(--instashop-space-4); padding: var(--instashop-space-3); }
.woocommerce-account .woocommerce-MyAccount-content fieldset legend { font-size: 1.05rem; font-weight: 700; padding-inline: .5rem; }

/* Order lists and details use the existing shop-table semantics. */
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce table.shop_table { border-color: var(--instashop-border); border-radius: var(--instashop-radius-md); border-spacing: 0; inline-size: 100%; margin-block: var(--instashop-space-3); table-layout: auto; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce table.shop_table :is(th, td) { border-color: var(--instashop-border); line-height: 1.65; overflow-wrap: anywhere; padding: .85rem 1rem; text-align: start; vertical-align: middle; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce table.shop_table th { color: var(--instashop-muted); font-size: var(--instashop-text-meta); font-weight: 700; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce table.shop_table tbody tr:hover { background: color-mix(in srgb, var(--instashop-primary) 3%, var(--instashop-surface)); }
.woocommerce-account .woocommerce-orders-table__cell-order-status { background: color-mix(in srgb, var(--instashop-primary) 7%, var(--instashop-surface)); color: var(--instashop-primary); font-size: var(--instashop-text-small); font-weight: 700; }
.woocommerce-account .woocommerce-orders-table__cell-order-status::first-letter { text-transform: uppercase; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { margin: .15rem; min-block-size: 2.6rem; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination { display: flex; gap: .5rem; justify-content: space-between; margin-block-start: var(--instashop-space-4); }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button { min-block-size: 2.75rem; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button--previous::before { content: '‹'; margin-inline-end: .35rem; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button--next::after { content: '›'; margin-inline-start: .35rem; }

/* Completion state and view-order content. */
.woocommerce-order-received .woocommerce-order { min-inline-size: 0; }
.woocommerce-order-received .woocommerce-thankyou-order-received { background: color-mix(in srgb, var(--instashop-success) 7%, var(--instashop-surface)); border: 1px solid color-mix(in srgb, var(--instashop-success) 30%, var(--instashop-border)); border-radius: var(--instashop-radius-lg); color: var(--instashop-success); font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; line-height: 1.6; margin: 0 0 var(--instashop-space-4); padding: clamp(1rem, 3vw, 1.5rem); }
.woocommerce-order-received .woocommerce-thankyou-order-received::before { align-items: center; background: var(--instashop-success); border-radius: 50%; color: #fff; content: '✓'; display: inline-flex; font-family: system-ui, sans-serif; font-size: 1rem; height: 2rem; justify-content: center; margin-inline-end: .7rem; vertical-align: middle; width: 2rem; }
/* The Checkout Block renders its own confirmation structure and can also show a failed order. */
.woocommerce-order-received .wc-block-order-confirmation-status { background: color-mix(in srgb, var(--instashop-primary) 6%, var(--instashop-surface)); border: 1px solid color-mix(in srgb, var(--instashop-primary) 25%, var(--instashop-border)); border-radius: var(--instashop-radius-lg); margin-block-end: var(--instashop-space-4); padding: clamp(1rem, 3vw, 1.5rem); }
.woocommerce-order-received .wc-block-order-confirmation-status h1 { color: var(--instashop-text); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.4; margin: 0 0 .35rem; }
.woocommerce-order-received .wc-block-order-confirmation-status p { color: var(--instashop-muted); margin: 0; }
.woocommerce-order-received .wc-block-order-confirmation-status__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: var(--instashop-space-3); }
.woocommerce-order-received .wc-block-order-confirmation-summary-list { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); display: grid; gap: var(--instashop-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 var(--instashop-space-4); padding: clamp(1rem, 3vw, 1.5rem); }
.woocommerce-order-received .wc-block-order-confirmation-summary-list-item { margin: 0; min-inline-size: 0; }
.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__key { color: var(--instashop-muted); display: block; font-size: var(--instashop-text-meta); }
.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value { color: var(--instashop-text); display: block; font-weight: 700; margin-block-start: .3rem; overflow-wrap: anywhere; }
.woocommerce-order-received :is(.wc-block-order-confirmation-totals-wrapper, .wc-block-order-confirmation-downloads-wrapper, .wc-block-order-confirmation-additional-fields-wrapper) { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); margin-block: var(--instashop-space-3); min-inline-size: 0; padding: clamp(1rem, 3vw, 1.5rem); }
.woocommerce-order-received :is(.wc-block-order-confirmation-totals__table, .wc-block-order-confirmation-downloads__table) { border-collapse: collapse; inline-size: 100%; }
.woocommerce-order-received :is(.wc-block-order-confirmation-totals__table, .wc-block-order-confirmation-downloads__table) :is(th, td) { border-block-end: 1px solid var(--instashop-border); overflow-wrap: anywhere; padding: .75rem .35rem; text-align: start; }
.woocommerce-order-received :is(.wc-block-order-confirmation-totals__table, .wc-block-order-confirmation-downloads__table) :is(th, td):last-child { text-align: end; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce ul.order_details { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); display: grid; gap: var(--instashop-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 var(--instashop-space-4); padding: clamp(1rem, 3vw, 1.5rem); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce ul.order_details li { border: 0; color: var(--instashop-muted); float: none; font-size: var(--instashop-text-meta); line-height: 1.6; margin: 0; min-inline-size: 0; padding: 0; text-transform: none; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce ul.order_details li strong { color: var(--instashop-text); display: block; font-size: 1rem; font-weight: 700; line-height: 1.5; margin-block-start: .3rem; overflow-wrap: anywhere; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); margin-block: var(--instashop-space-3); min-inline-size: 0; padding: clamp(1rem, 3vw, 1.5rem); }
:is(.woocommerce-account, .woocommerce-order-received) :is(.woocommerce-order-details__title, .woocommerce-column__title) { font-size: 1.2rem; line-height: 1.4; margin: 0 0 var(--instashop-space-3); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details { margin-block: var(--instashop-space-4); min-inline-size: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table { border: 0; border-radius: 0; margin: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table :is(th, td) { padding-inline: .25rem; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table td:last-child,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table tfoot td { text-align: end; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details .order-total :is(th, td) { border-block-start: 2px solid var(--instashop-text); color: var(--instashop-text); font-size: 1.05rem; font-weight: 700; }

@media (min-width: 48rem) {
  .woocommerce-account #customer_login { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce ul.order_details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .woocommerce-order-received .wc-block-order-confirmation-summary-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) { align-items: start; display: grid; gap: var(--instashop-space-4); grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); }
  .woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation { grid-column: 1; }
  .woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content { grid-column: 2; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-md); display: grid; gap: .25rem; overflow: visible; padding: .6rem; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { min-inline-size: 0; }
  .woocommerce-account .woocommerce-MyAccount-navigation a { border-color: transparent; inline-size: 100%; white-space: normal; }
  .woocommerce-account .woocommerce-MyAccount-content { min-block-size: 20rem; }
}
@media (max-width: 47.999rem) {
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) { border: 0; display: block; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) thead { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; width: 1px; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) tbody { display: grid; gap: var(--instashop-space-2); }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) tr { background: var(--instashop-background); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); display: block; margin: 0; padding: .4rem .85rem; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) :is(th[data-title], td[data-title]) { align-items: baseline; border: 0; border-block-end: 1px solid var(--instashop-border); display: flex; gap: .75rem; justify-content: space-between; padding: .7rem 0; text-align: end; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) :is(th[data-title], td[data-title]):last-child { border-block-end: 0; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-downloads, .woocommerce-MyAccount-paymentMethods) :is(th[data-title], td[data-title])::before { color: var(--instashop-muted); content: attr(data-title); float: none; font-size: var(--instashop-text-meta); font-weight: 600; min-inline-size: 5rem; text-align: start; }
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status { background: transparent; }
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { flex-wrap: wrap; }
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button { flex: 1 1 auto; margin: .15rem 0; }
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions::before { flex-basis: 100%; }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table :is(th, td) { padding-block: .7rem; }
}
@media (max-width: 35rem) {
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce ul.order_details { grid-template-columns: minmax(0, 1fr); }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table { display: table; table-layout: fixed; }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table :is(th, td) { display: table-cell; }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table tr { display: table-row; }
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-order-details table.shop_table td::before { display: none; }
  .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) .button { inline-size: 100%; margin: .5rem 0 0; }
}

/* Read-only address cards: order details, order confirmation and My Account. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-columns,
.woocommerce-order-received .wc-block-order-confirmation-address-wrapper {
  align-items: stretch;
  display: grid;
  gap: var(--instashop-space-3);
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  min-inline-size: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-columns::before,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-columns::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-column,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details:not(:has(.woocommerce-columns)),
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-wrapper, .wc-block-order-confirmation-shipping-wrapper) {
  background: var(--instashop-surface);
  border: 1px solid var(--instashop-border);
  border-radius: var(--instashop-radius-md);
  box-shadow: var(--instashop-shadow-sm);
  float: none;
  inline-size: 100%;
  margin: 0;
  min-block-size: 0;
  min-inline-size: 0;
  padding: clamp(1rem, 2vw, 1.25rem);
  width: auto;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-column { align-self: stretch; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address header { align-items: center; border-block-end: 1px solid var(--instashop-border); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin: 0 0 var(--instashop-space-3); padding-block-end: var(--instashop-space-2); }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address h2,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-wrapper, .wc-block-order-confirmation-shipping-wrapper) > :is(h2, h3, .wp-block-heading) {
  border-block-end: 1px solid var(--instashop-border);
  color: var(--instashop-text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 var(--instashop-space-3);
  padding: 0 0 var(--instashop-space-2);
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address h2 { border: 0; margin: 0; padding: 0; }
/* WooCommerce's heading pattern adds an inline 24px font size. */
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-wrapper, .wc-block-order-confirmation-shipping-wrapper) > .wp-block-heading { font-size: 1.1rem !important; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details address,
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address) address {
  background: transparent;
  border: 0;
  color: var(--instashop-text);
  font-size: var(--instashop-text-small);
  font-style: normal;
  line-height: 1.85;
  margin: 0;
  min-block-size: 0;
  overflow-wrap: anywhere;
  padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address::first-line,
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details address::first-line,
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address) address::first-line { font-weight: 700; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .edit { min-block-size: 2.5rem; align-content: center; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .edit:hover { color: var(--instashop-accent); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email),
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address) > .woocommerce-customer-details--phone {
  align-items: baseline;
  border-block-start: 1px solid var(--instashop-border);
  color: var(--instashop-muted);
  display: flex;
  direction: rtl;
  font-size: var(--instashop-text-small);
  gap: .55rem;
  line-height: 1.7;
  margin: var(--instashop-space-3) 0 0;
  overflow-wrap: anywhere;
  padding-block-start: var(--instashop-space-2);
}
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-customer-details--email { border: 0; margin-block-start: .35rem; padding-block-start: 0; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-order-received :is(.wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address) > .woocommerce-customer-details--phone::before { color: var(--instashop-primary); content: '☎'; flex: 0 0 1.2rem; text-align: center; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-customer-details--email::before { color: var(--instashop-primary); content: '✉'; flex: 0 0 1.2rem; text-align: center; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a { color: var(--instashop-primary); text-decoration: none; }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:hover { color: var(--instashop-accent); }
:is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-customer-details--email { unicode-bidi: plaintext; }
.woocommerce-order-received .wc-block-order-confirmation-address-wrapper > .wp-block-column { flex-basis: auto; margin: 0; min-inline-size: 0; }
.woocommerce-order-received .wc-block-order-confirmation-address-wrapper > .wp-block-column:has(.wc-block-order-confirmation-billing-wrapper) { order: 1; }
.woocommerce-order-received .wc-block-order-confirmation-address-wrapper > .wp-block-column:has(.wc-block-order-confirmation-shipping-wrapper) { order: 2; }
.woocommerce-order-received .wc-block-order-confirmation-address-wrapper > .wp-block-column:not(:has(.wc-block-order-confirmation-billing-wrapper, .wc-block-order-confirmation-shipping-wrapper)) { display: none; }
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content { min-block-size: 0; }
.woocommerce-account .woocommerce-MyAccount-content:has(> :is(.woocommerce-Addresses, .woocommerce-Address)) { background: transparent; border: 0; min-block-size: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-content:has(> :is(.woocommerce-Addresses, .woocommerce-Address)) > p:first-child { color: var(--instashop-muted); font-size: var(--instashop-text-small); margin: 0 0 var(--instashop-space-3); }

@media (min-width: 48rem) {
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
  :is(.woocommerce-account, .woocommerce-order-received) .woocommerce-customer-details .woocommerce-columns,
  .woocommerce-order-received .wc-block-order-confirmation-address-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce-order-received .wc-block-order-confirmation-address-wrapper:not(:has(.wc-block-order-confirmation-billing-wrapper)),
  .woocommerce-order-received .wc-block-order-confirmation-address-wrapper:not(:has(.wc-block-order-confirmation-shipping-wrapper)) { grid-template-columns: minmax(0, 1fr); }
}

/* Edit Address only: normalize native and Select2 country/state controls. */
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) select { background-position: .75rem 50%; block-size: 3rem; padding-block: .5rem; padding-inline: .75rem 2.5rem; text-align: start; }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-container { direction: rtl; display: block; inline-size: 100%; }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-selection--single { align-items: center; background: var(--instashop-surface); block-size: 3rem; border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); display: flex; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-selection__rendered { color: var(--instashop-text); direction: rtl; flex: 1 1 auto; line-height: 1.5; min-inline-size: 0; padding-block: 0; padding-inline: .75rem 2.5rem; text-align: start; }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-selection__arrow { block-size: 1.25rem; inline-size: 1.25rem; inset-block-start: 50%; inset-inline-end: .75rem; inset-inline-start: auto; transform: translateY(-50%); }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-container--focus .select2-selection--single,
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-container--open .select2-selection--single { border-color: var(--instashop-primary); box-shadow: 0 0 0 3px rgb(37 99 235 / .14); }
.woocommerce-account .woocommerce-address-fields :is(#billing_country_field, #billing_state_field, #shipping_country_field, #shipping_state_field) .select2-container--disabled .select2-selection--single { background: var(--instashop-background); cursor: not-allowed; opacity: .6; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-dropdown { background: var(--instashop-surface); border-color: var(--instashop-border); border-radius: var(--instashop-radius-sm); box-shadow: var(--instashop-shadow-md); color: var(--instashop-text); direction: rtl; overflow: hidden; text-align: start; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-search--dropdown { padding: var(--instashop-space-2); }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-search__field { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); min-block-size: 2.75rem; padding: .4rem .65rem; text-align: start; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-search__field:focus { border-color: var(--instashop-primary); outline: 2px solid var(--instashop-primary); outline-offset: 1px; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-results__option { line-height: 1.6; padding: .6rem .75rem; text-align: start; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-results__option--highlighted[aria-selected],
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-results__option--highlighted[data-selected] { background: var(--instashop-primary); color: #fff; }
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-results__option[aria-selected="true"],
body.woocommerce-account:has(.woocommerce-address-fields) .select2-container--open .select2-results__option[data-selected="true"] { font-weight: 700; }

/* Dashboard content only; the account navigation remains unchanged. */
.woocommerce-account .instashop-account-dashboard__welcome { background: color-mix(in srgb, var(--instashop-primary) 5%, var(--instashop-surface)); border: 1px solid color-mix(in srgb, var(--instashop-primary) 17%, var(--instashop-border)); border-radius: var(--instashop-radius-md); margin-block-end: var(--instashop-space-4); padding: clamp(1rem, 2.5vw, 1.5rem); }
.woocommerce-account .instashop-account-dashboard__welcome h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); margin: 0 0 .25rem; }
.woocommerce-account .instashop-account-dashboard__welcome p { color: var(--instashop-muted); font-size: var(--instashop-text-small); margin: 0; }
.woocommerce-account .instashop-account-dashboard__heading { font-size: 1.1rem; margin: 0 0 var(--instashop-space-3); }
.woocommerce-account .instashop-account-dashboard__grid { display: grid; gap: var(--instashop-space-2); grid-template-columns: minmax(0, 1fr); }
.woocommerce-account .instashop-account-dashboard__action { background: var(--instashop-surface); border: 1px solid var(--instashop-border); border-radius: var(--instashop-radius-sm); color: var(--instashop-text); display: flex; flex-direction: column; gap: .3rem; min-block-size: 7rem; min-inline-size: 0; padding: var(--instashop-space-3); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.woocommerce-account .instashop-account-dashboard__action:hover { border-color: var(--instashop-primary); box-shadow: var(--instashop-shadow-sm); color: var(--instashop-text); }
.woocommerce-account .instashop-account-dashboard__action-title { align-items: center; display: flex; font-weight: 700; gap: .5rem; justify-content: space-between; line-height: 1.5; }
.woocommerce-account .instashop-account-dashboard__action-title::after { color: var(--instashop-primary); content: '←'; font-family: var(--instashop-font); font-size: 1.15rem; }
.woocommerce-account .instashop-account-dashboard__action-description { color: var(--instashop-muted); font-size: var(--instashop-text-meta); line-height: 1.6; }
@media (min-width: 48rem) { .woocommerce-account .instashop-account-dashboard__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
