/*
 * Woo My Account presentation only.
 * Login, registration, reset, account endpoints, nonces, and Turnstile remain
 * rendered and owned by WooCommerce and the installed WordPress plugins.
 */

.ppv2-account-surface {
  background:
    radial-gradient(circle at 0 0, rgb(92 43 142 / 5.5%), transparent 30rem),
    radial-gradient(
      circle at 100% 18%,
      rgb(118 166 213 / 8%),
      transparent 28rem
    ),
    var(--pp-color-background);
}

/* Replace the legacy image banner with the quieter Next page-header rhythm. */
.ppv2-account-surface .elementor-element.elementor-element-827dc2e {
  min-height: 0 !important;
  background-color: var(--pp-color-surface-soft) !important;
  background-image:
    radial-gradient(circle at 82% 10%, rgb(92 43 142 / 9%), transparent 24rem),
    linear-gradient(105deg, var(--pp-color-surface) 0%, var(--pp-color-surface-soft) 100%) !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Elementor's legacy banner overlay otherwise darkens the replacement hero. */
.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e
  > .e-con-inner {
  width: min(100% - 3rem, 78rem) !important;
  min-height: 0 !important;
  align-items: flex-start !important;
  gap: 0.25rem !important;
  padding-block: clamp(2rem, 3vw, 2.75rem) !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e
  :where(.elementor-widget, .elementor-widget-container) {
  width: 100%;
  text-align: left !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e
  .elementor-heading-title {
  margin: 0 !important;
  color: var(--pp-color-foreground) !important;
  font-family: var(--pp-font-sans) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  text-transform: none !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e
  .woocommerce-breadcrumb {
  margin: 0.5rem 0 0 !important;
  color: var(--pp-color-text-muted) !important;
  font-family: var(--pp-font-sans) !important;
  font-size: 0.875rem !important;
  text-align: left !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-827dc2e
  .woocommerce-breadcrumb
  a {
  color: var(--pp-color-primary) !important;
}

.ppv2-account-surface
  :where(
    .elementor-element-1082fb9,
    .elementor-element-32bc547e,
    .elementor-element-c95695a
  ) {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.ppv2-account-surface
  .elementor-element.elementor-element-32bc547e
  > .e-con-inner {
  width: min(100% - 2rem, 78rem) !important;
  gap: 0 !important;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem) !important;
}

.ppv2-account-surface #existing-customer-message {
  display: flex;
  width: min(100% - 2rem, 78rem);
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0 !important;
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-sm);
  background: var(--pp-color-primary-soft) !important;
  padding: 0.85rem 1rem !important;
  color: var(--pp-color-text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ppv2-account-surface #existing-customer-message .elementor-widget-icon {
  width: auto;
  margin: 0;
}

.ppv2-account-surface #existing-customer-message .elementor-widget-text-editor {
  width: auto;
  flex: 1;
  margin: 0;
}

/* Contextual reset help belongs with Login, not above both account forms. */
.ppv2-account-surface
  #existing-customer-message.pp-account-reset-note {
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 0 1.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: var(--pp-color-text-muted) !important;
  font-family: var(--pp-font-sans) !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.ppv2-account-surface
  #existing-customer-message.pp-account-reset-note
  .elementor-widget-icon {
  display: none !important;
}

.ppv2-account-surface
  #existing-customer-message.pp-account-reset-note
  .elementor-widget-text-editor {
  width: auto !important;
  margin: 0 !important;
}

.ppv2-account-surface
  #existing-customer-message.pp-account-reset-note
  :where(p, strong) {
  margin: 0 !important;
  font: inherit !important;
}

.ppv2-account-surface
  #existing-customer-message.pp-account-reset-note
  a {
  font-weight: 650 !important;
}

.ppv2-account-surface #customer_login h2 {
  color: var(--pp-color-foreground) !important;
  font-family: var(--pp-font-sans) !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
}

/*
 * The live account template carries Elementor/Figtree declarations with more
 * specificity than the body token. Keep all customer-facing form text on the
 * same bundled Geist face as the Next storefront without touching icon fonts.
 */
.ppv2-account-surface
  #customer_login
  :where(h2, h3, p, label, input, button, a, small, strong),
.ppv2-account-surface
  :where(
    #existing-customer-message,
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content
  )
  :where(h1, h2, h3, h4, p, label, input, select, textarea, button, a, li, small, strong) {
  font-family: var(--pp-font-sans) !important;
}

.ppv2-account-surface .woocommerce {
  box-sizing: border-box;
  width: min(100% - 2rem, 78rem);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem) !important;
  color: var(--pp-color-text-soft);
  font-family: var(--pp-font-sans) !important;
}

.ppv2-account-surface
  :where(#customer_login, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content),
.ppv2-account-surface
  :where(
    form.woocommerce-form-login,
    form.woocommerce-form-register,
    form.woocommerce-ResetPassword,
    form.woocommerce-form-reset-password
  ) {
  font-family: var(--pp-font-sans) !important;
}

.ppv2-account-surface
  .woocommerce
  > :where(
    .woocommerce-notices-wrapper,
    .woocommerce-error,
    .woocommerce-info,
    .woocommerce-message
  ) {
  grid-column: 1 / -1;
}

/* Anonymous login, registration, and recovery. */
.ppv2-account-surface #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
  margin: 0 !important;
}

.ppv2-account-surface #customer_login::before,
.ppv2-account-surface #customer_login::after,
.ppv2-account-surface.logged-in .woocommerce::before,
.ppv2-account-surface.logged-in .woocommerce::after {
  display: none;
}

.ppv2-account-surface #customer_login > :where(.u-column1, .u-column2) {
  box-sizing: border-box;
  min-width: 0;
  width: auto !important;
  float: none !important;
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-md);
  background: rgb(255 255 255 / 96%);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--pp-shadow-panel);
}

