/* Buyer My Account, scoped to #hxa. Tokens match the seller dashboard / sign-up wizard. */

#hxa {
  --rust: #C05133; --rust-dark: #9A4129; --rust-mid: #A34428; --rust-soft: #D0664A; --rust-tint: #F6E5E0;
  --cream: #F6F0E6; --cream-2: #EDE4D4; --paper: #FFFBF5;
  --ink: #2A2420; --body: #3E352E; --muted: #7A6E62;
  --gold: #C4A35A; --gold-soft: #E8D7A8; --sage: #5F734F; --sage-tint: #EEF2E8; --line: #E6DAC8;
  --blue: #3D6A8A; --blue-tint: #E6EEF4;
  --shadow: 0 10px 30px rgba(42,36,32,.08);
  --radius: 22px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Palatino Linotype", serif;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --edge: 20px;
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.5;
  background: radial-gradient(120% 40% at 100% 0%, rgba(196,163,90,.14), transparent 50%), var(--cream);
  min-height: 100vh;
  padding-bottom: calc(28px + var(--safe-bot));
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
html.hx-app-html, html.hx-app-html body, body.hx-account-page, html.hx-app-html body.hx-app {
  margin: 0; padding: 0; background: #F6F0E6; min-height: 100%;
}
html.hx-account-nav-lock, html.hx-account-nav-lock body { overflow: hidden; }
#hxa *, #hxa *::before, #hxa *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#hxa button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
#hxa img { max-width: 100%; display: block; }
#hxa a { color: var(--rust); }
#hxa h1, #hxa h2, #hxa h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
#hxa p { margin: 0; }
#hxa [hidden] { display: none !important; }
#hxa svg { flex: 0 0 auto; display: block; }
#hxa ul { margin: 0; padding: 0; list-style: none; }

/* top bar */
#hxa .topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px var(--edge);
  background: rgba(246,240,230,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,218,200,.7);
}
#hxa .logo { flex: 1; min-width: 0; display: flex; align-items: center; text-decoration: none; }
#hxa .logo img { height: 46px; width: auto; }
#hxa .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 800; font-size: 14px; color: var(--ink);
}
#hxa .nav-toggle svg { width: 20px; height: 20px; }
#hxa .nav-toggle-close { display: none; }
#hxa.nav-open .nav-toggle-open { display: none; }
#hxa.nav-open .nav-toggle-close { display: block; }
#hxa .ava { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }
#hxa .ava img, #hxa .ava span { width: 100%; height: 100%; object-fit: cover; }
#hxa .ava span { display: grid; place-items: center; font-weight: 800; background: var(--rust); color: #fff; }

#hxa .preview-banner {
  margin: 12px var(--edge) 0; padding: 10px 14px; border-radius: 14px;
  background: var(--rust-tint); color: var(--rust-dark); font-weight: 800; font-size: 14px;
}

/* layout */
#hxa .shell, #hxa .account-root { max-width: 1180px; margin: 0 auto; }
#hxa .shell { padding: 16px var(--edge) 0; }
#hxa .login-shell { padding-top: 22px; padding-bottom: 20px; max-width: none; width: 100%; }
#hxa .main { min-width: 0; }
#hxa .card, #hxa .content-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
#hxa .content-card { overflow: hidden; }
#hxa .woocommerce-MyAccount-content.is-dashboard {
  padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none;
}

#hxa .tabtitle { font-size: 28px; margin: 4px 2px 12px; }
#hxa .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#hxa .sec-h h2 { font-size: 21px; }
#hxa .sec-h a, #hxa .lnk { font-size: 14px; font-weight: 800; color: var(--rust); text-decoration: none; white-space: nowrap; }
#hxa .muted { color: var(--muted); font-weight: 600; }
#hxa .lede { color: var(--body); font-weight: 600; font-size: 15.5px; }

