/* ==========================================================================
   DERMAX LAB ACADEMY — COMMERCE / ACCOUNT PAGES
   Works with classic WooCommerce templates and WooCommerce Blocks.
   ========================================================================== */

.dxa-commerce-hero {
  padding-block: 72px 54px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 78% 10%, rgba(183,138,67,.09), transparent 28%),
    var(--color-bg-soft);
}

.dxa-commerce-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 45px;
}

.dxa-commerce-hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.dxa-commerce-hero p:not(.section-eyebrow) {
  max-width: 680px;
  margin: 17px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.dxa-commerce-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.dxa-commerce-steps > div {
  position: relative;
  min-width: 86px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  text-align: center;
}

.dxa-commerce-steps > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 1px;
  background: var(--color-border);
}

.dxa-commerce-steps span {
  position: relative;
  z-index: 2;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 9px;
  font-weight: 700;
}

.dxa-commerce-steps strong {
  font-size: 9px;
  font-weight: 600;
}

.dxa-commerce-steps .is-active {
  color: var(--color-gold-dark);
}

html[data-theme="dark"] .dxa-commerce-steps .is-active {
  color: var(--color-gold-light);
}

.dxa-commerce-steps .is-active span {
  border-color: var(--color-gold);
  background: #171717;
  color: #fff;
}

.dxa-commerce-main {
  min-height: 520px;
  padding-block: 56px 80px;
  background: var(--color-bg);
}

.dxa-commerce-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: var(--color-bg-soft);
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.dxa-commerce-notice strong {
  color: var(--color-gold-dark);
  white-space: nowrap;
}

html[data-theme="dark"] .dxa-commerce-notice strong {
  color: var(--color-gold-light);
}

.dxa-commerce-content {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Classic WooCommerce base
   -------------------------------------------------------------------------- */

.dxa-commerce-content .woocommerce,
.dxa-woocommerce-fallback .woocommerce {
  width: 100%;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
}

.woocommerce a {
  color: inherit;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4 {
  color: var(--color-text);
}

.woocommerce h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
}

.woocommerce table.shop_table,
.woocommerce table.shop_table_responsive {
  overflow: hidden;
  border: 1px solid var(--color-border) !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--color-surface);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 16px !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-secondary);
  vertical-align: middle;
}

.woocommerce table.shop_table th {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.woocommerce-cart-form__cart-item .product-thumbnail img {
  width: 76px !important;
  border-radius: 9px;
}

.woocommerce a.remove {
  color: #a34a4a !important;
  font-size: 22px;
}

.woocommerce a.remove:hover {
  background: rgba(163,74,74,.10) !important;
  color: #a34a4a !important;
}

.woocommerce .quantity .qty {
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 17px !important;
  border: 1px solid var(--color-gold) !important;
  border-radius: 9px !important;
  background: #171717 !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast) !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-light) !important;
  box-shadow: var(--shadow-sm);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
  opacity: .48 !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce .select2-container--default .select2-selection--multiple {
  min-height: 46px;
  border: 1px solid var(--color-border) !important;
  border-radius: 9px !important;
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  padding: 10px 12px;
}

.woocommerce textarea {
  min-height: 110px;
}

.woocommerce form .form-row label {
  margin-bottom: 7px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 8px 12px;
  color: var(--color-text);
  line-height: 28px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 8px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-top: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px;
  background: var(--color-bg-soft) !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--color-gold-dark) !important;
}

.woocommerce-error::before {
  color: #a34a4a !important;
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.woocommerce-cart .cart-collaterals {
  margin-top: 28px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: min(100%, 480px);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-soft);
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin-top: 0;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding-bottom: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 28px 36px;
}

.woocommerce-checkout #customer_details {
  grid-column: 1;
}

.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 -10px;
}

.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2 / span 3;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
}

.woocommerce-checkout .col2-set {
  display: grid;
  gap: 20px;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #order_review {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

.woocommerce-checkout #payment {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft) !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-color: var(--color-border) !important;
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--color-surface) !important;
  color: var(--color-text-secondary) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--color-surface) !important;
}

