/* PharmaTroc account layout. Business screens and data remain provided by WooCommerce and the PharmaTroc plugin. */
body.woocommerce-account .site-content {
  min-width: 0;
  padding: 0;
  background: var(--pt-cream);
}

.pt-account-page {
  min-width: 0;
  padding: clamp(42px, 6vw, 78px) 0 clamp(70px, 8vw, 110px);
  background:
    radial-gradient(circle at 8% 2%, rgba(225, 174, 87, .13), transparent 22%),
    radial-gradient(circle at 95% 16%, rgba(93, 128, 106, .12), transparent 24%),
    var(--pt-cream);
}

.pt-account-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  padding: clamp(27px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(36, 88, 71, .14);
  border-radius: 34px 34px 34px 10px;
  background:
    radial-gradient(circle at 92% 5%, rgba(225, 174, 87, .2), transparent 28%),
    #fff;
  box-shadow: var(--pt-shadow-soft);
  isolation: isolate;
}

.pt-account-hero::before,
.pt-account-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.pt-account-hero::before {
  top: -95px;
  right: -60px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(36, 88, 71, .1);
  box-shadow: 0 0 0 38px rgba(36, 88, 71, .025);
}

.pt-account-hero::after {
  right: 22%;
  bottom: -75px;
  width: 150px;
  height: 150px;
  background: rgba(200, 111, 85, .07);
}

.pt-account-hero > div:first-child {
  min-width: 0;
}

.pt-account-hero h1 {
  margin: 8px 0 10px;
  color: var(--pt-forest-deep);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  letter-spacing: -.045em;
}

.pt-account-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--pt-muted);
  font-size: 1rem;
}

.pt-account-hero .pt-account-verification {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff3d6;
  color: #80520a;
  font-size: .78rem;
}

.pt-account-hero .pt-account-verification--verified {
  background: #e9f6ee;
  color: var(--pt-forest-deep);
}

.pt-account-hero .pt-account-verification--suspended,
.pt-account-hero .pt-account-verification--rejected {
  background: #fff0ed;
  color: var(--pt-clay-deep);
}

.pt-account-values {
  display: flex;
  align-items: center;
  gap: 9px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.pt-account-values li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pt-muted);
  font-size: .75rem;
  font-weight: 800;
}

.pt-account-values li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--pt-sage);
  color: var(--pt-forest-deep);
  font-family: Georgia, serif;
  font-size: .75rem;
  font-weight: 900;
}

.pt-account-hero__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-account-shell,
.pt-account-shell .entry-content,
body.woocommerce-account .woocommerce {
  min-width: 0;
}

.pt-account-shell {
  margin: 0;
}

.pt-account-shell .entry-content {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/*
 * WooCommerce adds clearfix pseudo-elements to .woocommerce.
 * In a CSS grid they become anonymous grid items and push the navigation
 * into column two and the content onto a second row.
 */
body.woocommerce-account .pt-account-shell .woocommerce::before,
body.woocommerce-account .pt-account-shell .woocommerce::after {
  display: none;
  content: none;
}

body.woocommerce-account.logged-in .pt-account-shell .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 112px;
  float: none;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(36, 88, 71, .14);
  border-radius: 25px 25px 25px 9px;
  background: rgba(255, 253, 248, .98);
  box-shadow: var(--pt-shadow-soft);
}

body.admin-bar.woocommerce-account .woocommerce-MyAccount-navigation {
  top: 144px;
}

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

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