/* side nav (off-canvas on small screens) */
#hxa .side {
  display: none;
  position: fixed; z-index: 50; top: 0; left: 0; bottom: 0;
  width: min(320px, 86vw); padding: calc(70px + env(safe-area-inset-top, 0px)) 14px 24px;
  background: var(--cream); border-right: 1px solid var(--line);
  box-shadow: 16px 0 40px rgba(42,36,32,.12);
  overflow-y: auto;
}
#hxa.nav-open .side { display: block; }
#hxa .nav-backdrop {
  position: fixed; inset: 0; z-index: 45; background: rgba(42,36,32,.35);
}
#hxa .hx-account-nav ul { display: grid; gap: 4px; }
#hxa .hx-account-nav .nb {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 14px; border-radius: 14px;
  text-decoration: none; color: var(--body); font-weight: 800; font-size: 15.5px;
}
#hxa .hx-account-nav .nb .ico { width: 22px; height: 22px; color: var(--rust-dark); }
#hxa .hx-account-nav .nb .ico svg { width: 22px; height: 22px; }
#hxa .hx-account-nav .nb .lab { white-space: nowrap; }
#hxa .hx-account-nav .nb.on,
#hxa .hx-account-nav li.is-active .nb,
#hxa .woocommerce-MyAccount-navigation-link.is-active .nb {
  background: var(--rust-tint); color: var(--rust-dark);
}
#hxa .hx-account-nav .nb:hover { background: #fff; }

/* dashboard */
#hxa .dash .hero { padding: 22px 20px 20px; }
#hxa .dash .hero h1 { font-size: 30px; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
#hxa .dash .hero .lede { margin: 0 0 4px; }
#hxa .dash .seller-link { margin-top: 16px; width: 100%; }
#hxa .qgrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 14px; }
#hxa .qcard {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: inherit;
}
#hxa .qcard .ico {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px;
  background: var(--rust-tint); color: var(--rust); display: grid; place-items: center;
}
#hxa .qcard .ico svg { width: 22px; height: 22px; }
#hxa .qcard b { font-size: 16px; font-weight: 800; color: var(--ink); }
#hxa .qcard span:not(.ico) { grid-column: 2; color: var(--muted); font-weight: 600; font-size: 13.5px; }
#hxa .qcard:hover { border-color: var(--rust-soft); }

#hxa .olist { display: grid; gap: 8px; }
#hxa .olist a {
  display: grid; gap: 4px; padding: 14px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
}
#hxa .olist .o-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#hxa .olist b { font-weight: 800; }
#hxa .olist .o-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
#hxa .olist .o-total { font-weight: 800; color: var(--ink); }
#hxa .ostatus {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--cream-2); color: var(--body); white-space: nowrap;
}
#hxa .ostatus.st-completed, #hxa .ostatus.st-processing { background: var(--sage-tint); color: var(--sage); }
#hxa .ostatus.st-on-hold, #hxa .ostatus.st-pending { background: #FFF1D6; color: #8A6410; }
#hxa .ostatus.st-cancelled, #hxa .ostatus.st-failed, #hxa .ostatus.st-refunded { background: var(--rust-tint); color: var(--rust-dark); }
#hxa .empty-orders { margin-bottom: 12px; }
#hxa .orders-card .btn { width: auto; display: inline-flex; }

/* buttons */
#hxa .btn, #hxa .woocommerce-Button, #hxa .woocommerce-button, #hxa button.button, #hxa a.button,
#hxa .woocommerce button.button, #hxa .woocommerce a.button, #hxa button[type="submit"],
#hxa input[type="submit"], #hxa .wp-element-button {
  min-height: 52px; border-radius: 999px; font-weight: 800; font-size: 16px;
  padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; width: auto; max-width: 100%;
  transition: transform .12s, background .15s;
  font-family: inherit; cursor: pointer; border: 0; line-height: 1.2;
  background: var(--rust); color: #fff !important; box-shadow: 0 10px 22px rgba(192,81,51,.28);
}
#hxa .btn:hover, #hxa .woocommerce-Button:hover, #hxa .woocommerce-button:hover, #hxa button.button:hover,
#hxa a.button:hover, #hxa button[type="submit"]:hover, #hxa input[type="submit"]:hover {
  background: var(--rust-mid); color: #fff !important;
}
#hxa .btn:active, #hxa button[type="submit"]:active { transform: scale(.98); }
#hxa .btn svg { width: 20px; height: 20px; }
#hxa .btn-primary { background: var(--rust); color: #fff; }
#hxa .btn-soft, #hxa a.button.alt, #hxa .woocommerce-button--previous {
  background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none;
}
#hxa .btn-soft:hover, #hxa a.button.alt:hover { background: var(--cream); color: var(--ink) !important; }