.woocommerce-checkout #place_order {
  width: 100%;
}

/* --------------------------------------------------------------------------
   My Account
   -------------------------------------------------------------------------- */

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.woocommerce-account .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none;
  width: auto;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-bg-soft);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: rgba(183,138,67,.08);
  color: var(--color-gold-dark);
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  padding: 25px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-surface);
}

.woocommerce-account #customer_login {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  float: none;
  width: auto;
  padding: 25px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

/* --------------------------------------------------------------------------
   WooCommerce Blocks
   -------------------------------------------------------------------------- */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

.wc-block-cart,
.wc-block-checkout {
  gap: 28px !important;
}

.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-checkout__billing-fields,
.wc-block-checkout__contact-fields {
  border-color: var(--color-border) !important;
}

.wc-block-components-sidebar {
  padding: 22px !important;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-soft);
}

.wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input {
  border: 1px solid var(--color-border) !important;
  border-radius: 9px !important;
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}

.wc-block-components-title,
.wc-block-components-checkout-step__heading,
.wc-block-components-order-summary__button-text,
.wc-block-cart__totals-title {
  color: var(--color-text) !important;
}

.wc-block-components-product-name {
  color: var(--color-text) !important;
  font-weight: 600;
}

.wc-block-components-order-summary-item__image img,
.wc-block-cart-item__image img {
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Tutor LMS soft consistency layer
   Does not change Tutor features or course structure.
   -------------------------------------------------------------------------- */

.tutor-wrap,
.tutor-dashboard {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

.tutor-dashboard .tutor-dashboard-left-menu {
  border-color: var(--color-border) !important;
}

.tutor-dashboard .tutor-dashboard-permalinks a,
.tutor-dashboard a {
  transition: color var(--transition-fast), background var(--transition-fast);
}

.tutor-dashboard .tutor-dashboard-permalinks li.active a,
.tutor-dashboard .tutor-dashboard-permalinks a:hover {
  color: var(--color-gold-dark) !important;
}

.tutor-btn-primary,
.tutor-btn.tutor-btn-primary {
  border-color: var(--color-gold) !important;
  background: #171717 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .dxa-commerce-hero-grid {
    grid-template-columns: 1fr;
  }

  .dxa-commerce-steps {
    justify-content: flex-start;
  }

  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-account #customer_login {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .dxa-commerce-hero {
    padding-block: 54px 40px;
  }

  .dxa-commerce-main {
    padding-block: 38px 58px;
  }

  .dxa-commerce-steps {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dxa-commerce-steps > div {
    min-width: 76px;
  }

  .dxa-commerce-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .woocommerce table.shop_table_responsive tr td {
    border-top-color: var(--color-border) !important;
  }

  .woocommerce-cart-form__cart-item .product-thumbnail {
    display: block !important;
    text-align: right !important;
  }

  .woocommerce-cart-form__cart-item .product-thumbnail::before {
    content: "" !important;
  }

  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-account-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout #order_review,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 {
    padding: 18px;
  }
}


/* ==========================================================================
   STEP 9H — PREMIUM LOGIN / REGISTER PAGE
   Keeps logged-in WooCommerce My Account behavior unchanged.
   ========================================================================== */

.dxa-auth-main {
  padding-block: 48px 82px;
  background:
    radial-gradient(circle at 8% 10%, rgba(183,138,67,.055), transparent 28%),
    radial-gradient(circle at 92% 26%, rgba(183,138,67,.045), transparent 30%),
    var(--color-bg);
}

.dxa-auth-intro {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr);
  align-items: center;
  gap: clamp(42px,6vw,90px);
  margin-bottom: 26px;
  padding: clamp(30px,4vw,48px);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(183,138,67,.08), transparent 34%),
    var(--color-bg-soft);
}

