/* My Account — premium RTL account experience.
 * Scoped to the account page so the rest of the theme remains unchanged. */
body.woocommerce-account, .ahs-account-page {
  --account-ink: #171d35;
  --account-muted: #68718a;
  --account-line: #e5e8f0;
  --account-blue: #2b3fe0;
  --account-paper: #ffffff;
  --account-canvas: #f5f6fa;
  background: var(--account-canvas);
  color: var(--account-ink);
}
.ahs-account-page *, .ahs-account-page *::before, .ahs-account-page *::after,
.ahs-account *, .ahs-account *::before, .ahs-account *::after { box-sizing: border-box; }
.ahs-account { padding: 30px 0 92px; min-height: 720px; font-family: 'Estedad', Tahoma, sans-serif; }
.ahs-account__container { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.ahs-account__breadcrumb { display: flex; gap: 12px; align-items: center; margin: 0 0 26px; font-size: 12px; color: #737b90; }
.ahs-account__breadcrumb a { color: #737b90; }
.ahs-account__breadcrumb a:hover { color: var(--account-blue); }
.ahs-account__breadcrumb span:last-child { color: #343b52; font-weight: 700; }
.ahs-account__layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 28px; align-items: start; }
.ahs-account__sidebar { position: sticky; top: 94px; background: #fff; border: 1px solid var(--account-line); border-radius: 20px; padding: 20px 14px 14px; box-shadow: 0 10px 35px rgba(30, 39, 79, .035); }
body.admin-bar .ahs-account__sidebar { top: 126px; }
.ahs-account__profile { display: flex; gap: 12px; align-items: center; padding: 2px 4px 21px; border-bottom: 1px solid #edf0f5; }
.ahs-account__avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #1e2856; font-size: 22px; font-weight: 800; }
.ahs-account__profile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.7; }
.ahs-account__profile-text > span { font-size: 10px; color: #8b92a3; }
.ahs-account__profile-text strong { font-size: 13px; color: #20263c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ahs-account__profile-text small { font-size: 10px; color: #818a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ahs-account__sidebar-label { color: #939aad; font-size: 10px; font-weight: 700; padding: 24px 12px 11px; }
.ahs-account-nav { display: flex; flex-direction: column; gap: 4px; }
.ahs-account-nav__item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: #616b80; font-size: 12px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.ahs-account-nav__item:hover { background: #f5f6fc; color: #2437c6; }
.ahs-account-nav__item.is-active { color: #fff; background: #202a5e; box-shadow: 0 7px 15px rgba(33, 43, 92, .16); }
.ahs-account-nav__item.is-active::before { content: ''; position: absolute; inset-inline-start: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 3px; background: #e8b64f; }
.ahs-account-nav__icon, .ahs-account__help-icon { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 21px; }
.ahs-account-nav__icon svg { width: 20px; height: 20px; }
.ahs-account-nav__label { min-width: 0; flex: 1; }
.ahs-account-nav__arrow { opacity: 0; font-size: 16px; transition: opacity .2s ease, transform .2s ease; }
.ahs-account-nav__item:hover .ahs-account-nav__arrow, .ahs-account-nav__item.is-active .ahs-account-nav__arrow { opacity: .8; }
.ahs-account-nav__item:hover .ahs-account-nav__arrow { transform: translateX(-3px); }
.ahs-account__sidebar-note { margin: 24px 0 0; padding: 16px 13px; border-radius: 12px; background: #f4f5fb; display: flex; align-items: flex-start; gap: 10px; }
.ahs-account__help-icon { border-radius: 50%; background: #e4e8fb; color: #3246d6; font-size: 13px; font-weight: 800; }
.ahs-account__sidebar-note div { display: flex; flex-direction: column; align-items: flex-start; }
.ahs-account__sidebar-note strong { font-size: 11px; color: #303a5b; }
.ahs-account__sidebar-note div > span { color: #7c859b; font-size: 10px; margin-top: 3px; }
.ahs-account__sidebar-note a { color: #2b3fe0; font-size: 10px; font-weight: 800; margin-top: 8px; }
.ahs-account__sidebar-note a:hover { text-decoration: underline; }
.ahs-account__sidebar-note b { font-weight: 400; }
.ahs-account__content { min-width: 0; }
.ahs-account__content .woocommerce-MyAccount-content { float: none !important; width: 100% !important; min-width: 0; }
.ahs-account__content h1, .ahs-account__content h2, .ahs-account__content h3, .ahs-account__content p { margin: 0; }
.ahs-endpoint-head { margin: 0 0 23px; padding: 0 0 20px; border-bottom: 1px solid #e2e6ee; }
.ahs-endpoint-head > span { color: #4053d5; font-size: 10px; font-weight: 800; }
.ahs-endpoint-head h1 { margin: 6px 0 0; color: #171d35; font-size: clamp(23px, 2.5vw, 31px); font-weight: 800; line-height: 1.5; }
:is(.ahs-account-page, body.woocommerce-account) :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #e9ac30 !important; outline-offset: 3px; }

/* Dashboard */
.ahs-dashboard__intro { display: block; margin: 1px 0 22px; }
.ahs-dashboard__intro h1 { font-size: clamp(23px, 2.5vw, 31px); font-weight: 800; letter-spacing: -.045em; line-height: 1.45; color: #171d35; }
.ahs-dashboard__intro p { color: #7b8496; font-size: 12px; margin-top: 4px; }
.ahs-dashboard__kicker { display: block; font-size: 10px; font-weight: 800; color: #4053d5; margin-bottom: 6px; }
.ahs-dashboard-hero { position: relative; isolation: isolate; min-height: 215px; border-radius: 18px; overflow: hidden; padding: 31px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(125deg, #18224c 0%, #202f75 60%, #3043a5 100%); color: #fff; }
.ahs-dashboard-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: radial-gradient(circle at 12% 10%, #96a9ff 0, transparent 35%), radial-gradient(circle at 85% 125%, #546ee7 0, transparent 36%); }
.ahs-dashboard-hero__content { position: relative; z-index: 1; max-width: 510px; }
.ahs-dashboard-hero__content .ahs-account__eyebrow, .ahs-dashboard-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #d5ddff; font-size: 10px; font-weight: 700; }
.ahs-dashboard-hero__content .ahs-account__eyebrow::before, .ahs-dashboard-hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e7b85b; }
.ahs-dashboard-hero h2 { color: #fff; font-size: clamp(20px, 2.6vw, 29px); line-height: 1.55; letter-spacing: -.04em; margin-top: 13px; font-weight: 800; }
.ahs-dashboard-hero p { color: #d3daf6; font-size: 12px; line-height: 2; margin-top: 7px; }
.ahs-dashboard-hero__link { display: inline-flex; align-items: center; gap: 15px; margin-top: 19px; color: #fff !important; font-size: 11px; font-weight: 800; }
.ahs-dashboard-hero__link:hover { color: #f5d58e !important; }
.ahs-dashboard-hero__visual { flex: 0 0 180px; width: 180px; height: 180px; position: relative; display: grid; place-items: center; color: #d7dfff; }
.ahs-dashboard-hero__visual::before, .ahs-dashboard-hero__visual::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(224, 231, 255, .22); inset: 5px; }
.ahs-dashboard-hero__visual::after { inset: 28px; border-color: rgba(224, 231, 255, .14); }
.ahs-dashboard-hero__visual > * { position: relative; grid-area: 1 / 1; z-index: 1; }
.ahs-dashboard-hero__ornament { color: #e9bf6b; font-size: 43px; line-height: 1; }
.ahs-dashboard-hero__orbit { width: 80px; height: 80px; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.ahs-dashboard__summary-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 31px 1px 15px; }
.ahs-dashboard__summary-head h2, .ahs-dashboard__summary-head h3 { font-size: 16px; font-weight: 800; line-height: 1.5; }
.ahs-dashboard__summary-head p, .ahs-dashboard__summary-head > span { color: #858da0; font-size: 11px; }
.ahs-dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.ahs-dashboard-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 155px; padding: 19px 20px; background: #fff; border: 1px solid #e7eaf2; border-radius: 15px; color: #20263d; text-decoration: none; box-shadow: 0 6px 20px rgba(35,45,90,.025); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ahs-dashboard-card:hover { color: #20263d; transform: translateY(-3px); border-color: #cdd4f4; box-shadow: 0 14px 30px rgba(35,45,90,.08); }
.ahs-dashboard-card__icon { width: 39px; height: 39px; display: grid; place-items: center; flex: none; color: #3b4dcc; border-radius: 12px; background: #eef0ff; }
.ahs-dashboard-card__icon svg { width: 20px; height: 20px; }
.ahs-dashboard-card:nth-child(2) .ahs-dashboard-card__icon { color: #977323; background: #faf3e3; }
.ahs-dashboard-card:nth-child(3) .ahs-dashboard-card__icon { color: #527b72; background: #e9f3f0; }
.ahs-dashboard-card__label { display: block; margin-top: 13px; color: #7d8698; font-size: 11px; font-weight: 600; }
.ahs-dashboard-card strong { color: #1b2340; font-size: 18px; font-weight: 800; line-height: 1.5; margin-top: 3px; }
.ahs-dashboard-card small { color: #818a9a; font-size: 10px; margin-top: 3px; }
.ahs-dashboard-card__arrow { position: absolute; top: 20px; inset-inline-end: 20px; color: #a8afc0; font-size: 17px; line-height: 1; }
.ahs-dashboard__columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr); gap: 14px; margin-top: 18px; }
.ahs-dashboard-panel { min-width: 0; padding: 21px; border: 1px solid #e6e9f1; border-radius: 15px; background: #fff; }
.ahs-dashboard-panel__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.ahs-dashboard-panel__header h2, .ahs-dashboard-panel__header h3 { font-size: 14px; font-weight: 800; line-height: 1.5; }
.ahs-dashboard-panel__header p { font-size: 10px; color: #8a93a4; margin-top: 4px; }
.ahs-dashboard-panel__header > a { color: #4354ca; font-size: 10px; font-weight: 800; white-space: nowrap; }
.ahs-order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; align-items: center; min-height: 66px; padding: 12px 0; border-top: 1px solid #f0f1f5; font-size: 11px; }
.ahs-order-row > div { min-width: 0; }
.ahs-order-row a { color: #26335f; font-size: 12px; font-weight: 800; }
.ahs-order-row a:hover { color: var(--account-blue); }
.ahs-order-row__number { grid-column: 1; grid-row: 1; }
.ahs-order-row__date { grid-column: 1; grid-row: 2; color: #8a93a4; font-size: 10px; }
.ahs-order-row__total { grid-column: 2; grid-row: 1; text-align: left; color: #27304a; font-weight: 700; }
.ahs-order-row__status { grid-column: 2; grid-row: 2; text-align: left; }
.ahs-order-row small { display: block; margin-top: 3px; color: #8a93a4; font-size: 10px; }
.ahs-order-row__meta { text-align: left; }
.ahs-order-row__meta strong { display: block; color: #27304a; font-size: 11px; }
.ahs-order-row__status { color: #63728d; font-size: 10px; }
.ahs-dashboard-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 152px; padding: 18px 0 3px; border-top: 1px solid #f0f1f5; }
.ahs-dashboard-empty strong { font-size: 12px; color: #424c63; }
.ahs-dashboard-empty p { color: #8a93a4; font-size: 11px; line-height: 2; margin-top: 5px; }
.ahs-dashboard-empty a { font-size: 11px; font-weight: 800; color: #4052d3; margin-top: 12px; }
.ahs-dashboard-shortcuts { display: flex; flex-direction: column; }
.ahs-dashboard-shortcuts a { min-height: 60px; display: flex; gap: 11px; align-items: center; border-top: 1px solid #f0f1f5; color: #26304b; text-decoration: none; }
.ahs-dashboard-shortcuts a:hover { color: var(--account-blue); }
.ahs-dashboard-shortcuts a > span:first-child { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 33px; border-radius: 10px; color: #64729b; background: #f4f5fa; }
.ahs-dashboard-shortcuts svg { width: 17px; height: 17px; }
.ahs-dashboard-shortcuts strong { display: block; color: inherit; font-size: 11px; line-height: 1.5; }
.ahs-dashboard-shortcuts small { display: block; color: #9299a8; font-size: 10px; margin-top: 3px; }
.ahs-dashboard-shortcuts a > b, .ahs-dashboard-shortcuts a > .ahs-dashboard-shortcut__arrow { margin-inline-start: auto; color: #a0a8b8; font-size: 16px; font-weight: 400; }

/* Standard WooCommerce endpoints, tables, notices, and forms. */
.ahs-account__content .woocommerce-MyAccount-content { font-size: 13px; line-height: 1.9; }
.ahs-account__content .woocommerce-MyAccount-content > p { color: #657086; margin: 0 0 18px; }
.ahs-account__content .woocommerce-MyAccount-content > p a { color: var(--account-blue); font-weight: 700; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce-notices-wrapper { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.ahs-account__content .woocommerce-notices-wrapper { width: auto; }
:is(.ahs-account-page, body.woocommerce-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { background: #fff; border: 1px solid #e2e7f4; border-inline-start: 3px solid #5264dd; border-radius: 10px; color: #526078; padding: 15px 18px; margin: 0 0 16px; font-size: 12px; line-height: 1.9; }
:is(.ahs-account-page, body.woocommerce-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce-error { border-inline-start-color: #c15353; }
:is(.ahs-account-page, body.woocommerce-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a { color: #2b3fe0; font-weight: 700; }
.ahs-account__content table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e5e9f2; border-radius: 14px; overflow: hidden; background: #fff; font-size: 12px; margin: 0 0 20px; }
.ahs-account__content table.shop_table th, .ahs-account__content table.shop_table td { padding: 16px; text-align: right; border: 0; border-bottom: 1px solid #eef0f5; }
.ahs-account__content table.shop_table th { background: #f8f9fc; color: #768095; font-size: 11px; font-weight: 700; }
.ahs-account__content table.shop_table tr:last-child td { border-bottom: 0; }
.ahs-account__content table.shop_table td a:not(.button) { color: #3447cc; font-weight: 700; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce :is(form.login, form.register), .ahs-account__content .woocommerce-EditAccountForm, .ahs-account__content .ahs-address-form > form { background: #fff; border: 1px solid #e5e9f2; border-radius: 15px; padding: 26px; }
.ahs-account__content form .form-row, :is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row label, .ahs-account__content form label { display: block; color: #424c63; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row :is(input.input-text, textarea, select), .ahs-account__content form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { width: 100%; min-height: 46px; padding: 9px 13px; border: 1px solid #dce2ec; border-radius: 9px; background: #fbfcfe; color: #1d2740; font: inherit; font-size: 13px; box-shadow: none; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row :is(input.input-text, textarea, select):focus, .ahs-account__content form :is(input, select, textarea):focus { border-color: #6575e6; background: #fff; box-shadow: 0 0 0 3px rgba(62,80,209,.1); }
.ahs-account__content form fieldset { margin: 24px 0; border: 1px solid #e7ebf2; border-radius: 12px; padding: 18px; }
.ahs-account__content form legend { font-size: 13px; font-weight: 800; padding: 0 8px; }
.ahs-account__content form em { color: #818a9b; font-size: 11px; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce :is(button.button, input.button, a.button), .ahs-account__content :is(button[type="submit"], a.button), .ahs-address-card__register { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; border: 0; border-radius: 9px; padding: 10px 19px; background: #273975; color: #fff !important; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce :is(button.button, input.button, a.button):hover, .ahs-account__content :is(button[type="submit"], a.button):hover, .ahs-address-card__register:hover { background: #2b3fe0; color: #fff !important; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; }
:is(.ahs-account-page, body.woocommerce-account) .woocommerce .woocommerce-form-login__rememberme input { width: auto; min-height: auto; }

/* Custom billing / shipping address cards and modal. */
.ahs-account__eyebrow { display: inline-flex; gap: 8px; align-items: center; color: #4054d3; font-size: 10px; font-weight: 800; }
.ahs-account__eyebrow i { width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ahs-address-page__head, .ahs-address-form__head { padding: 3px 0 23px; border-bottom: 1px solid #e2e6ee; }
.ahs-address-page__head h1, .ahs-address-form__head h2 { margin: 9px 0 0; font-size: clamp(23px, 3vw, 29px); line-height: 1.5; font-weight: 800; }
.ahs-address-page__head p, .ahs-address-form__head p { margin: 7px 0 0; color: #778196; font-size: 12px; line-height: 2; }
.ahs-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 20px; }
.ahs-address-card { display: flex; flex-direction: column; min-width: 0; min-height: 220px; padding: 22px; border: 1px solid #e4e8f0; border-radius: 15px; background: #fff; color: #202841; text-align: right; font: inherit; box-shadow: 0 6px 20px rgba(35,45,90,.025); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ahs-address-card:hover { border-color: #cfd6f5; box-shadow: 0 12px 28px rgba(35,45,90,.07); }
.ahs-address-card--primary { border-top: 3px solid #4a5de0; }
.ahs-address-card__top { display: flex; align-items: center; justify-content: space-between; }
.ahs-address-card__tag { padding: 4px 9px; border-radius: 7px; color: #394dc5; background: #eef0ff; font-size: 10px; font-weight: 800; }
.ahs-address-card__tag--soft { color: #68748a; background: #f2f4f8; }
.ahs-address-card__number { font-size: 11px; color: #a1a9b8; }
.ahs-address-card h3 { font-size: 17px; line-height: 1.5; margin: 19px 0 0; }
.ahs-address-card address { font-style: normal; color: #667187; font-size: 12px; line-height: 2; margin-top: 7px; overflow-wrap: anywhere; }
.ahs-address-card address span { color: #929baa; }
.ahs-address-card__edit { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 14px 0 0; border: 0; border-top: 1px solid #eef0f4; background: transparent; color: #4053cd; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; text-align: right; }
.ahs-address-card__edit b { font-size: 16px; font-weight: 400; }
.ahs-address-card--empty { align-items: center; justify-content: center; text-align: center; border-style: dashed; cursor: pointer; }
.ahs-address-card--empty.ahs-address-card--primary { border-top-style: solid; cursor: default; }
.ahs-address-card__plus { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #f0f2ff; color: #475ad3; font-size: 25px; line-height: 1; }
.ahs-address-card--empty strong { margin-top: 12px; font-size: 12px; }
.ahs-address-card--empty small { margin-top: 5px; color: #929aaa; font-size: 10px; }
.ahs-address-card__register { margin-top: 14px; min-height: 38px; font-size: 11px; }
.ahs-address-form > form { margin-top: 18px; }
.ahs-address-label-field { padding: 14px !important; background: #f6f7ff; border-radius: 10px; }
.ahs-address-label-field .optional { font-weight: 400; color: #838c9f; }
.ahs-address-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.ahs-address-modal.is-open { display: flex; }
.ahs-address-modal__backdrop { position: absolute; inset: 0; background: rgba(14,20,39,.62); backdrop-filter: blur(4px); }
.ahs-address-modal__dialog { position: relative; z-index: 1; width: min(620px,100%); max-height: min(90vh, 800px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(5,12,33,.26); }
.ahs-address-modal__close { position: absolute; inset-inline-end: 20px; top: 20px; width: 36px; height: 36px; border: 1px solid #e5e9f1; border-radius: 10px; background: #fff; color: #6f7a8e; font-size: 22px; line-height: 1; cursor: pointer; }
.ahs-address-modal__close:hover { background: #f2f4fb; color: #263358; }
.ahs-address-modal__form { margin-top: 20px; }
.ahs-address-modal__fields { display: block; }
.ahs-address-row { display: block; }
.ahs-address-row .form-row { width: 100% !important; float: none !important; }
.ahs-address-modal__actions { border-top: 1px solid #eef0f5; padding-top: 17px; margin-top: 8px !important; }
.ahs-address-modal-open { overflow: hidden; }

/* Logged-out WooCommerce account form. */
.ahs-account-login-title { width: min(520px, calc(100% - 40px)); margin: 0 auto; padding-top: 45px; color: #171d35; font-size: 25px; font-weight: 800; }
.ahs-account-page > .woocommerce > :is(h2, #customer_login), .ahs-account-page > .woocommerce > form.login { width: min(520px, calc(100% - 40px)); margin-inline: auto; }
.ahs-account-page > .woocommerce { padding: 34px 0 80px; }
.ahs-account-page:has(.ahs-account) > .woocommerce { padding: 0; }
.ahs-account-page > .woocommerce > h2 { padding-top: 20px; font-size: 25px; }
.ahs-account-page > .woocommerce > form.login { margin-top: 16px; }
.ahs-account-page #customer_login { display: grid; gap: 18px; }
.ahs-account-page #customer_login .col-1, .ahs-account-page #customer_login .col-2 { float: none; width: 100%; }

@media (max-width: 1000px) {
  .ahs-account__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .ahs-dashboard__columns { grid-template-columns: 1fr; }
  .ahs-dashboard-hero__visual { flex-basis: 135px; width: 135px; height: 135px; }
}
@media (max-width: 760px) {
  .ahs-account { padding: 22px 0 65px; }
  .ahs-account__container { width: min(100% - 32px, 1240px); }
  .ahs-account__breadcrumb { margin-bottom: 18px; }
  .ahs-account__layout { grid-template-columns: 1fr; gap: 20px; }
  .ahs-account__sidebar, body.admin-bar .ahs-account__sidebar { position: static; padding: 13px; border-radius: 15px; }
  .ahs-account__profile { padding: 0 2px 13px; }
  .ahs-account__avatar { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 18px; }
  .ahs-account__sidebar-label, .ahs-account__sidebar-note { display: none; }
  .ahs-account-nav { flex-direction: row; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 3px; scrollbar-width: thin; }
  .ahs-account-nav__item { flex: 0 0 auto; min-height: 42px; padding: 0 12px; white-space: nowrap; }
  .ahs-account-nav__item.is-active::before, .ahs-account-nav__arrow { display: none; }
  .ahs-account-nav__icon, .ahs-account-nav__icon svg { width: 18px; height: 18px; flex-basis: 18px; }
  .ahs-dashboard__intro { margin-bottom: 16px; }
  .ahs-dashboard-hero { padding: 25px; min-height: 200px; }
  .ahs-dashboard-hero__visual { position: absolute; width: 145px; height: 145px; left: -30px; bottom: -35px; opacity: .45; }
  .ahs-dashboard-hero__content { max-width: 85%; }
  .ahs-dashboard-cards { gap: 9px; }
  .ahs-dashboard-card { padding: 15px; min-height: 145px; }
  .ahs-dashboard-card strong { font-size: 15px; }
  .ahs-dashboard-card__arrow { top: 16px; inset-inline-end: 15px; }
  :is(.ahs-account-page, body.woocommerce-account) .woocommerce-notices-wrapper { width: min(100% - 32px, 1240px); }
  .ahs-account__content .woocommerce-notices-wrapper { width: auto; }
}
@media (max-width: 500px) {
  .ahs-dashboard-hero { min-height: 190px; padding: 22px; }
  .ahs-dashboard-hero__content { max-width: 100%; }
  .ahs-dashboard-hero p { max-width: 27ch; }
  .ahs-dashboard__summary-head { margin-top: 25px; }
  .ahs-dashboard__summary-head > span { display: none; }
  .ahs-dashboard-cards { grid-template-columns: 1fr; }
  .ahs-dashboard-card { min-height: 85px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; column-gap: 13px; align-content: center; align-items: center; }
  .ahs-dashboard-card__icon { grid-column: 1; grid-row: 1 / 4; }
  .ahs-dashboard-card__label, .ahs-dashboard-card strong, .ahs-dashboard-card small { grid-column: 2; margin-top: 0; }
  .ahs-dashboard-card__arrow { position: static; grid-column: 3; grid-row: 1 / 4; }
  .ahs-dashboard-card strong { font-size: 14px; }
  .ahs-dashboard-panel { padding: 18px; }
  .ahs-address-grid { grid-template-columns: 1fr; }
  .ahs-address-card { min-height: 190px; }
  .ahs-address-modal { padding: 10px; }
  .ahs-address-modal__dialog { padding: 22px 18px; max-height: 92vh; }
  .ahs-account__content table.shop_table { display: block; overflow-x: auto; white-space: nowrap; }
  .ahs-account__content .woocommerce-EditAccountForm, .ahs-account__content .ahs-address-form > form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.ahs-account-page, body.woocommerce-account) *, :is(.ahs-account-page, body.woocommerce-account) *::before, :is(.ahs-account-page, body.woocommerce-account) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Responsive hardening for narrow phones and WooCommerce endpoint screens. */
.ahs-account-page, body.woocommerce-account { max-width: 100%; overflow-x: clip; }
.ahs-account__content, .ahs-account__layout, .ahs-account__container,
.ahs-account-page .woocommerce, .ahs-account-page .woocommerce-MyAccount-content { min-width: 0; }
.ahs-account__content :is(img, video, iframe) { max-width: 100%; height: auto; }
@media (max-width: 760px) {
  .ahs-account { min-height: 0; padding-block: 18px 48px; }
  .ahs-account__container { width: calc(100% - 28px); }
  .ahs-account__layout { gap: 15px; }
  .ahs-account__sidebar { padding: 12px; }
  .ahs-account-nav { margin-inline: -2px; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ahs-account-nav::-webkit-scrollbar { display: none; }
  .ahs-account-nav__item { min-height: 44px; padding-inline: 11px; }
  .ahs-dashboard-hero { min-height: 0; padding: 22px 19px; border-radius: 16px; }
  .ahs-dashboard-hero__content { max-width: min(100%, 34rem); }
  .ahs-dashboard-hero__visual { pointer-events: none; }
  .ahs-account__content :is(.woocommerce-MyAccount-orders, .shop_table_responsive) { max-width: 100%; }
  .ahs-account__content table.shop_table { max-width: 100%; }
  .ahs-account__content :is(.woocommerce-EditAccountForm, .ahs-address-form > form) { max-width: 100%; }
  .ahs-account__content .woocommerce-Addresses, .ahs-address-grid { grid-template-columns: minmax(0, 1fr); }
  .ahs-address-modal { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .ahs-address-modal__dialog { width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 500px) {
  .ahs-account__container { width: calc(100% - 24px); }
  .ahs-account__breadcrumb { gap: 7px; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
  .ahs-dashboard__intro h1, .ahs-endpoint-head h1 { font-size: 23px; }
  .ahs-dashboard-hero { padding: 20px 17px; }
  .ahs-dashboard-hero__content { max-width: 100%; }
  .ahs-dashboard-hero__visual { opacity: .22; }
  .ahs-dashboard-card { grid-template-columns: 36px minmax(0, 1fr) 16px; column-gap: 10px; padding: 13px; }
  .ahs-dashboard-card__icon { width: 36px; height: 36px; }
  .ahs-dashboard-card small { line-height: 1.7; }
  .ahs-dashboard-panel { padding: 15px; }
  .ahs-account__content :is(.woocommerce-EditAccountForm, .ahs-address-form > form) { padding: 15px; }
  .ahs-account__content form .form-row,
  :is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row { width: 100% !important; float: none !important; }
  .ahs-account__content form :is(input, select, textarea),
  :is(.ahs-account-page, body.woocommerce-account) .woocommerce form .form-row :is(input.input-text, select, textarea) { max-width: 100%; font-size: 16px; }
  .ahs-account__content :is(button[type="submit"], a.button),
  :is(.ahs-account-page, body.woocommerce-account) .woocommerce :is(button.button, input.button, a.button) { min-height: 44px; }
  .ahs-account__content table.shop_table { width: 100%; font-size: 11px; }
  .ahs-account__content table.shop_table th, .ahs-account__content table.shop_table td { padding: 11px 9px; }
  .ahs-address-card { padding: 17px; }
  .ahs-account-page > .woocommerce { padding-block: 22px 48px; }
  .ahs-account-login-title, .ahs-account-page > .woocommerce > :is(h2, #customer_login),
  .ahs-account-page > .woocommerce > form.login { width: calc(100% - 28px); }
}
@media (max-width: 360px) {
  .ahs-account__container { width: calc(100% - 20px); }
  .ahs-account-nav__item { gap: 7px; padding-inline: 9px; font-size: 11px; }
  .ahs-dashboard-hero { padding: 18px 14px; }
  .ahs-dashboard-card { grid-template-columns: 32px minmax(0, 1fr) 14px; column-gap: 8px; }
  .ahs-dashboard-card__icon { width: 32px; height: 32px; }
}

/* Mobile visibility pass: never hide account navigation off-canvas. */
@media (max-width: 760px) {
  .ahs-account__container { width: calc(100% - 24px); max-width: 100%; }
  .ahs-account__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ahs-account__sidebar, body.admin-bar .ahs-account__sidebar { width: 100%; min-width: 0; padding: 12px; }
  .ahs-account-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 10px 0 0;
    margin: 0;
  }
  .ahs-account-nav__item {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 9px 11px;
  }
  .ahs-account-nav__label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .ahs-account-nav__arrow { display: none !important; }
  .ahs-account__content, .ahs-account__content > *, .ahs-account__content .woocommerce-MyAccount-content { width: 100%; max-width: 100%; min-width: 0; }
  .ahs-dashboard__columns, .ahs-dashboard-cards, .ahs-address-grid { grid-template-columns: minmax(0, 1fr); }
  .ahs-dashboard-hero, .ahs-dashboard-panel, .ahs-dashboard-card, .ahs-address-card { min-width: 0; max-width: 100%; }
  .ahs-dashboard-hero__content { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .ahs-account__content :is(p, a, strong, small, h1, h2, h3) { overflow-wrap: anywhere; }
  .ahs-account__content form, .ahs-account__content .form-row,
  .ahs-account__content :is(input, select, textarea, button) { min-width: 0; max-width: 100%; }
  .ahs-account__content table.shop_table { display: block; width: 100%; max-width: 100%; overflow: visible; white-space: normal; border: 0; background: transparent; }
  .ahs-account__content table.shop_table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .ahs-account__content table.shop_table tbody { display: grid; gap: 10px; width: 100%; }
  .ahs-account__content table.shop_table tr { display: grid; width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid #e5e9f2; border-radius: 12px; background: #fff; }
  .ahs-account__content table.shop_table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; padding: 9px 0; text-align: start; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid #eef0f5; }
  .ahs-account__content table.shop_table td:last-child { border-bottom: 0; }
  .ahs-account__content table.shop_table td::before { content: attr(data-title); flex: 0 1 42%; color: #68718a; font-size: 11px; font-weight: 700; }
}
@media (max-width: 500px) {
  .ahs-account__container { width: calc(100% - 20px); }
  .ahs-account__sidebar { border-radius: 13px; }
  .ahs-account__profile { min-width: 0; }
  .ahs-account__profile-text { min-width: 0; }
  .ahs-dashboard__intro, .ahs-endpoint-head { min-width: 0; }
  .ahs-dashboard-hero { padding: 18px 15px; }
  .ahs-dashboard-hero__visual { opacity: .16; }
  .ahs-dashboard-card { grid-template-columns: 36px minmax(0, 1fr); }
  .ahs-dashboard-card__arrow { display: none; }
  .ahs-dashboard-card__icon { grid-column: 1; grid-row: 1 / 4; }
  .ahs-dashboard-card__label, .ahs-dashboard-card strong, .ahs-dashboard-card small { grid-column: 2; }
  .ahs-address-modal { width: 100%; }
  .ahs-address-modal__dialog { width: 100%; max-width: 100%; }
}