/* forms */
#hxa label, #hxa .woocommerce-form-row label, #hxa legend {
  display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin: 0 0 6px;
}
#hxa input[type="text"], #hxa input[type="email"], #hxa input[type="password"], #hxa input[type="tel"],
#hxa input[type="number"], #hxa input[type="search"], #hxa input[type="url"], #hxa input[type="date"],
#hxa select, #hxa textarea, #hxa .input-text, #hxa .woocommerce-Input, #hxa .select2-selection {
  width: 100%; max-width: 100%; min-height: 50px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 600; padding: 10px 14px;
  box-shadow: none; outline: none;
}
#hxa textarea { min-height: 110px; resize: vertical; }
#hxa input:focus, #hxa select:focus, #hxa textarea:focus, #hxa .input-text:focus {
  border-color: var(--rust); box-shadow: 0 0 0 3px rgba(192,81,51,.16);
}
#hxa .form-row, #hxa .woocommerce-form-row, #hxa fieldset { margin: 0 0 14px; padding: 0; border: 0; }
#hxa fieldset legend { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 10px 0 12px; }
#hxa .form-row-first, #hxa .form-row-last { width: 100%; float: none; }
#hxa .clear { clear: both; }
#hxa em, #hxa .woocommerce-form-row em, #hxa span em { color: var(--muted); font-weight: 600; font-style: normal; font-size: 13px; }
#hxa .woocommerce-EditAccountForm, #hxa .woocommerce-address-fields, #hxa .edit-account,
#hxa .woocommerce-form-login, #hxa .woocommerce-ResetPassword, #hxa .woocommerce-form-register {
  max-width: 100%;
}
#hxa .woocommerce-address-fields__field-wrapper { display: grid; gap: 0; }

/* addresses */
#hxa .woocommerce-Addresses, #hxa .u-columns { display: grid; gap: 12px; }
#hxa .woocommerce-Address, #hxa .u-column, #hxa .col-1, #hxa .col-2 {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; width: 100%; float: none;
}
#hxa .woocommerce-Address-title, #hxa .woocommerce-Address header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
#hxa .woocommerce-Address-title h2, #hxa .woocommerce-Address h2, #hxa .login-shell h2, #hxa .content-card > h2 {
  font-size: 22px; margin: 0 0 10px;
}
#hxa address { font-style: normal; font-weight: 600; color: var(--body); line-height: 1.5; }
#hxa .woocommerce-Address .edit { font-weight: 800; text-decoration: none; }

/* tables (orders, downloads, payment methods) */
#hxa table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
#hxa table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line); }
#hxa table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 600; }
#hxa table tbody tr:last-child td { border-bottom: 0; }
#hxa .woocommerce-orders-table .woocommerce-button { min-height: 40px; padding: 0 14px; font-size: 14px; width: auto; box-shadow: none; }
@media (max-width: 639px) {
  #hxa table.shop_table_responsive thead { display: none; }
  #hxa table.shop_table_responsive tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #hxa table.shop_table_responsive tbody td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0; padding: 6px 0; width: 100%;
  }
  #hxa table.shop_table_responsive tbody td::before {
    content: attr(data-title); font-weight: 800; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  }
  #hxa table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions { display: block; }
  #hxa table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions .woocommerce-button { width: 100%; margin-top: 6px; }
}

/* notices + welcome banner */
#hxa .woocommerce-notices-wrapper, #hxa .woocommerce-message, #hxa .woocommerce-info, #hxa .woocommerce-error,
#hxa .wc-block-components-notice-banner {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 15px; list-style: none;
}
#hxa .woocommerce-message { background: var(--sage-tint); color: var(--sage); border: 1px solid #d5e0c8; }
#hxa .woocommerce-info { background: var(--blue-tint); color: var(--blue); border: 1px solid #c9d9e6; }
#hxa .woocommerce-error, #hxa .woocommerce-error li { background: var(--rust-tint); color: var(--rust-dark); border-color: #E8C4B8; }
#hxa .woocommerce-message a, #hxa .woocommerce-info a, #hxa .woocommerce-error a { color: inherit; font-weight: 800; }
#hxa .woocommerce-message .button, #hxa .woocommerce-info .button { min-height: 36px; padding: 0 12px; font-size: 13px; box-shadow: none; margin-right: 8px; }
#hxa .hx-welcome-banner { margin: 0 0 16px !important; border-radius: 16px; }
#hxa .hx-welcome-banner a.hx-wb.p,
#hxa .hx-welcome-banner a.hx-wb.p:hover { color: #fff !important; background: #C05133; }
#hxa .hx-welcome-banner a.hx-wb.p:hover { background: #A34428; }
#hxa .hx-welcome-banner a.hx-wb.g,
#hxa .hx-welcome-banner a.hx-wb.g:hover { color: #9A4129 !important; background: #fff; }