.dxa-auth-intro h2 {
  max-width: 620px;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(30px,3.1vw,44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.dxa-auth-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.dxa-auth-benefits > div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.dxa-auth-benefits span {
  display: block;
  color: var(--color-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .10em;
}

.dxa-auth-benefits strong {
  display: block;
  margin-top: 25px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
}

.dxa-auth-benefits small {
  display: block;
  margin-top: 7px;
  color: var(--color-text-secondary);
  font-size: 10px;
  line-height: 1.55;
}

.dxa-auth-layout {
  max-width: 1180px;
  margin-inline: auto;
}

/*
 * The generic My Account rule uses a navigation/content grid.
 * Logged-out WooCommerce instead outputs #customer_login, so reset the
 * outer .woocommerce grid before creating the two aligned auth cards.
 */
.dxa-auth-layout .woocommerce-account .woocommerce,
body.woocommerce-account:not(.logged-in) .dxa-auth-layout .woocommerce,
.dxa-auth-layout .woocommerce {
  display: block !important;
  width: 100%;
}

.dxa-auth-layout .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

.dxa-auth-layout #customer_login {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: stretch;
  gap: 22px;
  margin: 0 !important;
}

.dxa-auth-layout #customer_login::before,
.dxa-auth-layout #customer_login::after {
  display: none !important;
  content: none !important;
}

.dxa-auth-layout #customer_login .u-column1,
.dxa-auth-layout #customer_login .u-column2,
.dxa-auth-layout #customer_login .col-1,
.dxa-auth-layout #customer_login .col-2 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: clamp(27px,3vw,38px) !important;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-surface);
  box-shadow: 0 14px 38px rgba(28,21,12,.055);
}

.dxa-auth-layout #customer_login .u-column1,
.dxa-auth-layout #customer_login .u-column2 {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.dxa-auth-layout #customer_login .u-column1::before,
.dxa-auth-layout #customer_login .u-column2::before {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 27px;
  margin-bottom: 18px;
  padding: 0 9px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(183,138,67,.055);
  color: var(--color-gold-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

html[data-theme="dark"] .dxa-auth-layout #customer_login .u-column1::before,
html[data-theme="dark"] .dxa-auth-layout #customer_login .u-column2::before {
  color: var(--color-gold-light);
}

.dxa-auth-layout #customer_login .u-column1::before {
  content: "Existing Student";
}

.dxa-auth-layout #customer_login .u-column2::before {
  content: "New Student";
}

.dxa-auth-layout #customer_login h2 {
  margin: 0 0 22px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.dxa-auth-layout .woocommerce-form-login,
