/* Account pages only. WooCommerce owns forms, endpoints and password controls. */
.ov-account-prescriptions {
  margin-top: var(--spacing-48);
}
.ov-account-prescriptions__head,
.ov-account-prescriptions__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-24);
  padding: var(--spacing-16);
}
.ov-account-prescriptions__head {
  font-size: var(--font-size-small);
}
.ov-account-prescriptions .ov-account-prescriptions__list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: var(--spacing-16);
}
.ov-account-prescriptions__item {
  border: 1px solid var(--color-bg-subtle);
  border-radius: var(--radius-16);
  background: var(--color-bg-page);
}
.ov-account-prescriptions__id,
.ov-prescription-detail__file span {
  display: block;
  margin-top: var(--spacing-8);
}
.ov-account-prescriptions__item .ov-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--font-size-body);
}
.ov-prescription-dialog {
  width: min(960px, calc(100% - 2 * var(--spacing-16)));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--spacing-16));
  padding: var(--spacing-32);
  border: 0;
  border-radius: var(--radius-24);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  overflow: auto;
  overscroll-behavior: contain;
  font: var(--font-weight-regular) var(--font-size-body) / var(--line-height-body) var(--font-ui);
}
.ov-prescription-dialog::backdrop { background: var(--color-bg-overlay); }
.ov-prescription-dialog-open { overflow: hidden; }
.ov-prescription-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-32);
}
.ov-account-area .entry-content .ov-prescription-dialog__header h2 {
  margin: 0;
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  outline: none;
}
.ov-prescription-dialog .ov-button--icon {
  flex: none;
  --ov-button-bg: transparent;
}
.ov-prescription-dialog [data-recipe-content] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-24);
}
.ov-account-area .entry-content .ov-prescription-dialog :is(h3, p) {
  margin: 0;
}
.ov-account-area .entry-content .ov-prescription-dialog .ov-prescription-detail__intro p { margin-top: var(--spacing-8); }
.ov-prescription-detail__values,
.ov-prescription-detail__file {
  min-width: 0;
  padding: var(--spacing-24);
  border-radius: var(--radius-24);
  background: var(--color-bg-page);
}
.ov-prescription-detail__table { overflow-x: auto; margin-block: var(--spacing-16); }
.ov-account-area .entry-content .ov-prescription-detail__table table {
  margin: 0;
  min-width: 480px;
  font-size: var(--font-size-body);
}
.ov-account-area .entry-content .ov-prescription-detail__table :is(th, td) {
  padding: var(--spacing-16) var(--spacing-8);
  border: 0;
  background: transparent;
  font-weight: var(--font-weight-regular);
  text-align: left;
}
.ov-prescription-detail__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
}
.ov-prescription-detail__file > div { min-width: 0; overflow-wrap: anywhere; }
.ov-prescription-detail__file strong { font-weight: var(--font-weight-medium); }
@media (max-width: 767px) {
  .ov-account-prescriptions__head { display: none; }
  .ov-account-prescriptions__item { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-12); }
  .ov-account-prescriptions__item .ov-link { justify-self: start; }
  .ov-prescription-dialog { padding: var(--spacing-20); }
  .ov-prescription-detail__values,
  .ov-prescription-detail__file { padding: var(--spacing-16); }
}

body.ov-account-area {
  background: var(--color-bg-surface);
}
.ov-account-area .entry-content {
  margin-bottom: var(--spacing-64);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: 0;
}
.ov-account-area .hentry .entry-header {
  margin: var(--spacing-24) 0 var(--spacing-48);
  padding: 0;
  border: 0;
  text-align: start;
}
.ov-account-area .entry-header .entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-h1);
  letter-spacing: 0;
}
.ov-account-area .entry-content :is(h2, h3, legend) {
  font-family: var(--font-display);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-h4);
  letter-spacing: 0;
}
.ov-account-area .woocommerce-MyAccount-navigation {
  margin-bottom: var(--spacing-32);
}
.ov-account-area .hentry .entry-content .woocommerce-MyAccount-navigation ul {
  margin: 0;
  border: 0;
}
.ov-account-area
  .hentry
  .entry-content
  .woocommerce-MyAccount-navigation
  ul
  li {
  margin: 0 0 var(--spacing-4);
  border: 0;
}
.ov-account-area
  .hentry
  .entry-content
  .woocommerce-MyAccount-navigation
  ul
  li
  a {
  display: block;
  padding: var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-16);
  color: var(--color-text-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: transparent;
  transition: var(--transition-interactive);
}
.ov-account-area .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--ov-pink) !important;
  font-weight: var(--font-weight-medium);
}
.ov-account-area
  .woocommerce-MyAccount-navigation
  ul
  li:not(.is-active)
  a:hover {
  background: var(--color-bg-subtle);
}
.ov-account-area .woocommerce-MyAccount-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ov-account-area
  .woocommerce-MyAccount-navigation
  ul
  li.woocommerce-MyAccount-navigation-link
  a::before {
  content: "";
}
.ov-account-area .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}
.ov-account-area .woocommerce-MyAccount-content p {
  margin-bottom: var(--spacing-24);
}
.ov-account-area .entry-content :is(input, select, textarea, button) {
  font-family: var(--font-ui);
  letter-spacing: 0;
}
.ov-account-area .entry-content .form-row {
  margin-bottom: var(--spacing-24);
}
.ov-account-area .entry-content .form-row label {
  margin-bottom: var(--spacing-8);
  font-weight: var(--font-weight-medium);
}
.ov-account-area .entry-content :is(.input-text, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--height-56);
  padding: var(--spacing-12) var(--spacing-16);
  border: var(--focus-width) solid var(--color-border-control);
  border-radius: var(--radius-16);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  box-shadow: none;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}