/* WooCommerce info/error notice actions (e.g. Confirm email) */
#hxa .woocommerce-info .button,
#hxa .woocommerce-message .button,
#hxa .woocommerce-error .button,
#hxa .wc-block-components-notice-banner .button,
#hxa .wc-block-components-notice-banner a {
  background: #fff !important; color: var(--ink) !important;
  border: 1.5px solid var(--line); box-shadow: none; min-height: 36px;
  padding: 0 14px; font-size: 13px; width: auto;
}

/* Dokan "Become a Vendor" + "Go to Vendor Dashboard" on the account dashboard */
#hxa .dokan-account-migration-lists { list-style: none; margin: 14px 0 0; padding: 0; }
#hxa p:has(+ .dokan-account-migration-lists) { display: none; } /* stray &nbsp; above the list */
#hxa .dokan-account-migration-lists li {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
#hxa .dokan-account-migration-lists .left-content,
#hxa .dokan-account-migration-lists .right-content,
#hxa .dokan-account-migration-lists .dokan-w8,
#hxa .dokan-account-migration-lists .dokan-w4 {
  width: 100% !important; float: none !important; max-width: 100%;
}
#hxa .dokan-account-migration-lists p { margin: 0 0 4px; color: var(--body); font-weight: 600; }
#hxa .dokan-account-migration-lists strong {
  font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink);
}
#hxa .dokan-account-migration-lists a.btn,
#hxa .dokan-account-migration-lists a.btn-primary,
#hxa .dokan-account-migration-lists .btn {
  width: 100%; min-height: 52px; border-radius: 999px; white-space: nowrap;
  flex: none; align-self: stretch;
}
#hxa a.dokan-btn,
#hxa a.dokan-btn-theme,
#hxa a.vendor-dashboard {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: #fff !important; color: var(--ink) !important;
  border: 1.5px solid var(--line); box-shadow: none;
  font-weight: 800; font-size: 16px; text-decoration: none; width: 100%;
}
#hxa a.dokan-btn:hover,
#hxa a.vendor-dashboard:hover { background: var(--cream) !important; color: var(--ink) !important; }


/* login / lost password */
#hxa .login-shell .woocommerce, #hxa .login-shell form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px;
}
#hxa .login-shell h2 { text-align: center; font-size: 26px; margin: 0 0 14px; }
#hxa .login-shell form { width: 100%; }
#hxa .login-shell .woocommerce form { padding: 0; border: 0; box-shadow: none; background: transparent; }
#hxa .login-shell button[type="submit"], #hxa .login-shell .woocommerce-form-login__submit { width: 100%; }
#hxa .login-shell .woocommerce-form__label-for-checkbox, #hxa .lost_password { font-weight: 700; }
#hxa .login-shell .lost_password { text-align: center; margin-top: 12px; }
#hxa .u-columns, #hxa .col2-set { display: grid; gap: 16px; }

/* view-order */
#hxa .woocommerce-order-details, #hxa .woocommerce-customer-details, #hxa .woocommerce-order-updates { margin-bottom: 16px; }
#hxa .woocommerce-order-details__title, #hxa .woocommerce-column__title { font-size: 22px; margin: 0 0 10px; }
#hxa .order-again { margin-top: 12px; }

/* payment methods */
#hxa .woocommerce-PaymentMethods, #hxa .woocommerce-PaymentMethod { margin: 0 0 10px; }
#hxa .woocommerce-PaymentMethod { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }

/* pagination */
#hxa .woocommerce-pagination, #hxa .woocommerce-pagination ul { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
#hxa .woocommerce-pagination a, #hxa .woocommerce-pagination span {
  min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: none;
}