.dxa-auth-layout .woocommerce-form-register,
.dxa-auth-layout form.login,
.dxa-auth-layout form.register {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.dxa-auth-layout .woocommerce-form-login,
.dxa-auth-layout .woocommerce-form-register {
  display: flex;
  flex-direction: column;
}

.dxa-auth-layout .woocommerce-form-login .form-row,
.dxa-auth-layout .woocommerce-form-register .form-row {
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.dxa-auth-layout .woocommerce-form-login label,
.dxa-auth-layout .woocommerce-form-register label {
  margin-bottom: 7px !important;
  color: var(--color-text) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.dxa-auth-layout input.input-text,
.dxa-auth-layout input[type="text"],
.dxa-auth-layout input[type="email"],
.dxa-auth-layout input[type="password"] {
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 9px !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dxa-auth-layout input.input-text:focus,
.dxa-auth-layout input[type="text"]:focus,
.dxa-auth-layout input[type="email"]:focus,
.dxa-auth-layout input[type="password"]:focus {
  outline: none !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 3px rgba(183,138,67,.08) !important;
}

.dxa-auth-layout .password-input {
  width: 100%;
}

.dxa-auth-layout .show-password-input {
  top: 50% !important;
  right: 13px !important;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.dxa-auth-layout .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 2px 12px 10px 0 !important;
  color: var(--color-text-secondary);
  font-size: 10px !important;
  font-weight: 500 !important;
}

.dxa-auth-layout .woocommerce-form-login__rememberme input {
  width: 15px !important;
  height: 15px !important;
  min-height: 0 !important;
  margin: 0 !important;
  accent-color: var(--color-gold-dark);
}

.dxa-auth-layout .woocommerce-form-login__submit,
.dxa-auth-layout .woocommerce-form-register__submit {
  min-width: 132px;
  min-height: 46px !important;
  margin-top: 4px !important;
}

.dxa-auth-layout .woocommerce-LostPassword {
  margin: 15px 0 0 !important;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  font-size: 10px;
}

.dxa-auth-layout .woocommerce-LostPassword a {
  color: var(--color-gold-dark);
  font-weight: 700;
}

html[data-theme="dark"] .dxa-auth-layout .woocommerce-LostPassword a {
  color: var(--color-gold-light);
}

.dxa-auth-layout .woocommerce-privacy-policy-text,
.dxa-auth-layout .woocommerce-form-register > p:not(.form-row) {
  color: var(--color-text-secondary);
  font-size: 10px;
  line-height: 1.65;
}

.dxa-auth-layout .woocommerce-privacy-policy-text {
  margin-top: 8px;
}

.dxa-auth-layout .woocommerce-privacy-policy-link {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dxa-auth-help {
  max-width: 1180px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 22px auto 0;
  padding: 17px 20px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-bg-soft);
}

.dxa-auth-help > div {
  display: grid;
  gap: 4px;
}

.dxa-auth-help strong {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.dxa-auth-help span {
  color: var(--color-text-secondary);
  font-size: 10px;
  line-height: 1.55;
}

.dxa-auth-help > a {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 9px;
  font-weight: 700;
}

.dxa-auth-help > a span {
  color: var(--color-gold);
  font-size: 13px;
}

@media (max-width: 980px) {
  .dxa-auth-intro {
    grid-template-columns: 1fr;
  }

  .dxa-auth-benefits {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 760px) {
  .dxa-auth-main {
    padding-block: 34px 58px;
  }

  .dxa-auth-intro {
    padding: 25px;
  }

  .dxa-auth-benefits {
    grid-template-columns: 1fr;
  }

  .dxa-auth-benefits > div {
    min-height: 0;
  }

  .dxa-auth-benefits strong {
    margin-top: 13px;
  }

  .dxa-auth-layout #customer_login {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dxa-auth-layout #customer_login .u-column1,
  .dxa-auth-layout #customer_login .u-column2 {
    min-height: 0;
  }

  .dxa-auth-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 480px) {
  .dxa-auth-intro {
    padding: 21px;
    border-radius: 14px;
  }

  .dxa-auth-layout #customer_login .u-column1,
  .dxa-auth-layout #customer_login .u-column2,
  .dxa-auth-layout #customer_login .col-1,
  .dxa-auth-layout #customer_login .col-2 {
    padding: 22px !important;
    border-radius: 14px;
  }

  .dxa-auth-layout #customer_login h2 {
    font-size: 28px;
  }

  .dxa-auth-layout .woocommerce-form-login__submit,
  .dxa-auth-layout .woocommerce-form-register__submit {
    width: 100%;
  }

  .dxa-auth-help > a {
    width: 100%;
  }
}


/* ==========================================================================
   STEP 9I — SIMPLE SINGLE-CARD LOGIN / REGISTER FLOW
   ========================================================================== */

.dxa-simple-auth-main {
  padding-block: 52px 82px;
  background:
    radial-gradient(circle at 50% 0, rgba(183,138,67,.055), transparent 33%),
    var(--color-bg);
}

.dxa-simple-auth-shell {
  width: min(100%, 620px);
  margin-inline: auto;
}

.dxa-simple-auth-content .woocommerce,
.dxa-simple-auth-content #customer_login {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.dxa-simple-auth-content #customer_login::before,
.dxa-simple-auth-content #customer_login::after {
  display: none !important;
  content: none !important;
}

.dxa-simple-auth-content #customer_login .u-column1,
.dxa-simple-auth-content #customer_login .u-column2,
.dxa-simple-auth-content #customer_login .col-1,
.dxa-simple-auth-content #customer_login .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: clamp(28px, 4vw, 42px) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 18px !important;
  background: var(--color-surface) !important;
  box-shadow: 0 18px 48px rgba(28,21,12,.065);
}

.dxa-simple-auth-content #customer_login .u-column2,
.dxa-simple-auth-content #customer_login .col-2 {
  display: none !important;
}