.ov-account-area .entry-content :is(.input-text, select, textarea):focus {
  border-color: var(--color-border-focus);
}
.ov-account-area
  .entry-content
  .woocommerce-invalid
  :is(.input-text, select, textarea) {
  border-color: var(--color-feedback-error-ink);
}
.ov-account-area .entry-content fieldset {
  min-width: 0;
  margin: var(--spacing-32) 0;
  padding: var(--spacing-24) 0 0;
  border: 0;
  border-top: 1px solid var(--ov-gray);
  background: transparent;
}
.ov-account-area .entry-content legend {
  padding: 0 var(--spacing-8) 0 0;
  background: var(--color-bg-surface);
  margin: 0;
}
.ov-account-area .entry-content em {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  font-style: normal;
}
.ov-account-area .entry-content .password-input .input-text {
  padding-inline-end: calc(var(--action-target-min) + var(--spacing-16));
}
.ov-account-area .entry-content .show-password-input {
  top: 6px;
  right: 6px;
  width: var(--action-target-min);
  height: var(--action-target-min);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  color: var(--color-text-primary);
}
.ov-account-area .entry-content .button {
  min-height: var(--action-target-min);
  max-width: 100%;
  padding: var(--spacing-8) var(--spacing-16);
  border: var(--focus-width) solid transparent;
  border-radius: var(--radius-16);
  background: var(--color-bg-action-primary);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  text-decoration: none;
  white-space: normal;
  transition:
    background-color var(--transition-interactive),
    color var(--transition-interactive);
}
.ov-account-area
  .entry-content
  button[type="submit"]:not(.show-password-input) {
  min-height: var(--height-56);
  font-size: var(--font-size-field);
}
.ov-account-area .entry-content .button:hover:not(:disabled) {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
}
.ov-account-area .entry-content .button:focus-visible {
  outline: var(--focus-width) solid var(--color-border-focus);
  outline-offset: 2px;
}
.ov-account-area .entry-content .button:disabled {
  cursor: not-allowed;
}
.ov-account-area .entry-content table {
  width: 100%;
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}
.ov-account-area .entry-content table :is(th, td) {
  padding: var(--spacing-16) var(--spacing-12);
  vertical-align: middle;
  background: transparent;
  border-bottom: 1px solid var(--ov-gray);
}
.ov-account-area .entry-content table th {
  background: var(--ov-cream);
  font-weight: var(--font-weight-medium);
}
.ov-account-area .entry-content table .button {
  margin: var(--spacing-4);
  font-size: var(--font-size-small);
}
.ov-account-area .woocommerce-Address-title {
  display: flex;
  align-items: start;
  /* justify-content: space-between; 
	gap: var(--spacing-16); */
  margin-bottom: var(--spacing-16);
}
.ov-account-area .woocommerce-Address-title::before,
.ov-account-area .woocommerce-Address-title::after {
  display: none;
}
.ov-account-area .woocommerce-Address-title h2 {
  float: none;
  margin: 0;
}
.ov-account-area .woocommerce-Address-title a.edit {
  flex: none;
  display: grid;
  place-items: center;
  min-width: var(--action-target-min);
  min-height: var(--action-target-min);
  margin: 0;
  border-radius: var(--radius-8);
}
.ov-account-area .entry-content address {
  font-style: normal;
  line-height: var(--line-height-body);
}
.ov-account-area .select2-container .select2-selection--single {
  min-height: var(--height-56);
  border: var(--focus-width) solid var(--color-border-control);
  border-radius: var(--radius-16);
  background: var(--color-bg-surface);
}
.ov-account-area
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding: var(--spacing-12) var(--spacing-32) var(--spacing-12)
    var(--spacing-16);
  color: var(--color-text-primary);
  line-height: var(--line-height-body);
}
.ov-account-area
  .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: var(--spacing-8);
}
.ov-account-area .select2-container--focus .select2-selection--single {
  border-color: var(--color-border-focus);
}
.ov-account-area > .select2-container {
  font-family: var(--font-ui);
}
@media (min-width: 768px) {
  .ov-account-area .woocommerce-MyAccount-navigation {
    float: left;
    width: 22%;
    margin-right: 4%;
  }
  .ov-account-area .woocommerce-MyAccount-content {
    float: right;
    width: 74%;
    margin-right: 0;
  }
}
@media (max-width: 767px) {
  .ov-account-area .hentry .entry-header {
    margin-bottom: var(--spacing-24);
  }
  .ov-account-area .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-4);
  }
  .ov-account-area
    .hentry
    .entry-content
    .woocommerce-MyAccount-navigation
    ul
    li
    a {
    height: 100%;
    padding-inline: var(--spacing-12);
  }
  .ov-account-area .woocommerce-Addresses .woocommerce-Address {
    margin-bottom: var(--spacing-32);
  }
  /* Storefront hides all table headers on mobile, including WC's order-number row header. */
  .ov-account-area table.shop_table_responsive tbody th[scope="row"] {
    display: block;
    text-align: right;
  }
  .ov-account-area table.shop_table_responsive tbody th[scope="row"]::before {
    content: attr(data-title) ": ";
    float: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-account-area .entry-content .button {
    transition: none;
  }
}