/* hide leftover theme chrome if any leaked */
body.hx-account-page #wpadminbar,
body.hx-account-page .wp-site-blocks > header,
body.hx-account-page .wp-site-blocks > footer { display: none !important; }

/* footer room when the shared HX footer is on */
body.hx-new-footer #hxa { padding-bottom: 0; }
#hxa > .shell,
#hxa > .account-root { flex: 1 0 auto; width: 100%; }
#hxa > #hxf { margin-top: auto; flex: 0 0 auto; width: 100%; }

@media (min-width: 640px) {
  #hxa .qgrid { grid-template-columns: 1fr 1fr; }
  #hxa .form-row-first, #hxa .form-row-last { width: calc(50% - 8px); float: left; }
  #hxa .form-row-last { float: right; }
  #hxa .woocommerce-Addresses, #hxa .u-columns, #hxa .col2-set { grid-template-columns: 1fr 1fr; }
  #hxa .dash .seller-link { width: auto; }
  #hxa .login-shell .u-columns,
  #hxa .login-shell .col2-set { display: flex; flex-direction: column; grid-template-columns: none; }
  #hxa .login-shell .form-row-first,
  #hxa .login-shell .form-row-last,
  #hxa .hx-login-stack .form-row-first,
  #hxa .hx-login-stack .form-row-last {
    width: 100%;
    float: none;
  }
}


@media (min-width: 960px) {
  #hxa { padding-bottom: 30px; }
  #hxa .topbar { padding: 10px 24px; }
  #hxa .logo img { height: 56px; }
  #hxa .nav-toggle, #hxa .nav-backdrop { display: none !important; }
  #hxa .preview-banner { margin-left: 24px; margin-right: 24px; }
  #hxa .shell:not(.login-shell), #hxa .account-root .shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 22px 24px 0; }
  #hxa .side {
    display: block; position: sticky; top: 86px; align-self: start;
    width: auto; bottom: auto; left: auto; padding: 0;
    background: transparent; border: 0; box-shadow: none; overflow: visible;
  }
  #hxa .side .hx-account-nav, #hxa .side nav {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; box-shadow: var(--shadow);
  }
  #hxa .qgrid { grid-template-columns: repeat(2, 1fr); }
  #hxa .dash .hero h1 { font-size: 34px; }
}
@media (min-width: 1100px) {
  #hxa .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hxa .dokan-account-migration-lists li { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
  #hxa .dokan-account-migration-lists .right-content { width: auto !important; flex: 0 0 auto; }
  #hxa .dokan-account-migration-lists a.btn { width: auto; min-width: 200px; }
  #hxa a.vendor-dashboard { width: auto; }
}


