/* Native WooCommerce account screens. All forms and account endpoints stay native. */
body.pbms-woo--account .woocommerce-MyAccount-navigation {
  float: left;
  width: 250px;
  margin: 0 0 28px;
  padding: 10px;
  border: 1px solid var(--pbms-line);
  border-radius: 16px;
  background: #fff;
}

body.pbms-woo--account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.pbms-woo--account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

body.pbms-woo--account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--pbms-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, border-color .16s ease;
}

body.pbms-woo--account .woocommerce-MyAccount-navigation a:hover {
  background: var(--pbms-cream);
  border-color: var(--pbms-line);
}

body.pbms-woo--account .woocommerce-MyAccount-navigation .is-active a {
  border-color: var(--pbms-ink);
  background: var(--pbms-ink);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--pbms-gold);
}

body.pbms-woo--account .woocommerce-MyAccount-content {
  float: right;
  width: calc(100% - 278px);
  min-width: 0;
  margin: 0 0 40px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--pbms-line);
  border-radius: 18px;
  background: #fff;
  color: var(--pbms-muted);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body.pbms-woo--account .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}

body.pbms-woo--account .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(h2, h3),
body.pbms-woo--account #customer_login h2 {
  margin: 0 0 23px;
  color: var(--pbms-ink);
  font-family: inherit;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

body.pbms-woo--account .woocommerce-MyAccount-content strong {
  color: var(--pbms-ink);
  font-weight: 700;
}

body.pbms-woo--account .woocommerce-MyAccount-content mark {
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff1cc;
  color: var(--pbms-ink);
  font-weight: 650;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) a:not(.button) {
  color: var(--pbms-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Login and registration can be enabled independently in WooCommerce. */
body.pbms-woo--account #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  width: 100%;
  margin: 0 0 40px;
}

body.pbms-woo--account #customer_login::before,
body.pbms-woo--account #customer_login::after {
  display: none;
}

body.pbms-woo--account #customer_login > :is(.u-column1, .u-column2, .col-1, .col-2) {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--pbms-line);
  border-radius: 18px;
  background: #fff;
}

body.pbms-woo--account form:is(.woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) {
  width: 100%;
  max-width: 650px;
  margin: 22px 0 40px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--pbms-line);
  border-radius: 18px;
  background: #fff;
  color: var(--pbms-muted);
  font-size: 15px;
  line-height: 1.7;
}