.ppv2-account-surface #customer_login h2 {
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.ppv2-account-surface
  :where(
    form.woocommerce-form-login,
    form.woocommerce-form-register,
    form.woocommerce-ResetPassword,
    form.woocommerce-form-reset-password
  ) {
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid var(--pp-color-border) !important;
  border-radius: var(--pp-radius-md) !important;
  background: rgb(255 255 255 / 96%) !important;
  padding: clamp(1.25rem, 4vw, 2.25rem) !important;
  box-shadow: var(--pp-shadow-panel) !important;
}

.ppv2-account-surface #customer_login > :where(.u-column1, .u-column2) > form {
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ppv2-account-surface :where(.woocommerce-form-row, .form-row) {
  width: 100%;
  margin: 0 0 1rem !important;
}

.ppv2-account-surface :where(label) {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--pp-color-foreground);
  font-size: 0.875rem;
  font-weight: 650;
}

.ppv2-account-surface :where(.password-input, input.input-text) {
  box-sizing: border-box;
  width: 100%;
}

.ppv2-account-surface .password-input {
  position: relative;
  display: block;
}

.ppv2-account-surface .password-input input {
  padding-right: 3.25rem;
}

.ppv2-account-surface button.show-password-input {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border: 0 !important;
  border-radius: var(--pp-radius-sm) !important;
  background: transparent !important;
  color: var(--pp-color-text-muted) !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ppv2-account-surface button.show-password-input:hover {
  background: var(--pp-color-primary-soft) !important;
  color: var(--pp-color-primary) !important;
}

.ppv2-account-surface .woocommerce-form-login__rememberme {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1rem 0 0;
}

.ppv2-account-surface :where(input[type="checkbox"], input[type="radio"]) {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pp-color-primary);
}

.ppv2-account-surface :where(.lost_password, .woocommerce-privacy-policy-text) {
  color: var(--pp-color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ppv2-account-surface .cf-turnstile {
  max-width: 100%;
  margin-block: 0.75rem 1rem;
  overflow: auto hidden;
}

/* Authenticated dashboard and endpoint pages. */
.ppv2-account-surface.logged-in .woocommerce {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ppv2-account-surface .woocommerce-MyAccount-navigation,
.ppv2-account-surface .woocommerce-MyAccount-content {
  box-sizing: border-box;
  width: auto !important;
  float: none !important;
}

.ppv2-account-surface .woocommerce-MyAccount-navigation {
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-md);
  background: rgb(255 255 255 / 96%);
  padding: 0.75rem;
  box-shadow: var(--pp-shadow-panel);
}

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

.ppv2-account-surface .woocommerce-MyAccount-navigation li + li {
  margin-top: 0.2rem;
}

.ppv2-account-surface .woocommerce-MyAccount-navigation a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--pp-radius-sm);
  padding: 0.65rem 0.8rem;
  color: var(--pp-color-text-soft);
  font-weight: 650;
  text-decoration: none;
}

.ppv2-account-surface
  .woocommerce-MyAccount-navigation
  :where(.is-active a, a:hover) {
  background: var(--pp-color-primary-soft);
  color: var(--pp-color-primary);
}

.ppv2-account-surface .woocommerce-MyAccount-content {
  min-width: 0;
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-md);
  background: rgb(255 255 255 / 96%);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--pp-shadow-panel);
}

.ppv2-account-surface .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}

.ppv2-account-surface .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}

.ppv2-account-surface :where(table.shop_table, table.woocommerce-orders-table) {
  width: 100%;
  border: 1px solid var(--pp-color-border) !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--pp-radius-sm) !important;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.ppv2-account-surface
  :where(table.shop_table, table.woocommerce-orders-table)
  :where(th, td) {
  border-color: var(--pp-color-border) !important;
  padding: 0.9rem 1rem !important;
  text-align: left;
  vertical-align: middle;
}

.ppv2-account-surface
  :where(table.shop_table, table.woocommerce-orders-table)
  th {
  background: var(--pp-color-surface-muted);
  color: var(--pp-color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ppv2-account-surface
  :where(.woocommerce-Address, .woocommerce-customer-details) {
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-sm);
  background: var(--pp-color-surface-soft);
  padding: 1rem;
}

.ppv2-account-surface :where(address) {
  color: var(--pp-color-text-soft);
  font-style: normal;
  line-height: 1.7;
}

.ppv2-account-surface :where(fieldset) {
  margin: 1.5rem 0 0;
  border: 1px solid var(--pp-color-border);
  border-radius: var(--pp-radius-sm);
  padding: 1rem;
}

.ppv2-account-surface :where(legend) {
  padding-inline: 0.4rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .ppv2-account-surface #customer_login,
  .ppv2-account-surface.logged-in .woocommerce {
    grid-template-columns: minmax(0, 1fr);
  }

  .ppv2-account-surface .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .ppv2-account-surface .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    margin: 0;
  }

  .ppv2-account-surface .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .ppv2-account-surface .woocommerce {
    width: min(100% - 1rem, 44rem);
    margin-block: 1rem 2.5rem;
  }

  .ppv2-account-surface #customer_login > :where(.u-column1, .u-column2),
  .ppv2-account-surface
    :where(
      form.woocommerce-form-login,
      form.woocommerce-form-register,
      form.woocommerce-ResetPassword,
      form.woocommerce-form-reset-password,
      .woocommerce-MyAccount-content
    ) {
    padding: 1rem !important;
  }

  .ppv2-account-surface
    :where(table.shop_table, table.woocommerce-orders-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ppv2-account-surface :where(.woocommerce-button, button[type="submit"]) {
    width: 100%;
  }
}