/* Standalone /login/ (WPUF) + lost-password / reset-password */
#hxa .login-heading {
  font-family: var(--display); font-size: 32px; line-height: 1.2;
  text-align: center; margin: 0 0 16px; color: var(--ink); font-weight: 600;
}
#hxa .login-shell #wpuf-login-form .wpuf-login-header,
#hxa .login-shell .wpuf-login-title,
#hxa .login-shell .wpuf-login-subtitle { display: none; }
#hxa #wpuf-login-form,
#hxa .woocommerce-ResetPassword,
#hxa .woocommerce-form-lost-password,
#hxa .woocommerce-ResetPassword.lost_reset_password {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px; width: 100%; max-width: 100%;
}
#hxa .login-shell #wpuf-login-form form.wpuf-login-form,
#hxa .login-shell form.wpuf-login-form {
  background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0;
}
#hxa #wpuf-login-form p { margin: 0 0 14px; }
#hxa #wpuf-login-form label { display: block; font-weight: 800; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
#hxa #wpuf-login-form input.input,
#hxa #wpuf-login-form input[type="text"],
#hxa #wpuf-login-form input[type="password"],
#hxa #wpuf-login-form input[type="email"] {
  width: 100%; max-width: 100%; min-height: 50px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 600; padding: 10px 14px;
  box-shadow: none; outline: none;
}
#hxa #wpuf-login-form input:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(192,81,51,.16); }
#hxa #wpuf-login-form input[type="submit"],
#hxa #wpuf-login-form #wp-submit,
#hxa .woocommerce-form-lost-password button[type="submit"],
#hxa .woocommerce-ResetPassword button[type="submit"],
#hxa .lost_reset_password button[type="submit"] {
  width: 100%; min-height: 56px; border-radius: 999px; border: 0;
  background: #C05133 !important; color: #fff !important;
  font-weight: 800; font-size: 16.5px; font-family: inherit;
  box-shadow: 0 10px 22px rgba(192,81,51,.28); cursor: pointer;
}
#hxa #wpuf-login-form input[type="submit"]:hover,
#hxa #wpuf-login-form #wp-submit:hover { background: #A34428 !important; color: #fff !important; }
#hxa .wpuf-remember-forgot-wrapper,
#hxa .forgetmenot.wpuf-remember-forgot-wrapper {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; margin: 4px 0 16px;
}
#hxa .wpuf-remember-me { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
#hxa .wpuf-remember-me label { display: inline; margin: 0; font-weight: 700; }
#hxa .wpuf-remember-me input[type="checkbox"] { width: auto; min-height: 0; }
#hxa .wpuf-lost-password a,
#hxa .wpuf-action-links a { font-weight: 800; text-decoration: none; color: var(--rust); }
#hxa .wpuf-action-links { text-align: center; margin-top: 16px; font-weight: 700; color: var(--body); }
#hxa .g-recaptcha,
#hxa .wpuf-fields .g-recaptcha {
  margin: 4px 0 10px; width: 100%; max-width: 100%; overflow: visible; min-height: 78px;
}
#hxa .login-shell, #hxa #wpuf-login-form, #hxa .wpuf-fields { overflow: visible; }
#hxa input:-webkit-autofill,
#hxa input:-webkit-autofill:hover,
#hxa input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 64px #FFFBF5 inset !important;
  -webkit-text-fill-color: #2A2420 !important;
  caret-color: #2A2420;
}
@media (min-width: 640px) {
  #hxa .login-heading { font-size: 36px; }
}

/*
 * 0.3.10: login / lost-password is always one centered column.
 * .login-shell also has .shell, so it must not pick up the desktop account grid.
 * Unknown parent wrappers (Elementor, Gutenberg, WPUF, flex rows) are forced
 * into a column via explicit selectors, :has(), and a JS .hx-login-force-col fallback.
 */
#hxa .shell.login-shell,
#hxa .login-shell {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  float: none;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0;
  box-sizing: border-box;
}
#hxa .hx-login-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(440px, calc(100% - 40px)) !important;
  max-width: min(440px, calc(100% - 40px)) !important;
  margin: 0 auto;
  box-sizing: border-box;
}
#hxa .login-heading {
  width: 100%;
  text-align: center;
  margin: 0 0 16px;
}
#hxa .hx-login-card,
#hxa .hx-login-card #wpuf-login-form,
#hxa .hx-login-card .woocommerce-ResetPassword,
#hxa .hx-login-card .woocommerce-form-login,
#hxa .hx-login-card .woocommerce-form-lost-password,
#hxa .hx-login-card .lost_reset_password {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Force wrappers between the stack and the form into a single column. */
#hxa .login-shell :is(
  .elementor,
  .elementor-section,
  .elementor-container,
  .elementor-row,
  .elementor-column,
  .elementor-widget-wrap,
  .elementor-element,
  .elementor-widget,
  .e-con,
  .e-con-inner,
  .entry-content,
  .wp-block-group,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-post-content,
  .is-layout-flex,
  .is-layout-grid,
  .is-layout-constrained,
  .alignwide,
  .alignfull,
  .u-columns,
  .col2-set,
  .col-1,
  .col-2
),
#hxa .login-shell :has(> .hx-login-card):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .login-heading):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .wpuf-login-form):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> #loginform):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> form[name="loginform"]):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> #wpuf-login-form):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .woocommerce-form-login):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .woocommerce-ResetPassword):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .woocommerce-form-lost-password):not(.hx-login-stack):not(.login-shell),
#hxa .login-shell :has(> .lost_reset_password):not(.hx-login-stack):not(.login-shell),
#hxa .hx-login-force-col:not(.hx-login-stack):not(.login-shell) {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

/* Keep the remember / forgot row horizontal. */
#hxa .login-shell .wpuf-remember-forgot-wrapper,
#hxa .login-shell .forgetmenot.wpuf-remember-forgot-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

