/* Account-only hardening layer. Loaded after theme.css on WooCommerce account pages. */
body.woocommerce-account,
body.woocommerce-account .wp-site-blocks,
body.woocommerce-account main,
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce * {
  box-sizing: border-box;
}

body.woocommerce-account {
  overflow-x: hidden;
}

body.woocommerce-account main,
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .ea-account-gate,
body.woocommerce-account .ea-account-gate__forms {
  min-width: 0;
}

body.woocommerce-account img,
body.woocommerce-account iframe,
body.woocommerce-account video,
body.woocommerce-account table {
  max-width: 100%;
}

body.woocommerce-account .woocommerce p,
body.woocommerce-account .woocommerce li,
body.woocommerce-account .woocommerce td,
body.woocommerce-account .woocommerce th,
body.woocommerce-account .woocommerce address,
body.woocommerce-account .woocommerce label {
  overflow-wrap: anywhere;
}

/* Native WooCommerce password recovery and reset forms. */
body.ea-account-recovery-active main.wp-block-group {
  padding-block: clamp(2rem, 7vw, 5rem) !important;
}

body.ea-account-recovery-active .woocommerce {
  margin-inline: auto;
  max-width: 760px !important;
}

body.ea-account-recovery-page .ea-account-recovery-gate {
  align-items: start;
}

body.ea-account-recovery-page .ea-account-gate__forms {
  min-height: 0;
}

body.ea-account-recovery-page .ea-account-gate__forms > .woocommerce {
  margin: 0;
  max-width: none !important;
  width: 100%;
}

body.ea-account-recovery-active .woocommerce-MyAccount-navigation {
  display: none !important;
}