.dxa-simple-auth-shell.is-register-mode #customer_login .u-column1,
.dxa-simple-auth-shell.is-register-mode #customer_login .col-1 {
  display: none !important;
}

.dxa-simple-auth-shell.is-register-mode #customer_login .u-column2,
.dxa-simple-auth-shell.is-register-mode #customer_login .col-2 {
  display: block !important;
}

.dxa-simple-auth-content #customer_login h2 {
  margin: 0 0 24px !important;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.dxa-simple-auth-content .woocommerce-form-login,
.dxa-simple-auth-content .woocommerce-form-register,
.dxa-simple-auth-content form.login,
.dxa-simple-auth-content form.register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dxa-simple-auth-content .form-row {
  width: 100% !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
}

.dxa-simple-auth-content label {
  display: block;
  margin-bottom: 7px !important;
  color: var(--color-text) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.dxa-simple-auth-content input.input-text,
.dxa-simple-auth-content input[type="text"],
.dxa-simple-auth-content input[type="email"],
.dxa-simple-auth-content input[type="password"] {
  width: 100% !important;
  min-height: 52px !important;
  padding: 0 14px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 9px !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
}

.dxa-simple-auth-content input:focus {
  outline: none !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 3px rgba(183,138,67,.08) !important;
}

.dxa-simple-auth-content .password-input {
  width: 100%;
}

.dxa-simple-auth-content .show-password-input {
  top: 50% !important;
  right: 13px !important;
  transform: translateY(-50%);
}

.dxa-simple-auth-content .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 12px 12px 0 !important;
  color: var(--color-text-secondary);
  font-size: 10px !important;
  font-weight: 500 !important;
}

.dxa-simple-auth-content .woocommerce-form-login__rememberme input {
  width: 15px !important;
  height: 15px !important;
  min-height: 0 !important;
  margin: 0 !important;
  accent-color: var(--color-gold-dark);
}

.dxa-simple-auth-content .woocommerce-form-login__submit,
.dxa-simple-auth-content .woocommerce-form-register__submit {
  min-width: 145px;
  min-height: 47px !important;
  margin-top: 2px !important;
}

.dxa-simple-auth-content .woocommerce-LostPassword {
  margin: 16px 0 0 !important;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  font-size: 10px;
}

.dxa-simple-auth-content .woocommerce-LostPassword a,
.dxa-simple-auth-content .woocommerce-privacy-policy-link {
  color: var(--color-gold-dark);
  font-weight: 700;
}

html[data-theme="dark"] .dxa-simple-auth-content .woocommerce-LostPassword a,
html[data-theme="dark"] .dxa-simple-auth-content .woocommerce-privacy-policy-link {
  color: var(--color-gold-light);
}

.dxa-simple-auth-content .woocommerce-privacy-policy-text,
.dxa-simple-auth-content .woocommerce-form-register > p:not(.form-row) {
  color: var(--color-text-secondary);
  font-size: 10px;
  line-height: 1.65;
}

.dxa-simple-auth-switcher {
  margin-top: 14px;
  text-align: center;
}

.dxa-simple-auth-switcher p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.dxa-simple-auth-switcher button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .dxa-simple-auth-switcher button {
  color: var(--color-gold-light);
}

.dxa-simple-auth-switcher button:hover {
  color: var(--color-gold);
}

@media (max-width: 650px) {
  .dxa-simple-auth-main {
    padding-block: 36px 58px;
  }

  .dxa-simple-auth-shell {
    width: 100%;
  }

  .dxa-simple-auth-content #customer_login .u-column1,
  .dxa-simple-auth-content #customer_login .u-column2,
  .dxa-simple-auth-content #customer_login .col-1,
  .dxa-simple-auth-content #customer_login .col-2 {
    padding: 24px !important;
    border-radius: 14px !important;
  }

  .dxa-simple-auth-content .woocommerce-form-login__submit,
  .dxa-simple-auth-content .woocommerce-form-register__submit {
    width: 100%;
  }
}