body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard {
  order: 1;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--deposer-produits {
  order: 2;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--pharmaml-sales {
  order: 3;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--pharmaml {
  order: 4;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--orders {
  order: 5;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--commandes-recues {
  order: 6;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads {
  order: 7;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address {
  order: 8;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account {
  order: 9;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  order: 20;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--pt-line);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-radius: 13px;
  color: var(--pt-ink);
  font-size: .88rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #b8c6bd;
  content: "";
  transition: background .16s ease, transform .16s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--pt-sage-light);
  color: var(--pt-forest-deep);
  transform: translateX(2px);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover::before {
  background: var(--pt-clay);
  transform: scale(1.2);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--pt-forest);
  color: #fff;
  box-shadow: 0 11px 23px rgba(36, 88, 71, .18);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before {
  background: #f0ca82;
  box-shadow: 0 0 0 4px rgba(240, 202, 130, .16);
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--pt-clay-deep);
}

body.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3.5vw, 40px);
  overflow: visible;
  border: 1px solid rgba(36, 88, 71, .14);
  border-radius: 28px 28px 10px 28px;
  background: #fff;
  box-shadow: var(--pt-shadow-soft);
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:first-child + * {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--pt-forest-deep);
}

body.woocommerce-account .woocommerce-MyAccount-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

body.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

body.woocommerce-account .woocommerce-MyAccount-content p {
  max-width: 820px;
}

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

body.woocommerce-account .woocommerce-MyAccount-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea {
  max-width: 100%;
}

body.woocommerce-account .pt-pharmacy-profile {
  margin: 0 0 30px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(36, 88, 71, .16);
  border-radius: 22px 22px 8px 22px;
  background: var(--pt-sage-light);
}

body.woocommerce-account .pt-pharmacy-profile legend {
  width: auto;
  margin: 0;
  padding: 0 10px;
  color: var(--pt-forest-deep);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
}

body.woocommerce-account .pt-pharmacy-profile__intro {
  margin: 0 0 20px;
  color: var(--pt-muted);
  font-size: .92rem;
}

body.woocommerce-account .pt-pharmacy-profile__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}

body.woocommerce-account .pt-pharmacy-profile__fields .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .pt-pharmacy-profile__fields .form-row-wide {
  grid-column: 1 / -1;
}

body.woocommerce-account .pt-pharmacy-profile__fields label {
  color: var(--pt-forest-deep);
  font-size: .86rem;
  font-weight: 750;
}

body.woocommerce-account .pt-pharmacy-profile__fields .description {
  display: block;
  margin-top: 6px;
  color: var(--pt-muted);
  font-size: .78rem;
  line-height: 1.4;
}

body.woocommerce-account .pt-pharmacy-profile__fields input:focus-visible {
  outline: 3px solid rgba(200, 111, 85, .25);
  outline-offset: 2px;
  border-color: var(--pt-clay);
}

body.woocommerce-account .woocommerce-EditAccountForm #account_display_name[readonly] {
  border-color: rgba(36, 88, 71, .16);
  background: var(--pt-sage-light);
  color: var(--pt-forest-deep);
  cursor: not-allowed;
}

body.woocommerce-account .woocommerce-MyAccount-content .pharmaml-sales,
body.woocommerce-account .woocommerce-MyAccount-content .pharmatroc-deposit-page,
body.woocommerce-account .woocommerce-MyAccount-content .pt-deposit-app {
  min-width: 0;
  max-width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content .pharmaml-sales {
  overflow-x: auto;
}

body.woocommerce-account .woocommerce-MyAccount-content .pharmaml-sales-list {
  width: 100%;
  min-width: 680px;
}

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

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

body.woocommerce-account:not(.logged-in) .pt-account-shell .woocommerce {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(36, 88, 71, .14);
  border-radius: 28px 28px 28px 10px;
  background: #fff;
  box-shadow: var(--pt-shadow-soft);
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  float: none;
  width: 100%;
}

@media (max-width: 960px) {
  .pt-account-hero {
    display: block;
  }

  .pt-account-hero__actions {
    justify-content: flex-start;
    margin-top: 22px;
  }

  body.woocommerce-account.logged-in .pt-account-shell .woocommerce {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    grid-column: 1;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .pt-account-page {
    padding-top: 28px;
  }

  .pt-account-hero {
    padding: 24px 20px;
    border-radius: 26px 26px 26px 9px;
  }

  .pt-account-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pt-account-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-account-hero__actions .pt-btn {
    width: 100%;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-account .woocommerce-MyAccount-content,
  body.woocommerce-account:not(.logged-in) .pt-account-shell .woocommerce {
    padding: 20px;
    border-radius: 23px 23px 8px 23px;
  }

  body.woocommerce-account .pt-pharmacy-profile {
    padding: 19px 16px;
  }

  body.woocommerce-account .pt-pharmacy-profile__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-account .pt-pharmacy-profile__fields .form-row {
    grid-column: 1;
  }

  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 10px;
  }

  .pt-account-values {
    grid-template-columns: minmax(0, 1fr);
  }
}