body.ea-account-recovery-active .woocommerce-MyAccount-content {
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.ea-account-recovery-active form.lost_reset_password,
body.ea-account-recovery-active .woocommerce-ResetPassword {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(21, 21, 21, 0.08);
  color: var(--wp--preset--color--charcoal, #151515);
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  width: 100%;
}

body.ea-account-recovery-active form.lost_reset_password::before,
body.ea-account-recovery-active .woocommerce-ResetPassword::before {
  color: var(--wp--preset--color--copper, #b96736);
  content: "MEMBER RECOVERY";
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
}

body.ea-account-recovery-active form.lost_reset_password > p:first-of-type,
body.ea-account-recovery-active .woocommerce-ResetPassword > p:first-of-type {
  color: rgba(21, 21, 21, 0.7);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

body.ea-account-recovery-active .form-row {
  float: none !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  width: 100% !important;
}

body.ea-account-recovery-active label {
  color: rgba(21, 21, 21, 0.74);
  display: block;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

body.ea-account-recovery-active input.input-text,
body.ea-account-recovery-active input[type="email"],
body.ea-account-recovery-active input[type="password"],
body.ea-account-recovery-active input[type="text"] {
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  color: var(--wp--preset--color--charcoal, #151515);
  font-size: 1rem;
  min-height: 52px;
  padding: 0.85rem 0.95rem;
  width: 100%;
}

body.ea-account-recovery-active input:focus {
  border-color: var(--wp--preset--color--copper, #b96736);
  box-shadow: 0 0 0 3px rgba(185, 103, 54, 0.14);
  outline: none;
}

body.ea-account-recovery-active .password-input {
  display: block;
  position: relative;
  width: 100%;
}

body.ea-account-recovery-active .show-password-input {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  height: 52px;
  justify-content: center;
  padding: 0 !important;
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
}

body.ea-account-recovery-active button.button,
body.ea-account-recovery-active .woocommerce-button {
  align-items: center;
  background: #111 !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  color: #f6f1e8 !important;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  padding: 0.9rem 1.35rem !important;
  text-decoration: none !important;
}

body.ea-account-recovery-active button.button:hover,
body.ea-account-recovery-active .woocommerce-button:hover {
  background: var(--wp--preset--color--copper, #b96736) !important;
  border-color: var(--wp--preset--color--copper, #b96736) !important;
  transform: translateY(-2px);
}

/* Notices: replace theme/plugin icons with a stable status marker. */
body.woocommerce-account .woocommerce-notices-wrapper,
body.woocommerce-account .woocommerce-notices-wrapper ul {
  margin: 0 0 1rem;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-left: 4px solid var(--wp--preset--color--copper, #b96736);
  border-radius: 8px;
  color: var(--wp--preset--color--charcoal, #151515);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  line-height: 1.55;
  list-style: none;
  margin: 0 0 1rem;
  min-height: 58px;
  padding: 0.85rem 1rem 0.85rem 2.75rem !important;
  position: relative;
  width: 100%;
}

body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before {
  background: var(--wp--preset--color--copper, #b96736) !important;
  border: 0 !important;
  border-radius: 50%;
  color: transparent !important;
  content: "" !important;
  display: block !important;
  font-size: 0 !important;
  height: 10px;
  left: 1rem;
  line-height: 0 !important;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
}

body.woocommerce-account .woocommerce-error {
  border-left-color: #a52a22;
}

body.woocommerce-account .woocommerce-error::before {
  background: #a52a22 !important;
}

body.woocommerce-account .woocommerce-message {
  border-left-color: #4a8759;
}

body.woocommerce-account .woocommerce-message::before {
  background: #4a8759 !important;
}

body.woocommerce-account .woocommerce-error svg,
body.woocommerce-account .woocommerce-info svg,
body.woocommerce-account .woocommerce-message svg,
body.woocommerce-account .woocommerce-error .wc-block-components-notice-banner__icon,
body.woocommerce-account .woocommerce-info .wc-block-components-notice-banner__icon,
body.woocommerce-account .woocommerce-message .wc-block-components-notice-banner__icon {
  display: none !important;
}

body.woocommerce-account .woocommerce-error .button,
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-message .button {
  flex: 0 0 auto;
  margin: 0 0 0 auto !important;
  white-space: nowrap;
}

/* Logged-in endpoint stability. */
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  overflow: hidden;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > * {
  max-width: 100%;
}

body.ea-account-orders-active .woocommerce-MyAccount-content,
body.ea-account-downloads-active .woocommerce-MyAccount-content,
body.ea-account-stock-active .woocommerce-MyAccount-content,
body.ea-account-view-order-active .woocommerce-MyAccount-content {
  overflow-x: auto;
}

body.woocommerce-account .woocommerce-MyAccount-content table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  table-layout: auto;
  width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  min-width: 0;
}

body.ea-account-logout-active .woocommerce-MyAccount-content > p,
body.woocommerce-account .woocommerce-form-login-toggle + form,
body.woocommerce-account .woocommerce-form-register {
  line-height: 1.75;
}

@media (max-width: 860px) {
  body.woocommerce-account.logged-in .woocommerce > .panel-layout > .panel-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: static !important;
  }

  body.ea-account-address-active .woocommerce-Addresses {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.ea-account-address-active .woocommerce-Addresses > .woocommerce-Address,
  body.ea-account-address-active .woocommerce-Addresses > .u-column1,
  body.ea-account-address-active .woocommerce-Addresses > .u-column2,
  body.ea-account-address-active .woocommerce-Addresses > .col-1,
  body.ea-account-address-active .woocommerce-Addresses > .col-2 {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 680px) {
  body.woocommerce-account main.wp-block-group {
    padding: 1.25rem clamp(1rem, 4vw, 1.25rem) 3rem !important;
  }

  body.woocommerce-account .ea-account-gate-wrap {
    padding: 1.25rem clamp(1rem, 4vw, 1.25rem) 3rem;
  }

  body.woocommerce-account .ea-account-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-account .ea-account-gate__intro {
    position: static;
  }

  body.ea-account-recovery-active form.lost_reset_password,
  body.ea-account-recovery-active .woocommerce-ResetPassword {
    padding: 1.15rem;
  }

  body.ea-account-recovery-active button.button,
  body.ea-account-recovery-active .woocommerce-button {
    width: 100%;
  }

  body.woocommerce-account .woocommerce-error,
  body.woocommerce-account .woocommerce-info,
  body.woocommerce-account .woocommerce-message {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding-right: 1rem !important;
  }

  body.woocommerce-account .woocommerce-error .button,
  body.woocommerce-account .woocommerce-info .button,
  body.woocommerce-account .woocommerce-message .button {
    margin: 0 !important;
    width: 100%;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table,
  body.ea-account-orders-active .woocommerce-MyAccount-content table,
  body.ea-account-downloads-active .woocommerce-MyAccount-content table,
  body.ea-account-stock-active .woocommerce-MyAccount-content table {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account *,
  body.woocommerce-account *::before,
  body.woocommerce-account *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
