/* Studio Sakura — WooCommerce account, scoped to the account page. */
body.sakura-styled-account {
  --sakura-ink: #252722;
  --sakura-muted: #6e6d65;
  --sakura-sand: #f6f3ec;
  --sakura-line: #e9e4d9;
  --sakura-accent: #8c8770;
}

body.sakura-styled-account .woocommerce {
  width: min(1240px, calc(100% - 48px));
  margin: 42px auto 100px;
  display: flow-root !important;
  color: var(--sakura-ink);
}

/* WooCommerce's clearfix pseudo-elements would become grid items. The account
   wrapper uses flow-root instead, so these table pseudo-elements are unnecessary. */
body.sakura-styled-account .woocommerce::before,
body.sakura-styled-account .woocommerce::after {
  content: none !important;
  display: none !important;
}

body.sakura-styled-account .woocommerce > .woocommerce-notices-wrapper:empty {
  display: none;
}

body.sakura-styled-account .woocommerce > .woocommerce-notices-wrapper:not(:empty) {
  clear: both;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation,
body.sakura-styled-account .woocommerce-MyAccount-content {
  min-width: 0;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation {
  float: left !important;
  width: 260px !important;
  margin: 0 0 28px !important;
}

body.sakura-styled-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin-left: 310px !important;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 16px !important;
  background: var(--sakura-sand);
  border: 1px solid var(--sakura-line);
  border-radius: 24px;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation li::before,
body.sakura-styled-account .woocommerce-MyAccount-navigation li::marker {
  content: none !important;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  border-radius: 13px;
  color: var(--sakura-ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

body.sakura-styled-account .woocommerce-MyAccount-navigation .is-active a,
body.sakura-styled-account .woocommerce-MyAccount-navigation a:hover,
body.sakura-styled-account .woocommerce-MyAccount-navigation a:focus-visible {
  background: #fff;
  color: #262923;
  box-shadow: 0 3px 15px rgba(53, 45, 32, .04);
}

body.sakura-styled-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--sakura-line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  line-height: 1.7;
}

body.sakura-styled-account .woocommerce-MyAccount-content a:not(.button):not(.sakura-btn) {
  color: #68654f;
  text-underline-offset: 3px;
}

body.sakura-styled-account .sakura-account-courses .sakura-eyebrow {
  margin: 0 0 8px;
  color: var(--sakura-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

body.sakura-styled-account .sakura-account-courses h2 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
}

body.sakura-styled-account .sakura-account-courses h2 em { font-weight: 400; }

body.sakura-styled-account .sakura-account-intro {
  margin: 0 0 32px;
  color: var(--sakura-muted);
  font-size: 15px;
}

body.sakura-styled-account .sakura-account-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

body.sakura-styled-account .sakura-account-course-card {
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
  background: var(--sakura-sand);
  border: 1px solid var(--sakura-line);
  border-radius: 24px;
}

body.sakura-styled-account .sakura-account-course-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 1;
  object-fit: cover;
}

body.sakura-styled-account .sakura-account-course-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 3vw, 42px);
}

body.sakura-styled-account .sakura-account-course-card__body > span {
  color: var(--sakura-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.sakura-styled-account .sakura-account-course-card h3 {
  margin: 10px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

body.sakura-styled-account .sakura-account-course-card p {
  margin: 0 0 24px;
  color: var(--sakura-muted);
  font-size: 14px;
  line-height: 1.7;
}

body.sakura-styled-account .sakura-account-course-card .sakura-btn,
body.sakura-styled-account .woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sakura-ink) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

body.sakura-styled-account .sakura-account-course-card .sakura-btn:hover,
body.sakura-styled-account .woocommerce-MyAccount-content .button:hover {
  background: #555547 !important;
  transform: translateY(-2px);
}

body.sakura-styled-account .sakura-account-empty,
body.sakura-styled-account .woocommerce-Address {
  float: none !important;
  width: auto !important;
  padding: 28px;
  border-radius: 20px;
  background: var(--sakura-sand);
}

body.sakura-styled-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.sakura-styled-account .woocommerce-MyAccount-content input.input-text,
body.sakura-styled-account .woocommerce-MyAccount-content select {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d9d5ca;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 850px) {
  body.sakura-styled-account .woocommerce {
    width: min(100% - 32px, 700px);
  }
  body.sakura-styled-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 22px !important;
  }
  body.sakura-styled-account .woocommerce-MyAccount-content {
    width: 100% !important;
    margin-left: 0 !important;
  }
  body.sakura-styled-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  body.sakura-styled-account .woocommerce-MyAccount-content { padding: 22px; }
  body.sakura-styled-account .sakura-account-course-card { grid-template-columns: 1fr; }
  body.sakura-styled-account .sakura-account-course-card > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
  body.sakura-styled-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}