body.ov-account-auth {
  background: var(--color-bg-surface);
}
.ov-account-auth .hentry .entry-header {
  margin: var(--spacing-40) 0 var(--spacing-48);
  padding: 0;
  border: 0;
  text-align: center;
}
.ov-account-auth .entry-header .entry-title {
  margin: 0;
}
.ov-account-auth .site-main,
.ov-account-auth .hentry {
  margin-bottom: 0;
}
.ov-account-auth .entry-content {
  margin-bottom: calc(2 * var(--spacing-64));
}
.ov-account-auth .ov-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-48);
  width: 100%;
  margin: 0;
}
.ov-account-auth .ov-auth::before,
.ov-account-auth .ov-auth::after {
  display: none;
}
.ov-account-auth .ov-auth--login-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 700px;
  margin-inline: auto;
}
.ov-account-auth :is(.ov-auth, #customer_login) .ov-auth__panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  padding: var(--spacing-24);
  border-radius: var(--radius-32);
  background: var(--ov-cream);
}
.ov-auth__intro {
  margin-bottom: var(--spacing-24);
}
.ov-auth .ov-auth__title {
  margin: 0 0 var(--spacing-8);
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-h3);
  letter-spacing: 0;
}
.ov-auth__intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}
.ov-auth .woocommerce-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
}
.ov-auth .woocommerce-form .form-row {
  float: none;
  width: 100%;
  margin: 0 0 var(--spacing-24);
  padding: 0;
}
.ov-auth .ov-auth__field label {
  margin-bottom: var(--spacing-8);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-label);
}
.ov-auth .ov-auth__field .required {
  color: inherit;
}
.ov-auth .ov-auth__field .input-text {
  --ov-field-background: transparent;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--height-56);
  margin: 0;
  padding: var(--spacing-12) var(--spacing-16);
  border: var(--focus-width) solid var(--color-border-control);
  border-radius: var(--radius-16);
  background: transparent;
  color: var(--color-text-primary);
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: var(--font-size-field);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-field);
}
.ov-auth .ov-auth__field .input-text::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
.ov-auth .ov-auth__field .input-text:focus {
  border-color: var(--color-border-focus);
}
.ov-auth .password-input {
  display: block;
  width: 100%;
}
.ov-auth .password-input .input-text {
  padding-inline-end: calc(var(--action-target-min) + var(--spacing-16));
}
.ov-auth .password-input .show-password-input {
  top: 6px;
  right: 6px;
  width: var(--action-target-min);
  height: var(--action-target-min);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  color: var(--color-text-primary);
}

.ov-auth .password-input .show-password-input:focus {
  border-color: transparent;
  outline-color: transparent;
}
.ov-auth__login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--spacing-16);
  row-gap: var(--spacing-8);
  margin-block: 0 var(--spacing-24);
}
.ov-auth .woocommerce-form .woocommerce-form-login__rememberme {
  float: none;
  margin: 0;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-body);
}
.ov-auth .woocommerce-form .lost_password {
  margin: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}