body.pbms-woo--account #customer_login form:is(.woocommerce-form-login, .woocommerce-form-register) {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .form-row {
  margin: 0 0 20px;
  padding: 0;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .form-row label {
  margin: 0 0 7px;
  color: var(--pbms-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

body.pbms-woo--account .woocommerce :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(input.input-text, textarea.input-text, select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #92998f;
  border-radius: 8px;
  background: #fff;
  color: var(--pbms-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(input.input-text, textarea.input-text)::placeholder {
  color: #677065;
  opacity: 1;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(input[type="checkbox"], input[type="radio"]) {
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0 7px 0 0;
  accent-color: var(--pbms-focus);
  vertical-align: middle;
}

body.pbms-woo--account .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 10px;
  font-weight: 400;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .required {
  color: #a32920;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(.woocommerce-invalid .input-text, [aria-invalid="true"]) {
  border-color: #a32920;
  border-width: 2px;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .password-input {
  position: relative;
  display: block;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .password-input input {
  padding-right: 52px;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) .show-password-input {
  position: absolute;
  display: grid;
  place-items: center;
  top: 2px;
  right: 2px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pbms-ink);
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(button.button, input.button, a.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--pbms-gold);
  color: var(--pbms-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(button.button, input.button, a.button):hover {
  background: #e2a523;
  color: var(--pbms-ink);
  box-shadow: 0 3px 8px rgb(32 36 39 / 10%);
}

body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(button.button, input.button):disabled {
  border-color: #a8ada5;
  background: #e7e8e3;
  color: #555b56;
  opacity: 1;
  cursor: not-allowed;
}

body.pbms-woo--account :is(.woocommerce-form-login, .woocommerce-form-register) button.button {
  float: none;
  width: 100%;
  margin: 4px 0 0;
}

body.pbms-woo--account .woocommerce-form-login .lost_password {
  margin: 20px 0 0;
  font-size: 14px;
}

body.pbms-woo--account .lost_reset_password .form-row-first {
  float: none;
  width: 100%;
}

body.pbms-woo--account .woocommerce-MyAccount-content fieldset {
  min-width: 0;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--pbms-line);
  border-radius: 12px;
  background: var(--pbms-cream);
}

body.pbms-woo--account .woocommerce-MyAccount-content legend {
  padding: 0 8px;
  color: var(--pbms-ink);
  font-size: 18px;
  font-weight: 650;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-input-wrapper > .description, #account_display_name_description),
body.pbms-woo--account :is(.woocommerce-form-register, .lost_reset_password, .woocommerce-MyAccount-content) .woocommerce-password-hint {
  display: block;
  margin-top: 8px;
  color: var(--pbms-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.pbms-woo--account .woocommerce-MyAccount-content .select2-container .select2-selection--single {
  min-height: 48px;
  border: 1px solid #92998f;
  border-radius: 8px;
  background: #fff;
}

body.pbms-woo--account .woocommerce-MyAccount-content .select2-selection--single .select2-selection__rendered {
  padding: 10px 32px 10px 13px;
  color: var(--pbms-ink);
  font-size: 16px;
  line-height: 26px;
}

body.pbms-woo--account .woocommerce-MyAccount-content .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 8px;
  height: 46px;
}

/* Orders, downloads and payment methods retain their native table headings. */
body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  margin: 0 0 25px;
  border: 1px solid var(--pbms-line);
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table :is(th, td) {
  padding: 14px 13px;
  border: 0;
  border-bottom: 1px solid var(--pbms-line);
  background: transparent;
  vertical-align: top;
  overflow-wrap: anywhere;
}

body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table th {
  background: var(--pbms-cream);
  color: var(--pbms-ink);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table > :last-child > tr:last-child > :is(th, td) {
  border-bottom: 0;
}

body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table .button {
  min-height: 44px;
  margin: 3px 4px 3px 0;
  padding: 9px 13px;
  background: var(--pbms-ink);
  color: #fff;
  font-size: 12px;
}

body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads) {
  margin: 30px 0;
}

body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-order-details .product-quantity {
  white-space: nowrap;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-columns--addresses) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 24px;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-columns--addresses)::before,
body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-columns--addresses)::after {
  display: none;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-columns--addresses) > :is(.col-1, .col-2) {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-Address-title::after {
  display: none;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Address-title h2, .woocommerce-Address-title h3, .woocommerce-column__title) {
  float: none;
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  float: none;
  min-height: 44px;
  font-size: 13px;
}

body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Address, .woocommerce-customer-details, .woocommerce-column--billing-address, .woocommerce-column--shipping-address) address {
  width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  padding: 20px;
  border: 1px solid var(--pbms-line);
  border-radius: 10px;
  background: var(--pbms-cream);
  color: var(--pbms-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.pbms-woo--account :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--pbms-focus);
  outline-offset: 4px;
}

body.pbms-woo--account .woocommerce-MyAccount-content .select2-container--focus .select2-selection {
  outline: 3px solid var(--pbms-focus);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  body.pbms-woo--account .woocommerce-MyAccount-navigation {
    width: 215px;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content {
    width: calc(100% - 237px);
    padding: 24px;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-columns--addresses) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.pbms-woo--account .woocommerce-MyAccount-navigation,
  body.pbms-woo--account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px;
    scroll-padding-inline: 5px;
    overscroll-behavior-x: contain;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation a {
    min-height: 44px;
    padding: 10px 15px;
    white-space: nowrap;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation .is-active a {
    box-shadow: inset 0 -3px 0 var(--pbms-gold);
  }

  body.pbms-woo--account #customer_login {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  /* WooCommerce already exposes each cell label using data-title on mobile. */
  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive :is(td, th[scope="row"]) {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: right;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive th[scope="row"]::before {
    float: left;
    content: attr(data-title) ": ";
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive :is(td, th[scope="row"])::before {
    max-width: 45%;
    margin-right: 12px;
    color: var(--pbms-ink);
    font-weight: 650;
    text-align: left;
    overflow-wrap: anywhere;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive tr {
    margin: 0 0 18px;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive tr:last-child {
    margin-bottom: 0;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table_responsive .button {
    margin: 3px 0 3px 5px;
  }
}

@media (max-width: 540px) {
  body.pbms-woo--account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation li {
    min-width: 0;
  }

  body.pbms-woo--account .woocommerce-MyAccount-navigation a {
    height: 100%;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content,
  body.pbms-woo--account #customer_login > :is(.u-column1, .u-column2, .col-1, .col-2),
  body.pbms-woo--account form:is(.woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) {
    padding: 20px 16px;
    border-radius: 12px;
  }

  body.pbms-woo--account #customer_login form:is(.woocommerce-form-login, .woocommerce-form-register) {
    padding: 0;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content .form-row-first,
  body.pbms-woo--account .woocommerce-MyAccount-content .form-row-last,
  body.pbms-woo--account .lost_reset_password .form-row-first {
    float: none;
    width: 100%;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content fieldset {
    padding: 18px 12px;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content form > p > button.button,
  body.pbms-woo--account .woocommerce-MyAccount-content .woocommerce-address-fields button.button,
  body.pbms-woo--account .lost_reset_password button.button {
    width: 100%;
  }

  body.pbms-woo--account .woocommerce-MyAccount-content table.shop_table :is(th, td) {
    padding: 11px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pbms-woo--account :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

@media (forced-colors: active) {
  body.pbms-woo--account .woocommerce-MyAccount-navigation .is-active a {
    border: 2px solid LinkText;
  }

  body.pbms-woo--account :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .lost_reset_password) :is(.button, input, select, textarea) {
    border: 1px solid ButtonText;
  }
}