#hxa .login-shell input.input,
#hxa .login-shell input[type="text"],
#hxa .login-shell input[type="password"],
#hxa .login-shell input[type="email"],
#hxa .login-shell .woocommerce-form-login input.input-text,
#hxa .login-shell .woocommerce-ResetPassword input.input-text,
#hxa .login-shell .woocommerce-form-lost-password input.input-text {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* reCAPTCHA is a fixed 304px widget; scale it on narrow phones so it fits the card. */
@media (max-width: 399px) {
  #hxa .g-recaptcha,
  #hxa .g-recaptcha > div,
  #hxa .g-recaptcha iframe {
    transform: scale(0.9);
    transform-origin: left top;
  }
}

/* 0.3.20: logged-out my-account login / register — one card per form, normal checkbox, stacked pill button */
#hxa .login-shell .hx-login-card,
#hxa .login-shell .woocommerce,
#hxa .login-shell .u-columns,
#hxa .login-shell .col2-set {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
}
#hxa .login-shell .woocommerce-notices-wrapper:empty { display: none; margin: 0; padding: 0; }
#hxa .login-shell .u-columns,
#hxa .login-shell .col2-set {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  width: 100%;
}
#hxa .login-shell .u-column,
#hxa .login-shell .u-column1,
#hxa .login-shell .u-column2,
#hxa .login-shell .col-1,
#hxa .login-shell .col-2 {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  width: 100% !important;
  float: none !important;
  margin: 0;
}
#hxa .login-shell .col-1 form,
#hxa .login-shell .col-2 form,
#hxa .login-shell .u-column form,
#hxa .login-shell .woocommerce form.woocommerce-form-login,
#hxa .login-shell .woocommerce form.woocommerce-form-register {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}
#hxa .login-shell h2 {
  text-align: center;
  font-size: 26px;
  margin: 0 0 16px;
}

/* Remember me: normal checkbox, inline, sentence case */
#hxa .login-shell .woocommerce-form-login__rememberme,
#hxa .login-shell label.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  width: auto !important;
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--ink);
  line-height: 1.3;
}
#hxa .login-shell .woocommerce-form-login__rememberme span,
#hxa .login-shell label.woocommerce-form__label-for-checkbox span {
  display: inline !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 700;
  font-size: 15px;
}
#hxa .login-shell input[type="checkbox"],
#hxa .login-shell input[type="radio"],
#hxa .login-shell .woocommerce-form__input-checkbox {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  flex: 0 0 16px !important;
  display: inline-block;
  vertical-align: middle;
  background: #fff;
  box-shadow: none;
  accent-color: var(--rust);
}

/* Login/Register form-row that holds the submit: stack, full-width pill */
#hxa .login-shell form.woocommerce-form-login > .form-row:has(button),
#hxa .login-shell form.woocommerce-form-login > .form-row:has(.woocommerce-form-login__submit),
#hxa .login-shell form.woocommerce-form-register > .form-row:has(button),
#hxa .login-shell form.woocommerce-form-register > .form-row:has(.woocommerce-form-register__submit) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px;
  float: none !important;
  width: 100% !important;
  margin: 4px 0 0 !important;
}
#hxa .login-shell .woocommerce-form-login__submit,
#hxa .login-shell .woocommerce-form-register__submit,
#hxa .login-shell form.woocommerce-form-login button[type="submit"],
#hxa .login-shell form.woocommerce-form-register button[type="submit"] {
  display: flex !important;
  order: 2;
  width: 100% !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--rust) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  box-shadow: 0 10px 22px rgba(192,81,51,.28);
  float: none !important;
}
#hxa .login-shell .woocommerce-form-login__rememberme { order: 1; }
#hxa .login-shell .lost_password,
#hxa .login-shell .woocommerce-LostPassword {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both;
  text-align: center !important;
  margin: 12px 0 0 !important;
  text-transform: none !important;
}
#hxa .login-shell .lost_password a {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 700;
  text-decoration: none;
}
#hxa .login-shell .g-recaptcha,
#hxa .login-shell .woocommerce-form-register .g-recaptcha {
  margin: 8px 0 12px;
  overflow: visible;
}

/* Tighten leftover empty space on the login stack */
#hxa .login-shell .form-row { margin-bottom: 14px; }
#hxa .login-shell .woocommerce-form-register > p:not(.form-row):not(.lost_password) {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
}