.ov-auth .ov-auth__password-note {
  margin: 0 0 var(--spacing-16);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
}
.ov-auth .woocommerce-privacy-policy-text {
  margin-bottom: var(--spacing-24);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}
.ov-auth .woocommerce-privacy-policy-text p {
  margin: 0;
}
.ov-auth .woocommerce-form .ov-auth__submit {
  margin: auto 0 0;
  padding-top: var(--spacing-32);
}
.ov-auth .ov-auth__submit .ov-button {
  float: none;
  width: 100%;
  margin: 0;
}
.ov-auth .ov-auth__submit .ov-button__content {
  justify-content: space-between;
}
.ov-auth
  .woocommerce-form
  > :last-child:not(.ov-auth__submit):not(input[type="hidden"]) {
  margin-top: var(--spacing-16);
}
.ov-auth .woocommerce-password-strength {
  border-radius: var(--radius-8);
}
.ov-account-auth .woocommerce-notices-wrapper {
  margin-bottom: var(--spacing-24);
}
.ov-account-auth .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-order-details__title {
  margin-bottom: var(--spacing-24);
}

/* Recovery uses the authentication fields and controls, with a compact panel. */
.ov-account-recovery .ov-auth--recovery {
  max-width: 680px;
  margin: var(--spacing-64) auto 0;
  font-family: var(--font-ui);
}
.ov-account-recovery
  :is(.ov-auth, #customer_login).ov-auth--recovery
  .ov-auth__panel {
  min-height: 0;
}
.ov-auth--recovery .ov-auth__title {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}
.ov-auth--recovery .ov-auth__intro .ov-auth__title:last-child {
  margin-bottom: 0;
}
.ov-account-recovery .entry-content :is(.ov-link, .ov-button) {
  text-decoration: none;
}
.ov-auth--recovery .woocommerce-form .ov-auth__field {
  margin-bottom: var(--spacing-16);
}
.ov-auth--recovery .woocommerce-form .ov-auth__submit {
  margin: 0;
  padding: 0;
}
.ov-auth--recovery .ov-auth__submit .ov-button__content {
  justify-content: flex-start;
}
.ov-auth__back {
  align-self: flex-start;
  margin-top: var(--spacing-16);
}
.ov-auth__back .ov-icon {
  transform: rotate(180deg);
}
.ov-auth__sent-title {
  display: block;
  margin-bottom: var(--spacing-8);
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body-lg);
}
.ov-auth__sent-desktop .woocommerce-message,
.ov-auth__sent-desktop .woocommerce-message p {
  margin-bottom: 0;
}
.ov-auth__sent-mobile {
  display: none;
}

@media (max-width: 767px) {
  .ov-account-recovery
    :is(.ov-auth, #customer_login).ov-auth--recovery
    .ov-auth__panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .ov-auth--recovery .ov-auth__title {
    margin-bottom: var(--spacing-24);
  }
  .ov-auth--recovery .ov-auth__intro p,
  .ov-auth__sent-description {
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-body-lg);
    color: var(--color-text-muted);
  }
  .ov-auth__sent-desktop {
    display: none;
  }
  .ov-auth__sent-mobile {
    display: block;
  }
  .ov-auth__sent-description {
    margin: 0 0 var(--spacing-24);
  }
  .ov-auth__sent-help {
    padding: var(--spacing-16);
    border-radius: var(--radius-16);
    background: var(--ov-cream);
  }
  .ov-auth__sent-help h2 {
    margin: 0 0 var(--spacing-8);
    font: var(--font-weight-regular) var(--font-size-body-lg) /
      var(--line-height-body-lg) var(--font-ui);
  }
  .ov-auth__sent-help p {
    margin: 0;
    color: var(--color-text-muted);
    font: var(--font-weight-regular) var(--font-size-body) /
      var(--line-height-body) var(--font-ui);
  }
  .ov-auth__resend {
    margin-top: var(--spacing-16);
  }
}

.woocommerce-column--billing-address h2,
.woocommerce-column--shipping-address h2 {
  margin-bottom: var(--spacing-12);
}

@media (max-width: 767px) {
  .ov-account-auth .hentry .entry-header {
    margin-block: var(--spacing-24) var(--spacing-32);
  }
  .ov-account-auth .ov-auth {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-24);
  }
  .ov-account-auth :is(.ov-auth, #customer_login) .ov-auth__panel {
    min-height: 0;
    padding: var(--spacing-20);
    border-radius: var(--radius-24);
  }
  .ov-account-auth .entry-content {
    margin-bottom: var(--spacing-64);
  }
  .ov-auth .ov-auth__field .input-text {
    font-size: var(--font-size-body);
  }
}