/* ==========================================================================
   STEP 9J — LOGIN BUTTON / REMEMBER ME ALIGNMENT
   ========================================================================== */

.dxa-simple-auth-content .woocommerce-form-login .form-row:last-of-type {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

.dxa-simple-auth-content .woocommerce-form-login__submit {
  margin: 0 !important;
  flex: 0 0 auto;
}

.dxa-simple-auth-content .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.dxa-simple-auth-content .woocommerce-form-login__rememberme input {
  position: static !important;
  width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  margin: 0 !important;
  flex: 0 0 15px;
  vertical-align: middle !important;
}

.dxa-simple-auth-content .woocommerce-form-login__rememberme span {
  display: inline-block;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .dxa-simple-auth-content .woocommerce-form-login .form-row:last-of-type {
    align-items: stretch !important;
    flex-direction: column;
    gap: 11px !important;
  }

  .dxa-simple-auth-content .woocommerce-form-login__rememberme {
    align-self: flex-start;
  }
}


/* ==========================================================================
   STEP 9K — FINAL LOGIN ACTION ROW ALIGNMENT
   Robustly targets the exact WooCommerce row that contains "Remember me".
   ========================================================================== */

/*
 * Previous rule used :last-of-type, but WooCommerce adds the lost-password
 * paragraph after the action row. That meant the intended row selector could
 * miss the actual Login + Remember me line.
 *
 * :has() targets the correct form-row directly in modern Chrome/Edge.
 */
.dxa-simple-auth-content
.woocommerce-form-login
.form-row:has(.woocommerce-form-login__rememberme) {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 145px max-content 1fr;
  grid-template-areas: "button remember spacer";
  align-items: center !important;
  column-gap: 14px !important;
  row-gap: 0 !important;
  margin: 0 0 0 !important;
  padding: 0 !important;
}

/* WooCommerce places the checkbox label before the button in markup.
   Force the visual order to be: Login button → Remember me. */
.dxa-simple-auth-content
.woocommerce-form-login
.form-row:has(.woocommerce-form-login__rememberme)
.woocommerce-form-login__submit {
  grid-area: button;
  width: 145px !important;
  min-width: 145px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.dxa-simple-auth-content
.woocommerce-form-login
.form-row:has(.woocommerce-form-login__rememberme)
.woocommerce-form-login__rememberme {
  grid-area: remember;
  height: 46px !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle !important;
}

/* Keep the native checkbox, but remove browser baseline drift. */
.dxa-simple-auth-content
.woocommerce-form-login
.form-row:has(.woocommerce-form-login__rememberme)
.woocommerce-form-login__rememberme input[type="checkbox"] {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  flex: 0 0 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  transform: none !important;
  accent-color: var(--color-gold-dark);
}

.dxa-simple-auth-content
.woocommerce-form-login
.form-row:has(.woocommerce-form-login__rememberme)
.woocommerce-form-login__rememberme span {
  display: inline-flex !important;
  align-items: center !important;
  height: 16px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--color-text-secondary);
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  vertical-align: middle !important;
}

/* Lost-password starts cleanly below the completed action row. */
.dxa-simple-auth-content .woocommerce-LostPassword {
  clear: both !important;
  margin-top: 17px !important;
}

/* Small phones: button full width, remember-me directly below it. */
@media (max-width: 480px) {
  .dxa-simple-auth-content
  .woocommerce-form-login
  .form-row:has(.woocommerce-form-login__rememberme) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "button"
      "remember";
    row-gap: 11px !important;
  }

  .dxa-simple-auth-content
  .woocommerce-form-login
  .form-row:has(.woocommerce-form-login__rememberme)
  .woocommerce-form-login__submit {
    width: 100% !important;
    min-width: 0 !important;
  }

  .dxa-simple-auth-content
  .woocommerce-form-login
  .form-row:has(.woocommerce-form-login__rememberme)
  .woocommerce-form-login__rememberme {
    height: auto !important;
    min-height: 24px !important;
  }
}
