/* Fann.co My Account page — scoped to keep every other theme page untouched. */
.fann-account-page {
  --account-accent: var(--fann-accent, #fec30f);
  --account-black: var(--fann-black, #050505);
  --account-ink: #171717;
  --account-muted: #737780;
  --account-border: #e4e6e9;
  --account-soft: #f7f8fa;
  --account-card: #fff;
  background: var(--account-soft);
  color: var(--account-ink);
  min-height: 65vh;
  padding-bottom: 64px;
}

.fann-account-shell {
  width: min(1360px, calc(100% - 40px));
  margin-inline: auto;
}

.fann-account-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eee5bd;
  background:
    radial-gradient(circle at 84% 22%, rgba(254, 195, 15, .20), transparent 24%),
    linear-gradient(115deg, #fffdf4 0%, #fff 54%, #fff8d8 100%);
}

.fann-account-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -120px;
  border: 42px solid rgba(254, 195, 15, .12);
  border-radius: 50%;
  pointer-events: none;
}

.fann-account-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  color: #7a7d84;
  font-size: 13px;
  line-height: 1.4;
}
.fann-account-breadcrumb a { transition: color .2s ease; }
.fann-account-breadcrumb a:hover { color: #111; }
.fann-account-breadcrumb span[aria-hidden="true"] { color: #b4b6ba; }

.fann-account-hero__content {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 38px;
}
.fann-account-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #8b6a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.fann-account-hero__eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 99px;
  background: var(--account-accent);
}
.fann-account-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
}
.fann-account-hero p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #676b73;
  font-size: 15px;
  line-height: 1.7;
}
.fann-account-hero__mark {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 26px;
  background: var(--account-accent);
  box-shadow: 0 18px 50px rgba(199, 146, 0, .18);
  transform: rotate(3deg);
}
.fann-account-hero__mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #111;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fann-account-main { padding-top: 34px; }
.fann-account-content > .woocommerce { width: 100%; }

/* Logged-in account shell */
.fann-account-page.is-authenticated .fann-account-content > .woocommerce {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 18px 24px;
}

.fann-account-profile {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .04);
}
.fann-account-profile__avatar {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}
.fann-account-profile__avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2ac96e;
}
.fann-account-profile__avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 18px;
}
.fann-account-profile__copy { min-width: 0; display: grid; gap: 1px; }
.fann-account-profile__copy > span { color: #8b8e95; font-size: 12px; font-weight: 600; }
.fann-account-profile__copy strong {
  overflow: hidden;
  color: #171717;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fann-account-profile__copy small {
  overflow: hidden;
  color: #737780;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fann-account-page .woocommerce-MyAccount-navigation {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  float: none;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .04);
}
.fann-account-page .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fann-account-page .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
.fann-account-page .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 7px 10px;
  border-radius: 13px;
  color: #3d4046;
  font-size: 14px;
  font-weight: 650;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fann-account-page .woocommerce-MyAccount-navigation li a:hover {
  color: #111;
  background: #f7f7f7;
  transform: translateX(2px);
}
.fann-account-nav__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5f5f5;
  color: #333;
}
.fann-account-nav__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fann-account-nav__label { flex: 1; }
.fann-account-nav__chevron {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: .42;
  transform: rotate(45deg);
}
.fann-account-page .woocommerce-MyAccount-navigation li.is-active a {
  color: #fff;
  background: #111;
  box-shadow: 0 9px 24px rgba(0,0,0,.12);
}
.fann-account-page .woocommerce-MyAccount-navigation li.is-active .fann-account-nav__icon {
  color: #111;
  background: var(--account-accent);
}
.fann-account-page .woocommerce-MyAccount-navigation-link--customer-logout a:hover { color: #a52626; background: #fff3f3; }

.fann-account-nav__toggle { display: none; }

.fann-account-page .woocommerce-MyAccount-content {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  float: none;
  min-width: 0;
  min-height: 520px;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--account-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 20, 20, .045);
}
.fann-account-page .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.fann-account-page .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.fann-account-page .woocommerce-MyAccount-content h2,
.fann-account-page .woocommerce-MyAccount-content h3 {
  color: #171717;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.fann-account-page .woocommerce-MyAccount-content h2 { font-size: 24px; }
.fann-account-page .woocommerce-MyAccount-content h3 { font-size: 18px; }
.fann-account-page .woocommerce-MyAccount-content p { color: #62666e; }
.fann-account-page .woocommerce-MyAccount-content p a { color: #9c7600; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(156,118,0,.35); text-underline-offset: 3px; }

/* Dashboard */
.fann-account-page .woocommerce-MyAccount-content > p:first-of-type {
  margin-bottom: 12px;
  color: #222;
  font-size: 16px;
}
.fann-account-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.fann-account-dashboard-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px;
  border: 1px solid var(--account-border);
  border-radius: 16px;
  background: #fff;
  color: #171717;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.fann-account-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: #e9c449;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.fann-account-dashboard-card__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff7d6;
  color: #111;
}
.fann-account-dashboard-card__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fann-account-dashboard-card__copy { min-width: 0; display: grid; }
.fann-account-dashboard-card__copy strong { font-size: 20px; line-height: 1.2; }
.fann-account-dashboard-card__copy span { color: #7a7e85; font-size: 12px; }
.fann-account-dashboard-card__arrow { margin-left: auto; color: #a8aaaf; font-size: 18px; }

/* Tables: orders, downloads and payment methods */
.fann-account-page table.shop_table,
.fann-account-page .woocommerce-table {
  width: 100%;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--account-border) !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 16px;
  background: #fff;
}
.fann-account-page table.shop_table th,
.fann-account-page .woocommerce-table th {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--account-border) !important;
  background: #f7f8fa;
  color: #6f737a;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fann-account-page table.shop_table td,
.fann-account-page .woocommerce-table td {
  padding: 15px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #eff0f2 !important;
  color: #34373c;
  vertical-align: middle;
}
.fann-account-page table.shop_table tbody tr:last-child td,
.fann-account-page .woocommerce-table tbody tr:last-child td { border-bottom: 0 !important; }
.fann-account-page table.shop_table td a:not(.button) { font-weight: 650; }

/* Buttons */
.fann-account-page .woocommerce .button,
.fann-account-page .woocommerce button.button,
.fann-account-page .woocommerce input.button,
.fann-account-page .woocommerce a.button,
.fann-account-page button.button,
.fann-account-page input.button,
.fann-account-page a.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px !important;
  border: 1px solid var(--account-accent) !important;
  border-radius: 999px !important;
  background: var(--account-accent) !important;
  color: #111 !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.fann-account-page .woocommerce .button:hover,
.fann-account-page .woocommerce button.button:hover,
.fann-account-page .woocommerce input.button:hover,
.fann-account-page .woocommerce a.button:hover {
  transform: translateY(-1px);
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.1) !important;
}

/* Address cards */
.fann-account-page .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.fann-account-page .woocommerce-Address {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 20px;
  border: 1px solid var(--account-border);
  border-radius: 17px;
  background: #fff;
}
.fann-account-page .woocommerce-Address-title { display: flex; align-items: center; gap: 12px; }
.fann-account-page .woocommerce-Address-title h2,
.fann-account-page .woocommerce-Address-title h3 { margin: 0; flex: 1; }
.fann-account-page .woocommerce-Address-title .edit {
  float: none;
  color: #8c6c00;
  font-size: 13px;
  font-weight: 750;
}
.fann-account-page .woocommerce-Address address { margin-top: 15px; color: #666a72; font-style: normal; line-height: 1.75; }

/* Forms */
.fann-account-page .woocommerce form .form-row { margin: 0 0 17px; padding: 0; }
.fann-account-page .woocommerce form .form-row label {
  display: block;
  margin: 0 0 7px;
  color: #2c2e32;
  font-size: 13px;
  font-weight: 700;
}
.fann-account-page .woocommerce form .form-row .required { color: #c93333; }
.fann-account-page .woocommerce form .input-text,
.fann-account-page .woocommerce form input[type="text"],
.fann-account-page .woocommerce form input[type="email"],
.fann-account-page .woocommerce form input[type="tel"],
.fann-account-page .woocommerce form input[type="password"],
.fann-account-page .woocommerce form select,
.fann-account-page .woocommerce form textarea,
.fann-account-page .select2-container .select2-selection--single {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dfe1e5;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: none;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fann-account-page .woocommerce form textarea { min-height: 110px; resize: vertical; }
.fann-account-page .woocommerce form .input-text:focus,
.fann-account-page .woocommerce form input:focus,
.fann-account-page .woocommerce form select:focus,
.fann-account-page .woocommerce form textarea:focus {
  border-color: #ddb000;
  box-shadow: 0 0 0 3px rgba(254, 195, 15, .15);
}
.fann-account-page .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 12px; }
.fann-account-page .select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
.fann-account-page fieldset {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--account-border);
  border-radius: 16px;
  background: #fafafa;
}
.fann-account-page fieldset legend { padding: 0 8px; color: #222; font-weight: 800; }

/* Login / registration / lost password */
.fann-account-page.is-guest .fann-account-content > .woocommerce { max-width: 1040px; margin: 0 auto; }
.fann-account-page.is-guest .u-columns,
.fann-account-page.is-guest #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}
.fann-account-page.is-guest .u-column1,
.fann-account-page.is-guest .u-column2 {
  width: 100% !important;
  float: none !important;
  padding: 26px;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20,20,20,.045);
}
.fann-account-page.is-guest .u-column1 > h2,
.fann-account-page.is-guest .u-column2 > h2 { margin: 0 0 16px; color: #171717; font-size: 24px; }
.fann-account-page.is-guest form.login,
.fann-account-page.is-guest form.register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.fann-account-page .woocommerce-LostPassword { margin-top: 12px; }
.fann-account-page .woocommerce-LostPassword a { color: #7c6000; font-size: 13px; font-weight: 700; }

/* Notices */
.fann-account-page .woocommerce-message,
.fann-account-page .woocommerce-info,
.fann-account-page .woocommerce-error {
  margin: 0 0 18px !important;
  padding: 14px 18px 14px 46px !important;
  border: 1px solid var(--account-border) !important;
  border-top: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #333 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.035);
}
.fann-account-page .woocommerce-message::before,
.fann-account-page .woocommerce-info::before { color: #a27b00 !important; top: 14px !important; }
.fann-account-page .woocommerce-error { border-color: #f0cccc !important; background: #fffafa !important; }
.fann-account-page .woocommerce-error::before { color: #c92f2f !important; top: 14px !important; }

.fann-account-system-message {
  padding: 24px;
  border: 1px solid var(--account-border);
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 1080px) {
  .fann-account-page.is-authenticated .fann-account-content > .woocommerce { grid-template-columns: 250px minmax(0, 1fr); gap: 16px 20px; }
  .fann-account-page .woocommerce-MyAccount-content { padding: 24px; }
  .fann-account-dashboard-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .fann-account-page { padding-bottom: 42px; }
  .fann-account-shell { width: min(100% - 28px, 1360px); }
  .fann-account-hero__content { min-height: 160px; padding-bottom: 30px; }
  .fann-account-hero__mark { width: 70px; height: 70px; border-radius: 20px; }
  .fann-account-hero__mark svg { width: 34px; height: 34px; }
  .fann-account-page.is-authenticated .fann-account-content > .woocommerce { display: block; }
  .fann-account-profile { margin-bottom: 12px; }
  .fann-account-page .woocommerce-MyAccount-navigation { margin-bottom: 14px; padding: 0; overflow: hidden; }
  .fann-account-nav__toggle {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 16px;
    border: 0;
    background: #fff;
    color: #171717;
    text-align: left;
  }
  .fann-account-nav__toggle-copy { display: grid; gap: 1px; }
  .fann-account-nav__toggle-kicker { color: #8b8f96; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .fann-account-nav__toggle-copy strong { font-size: 14px; }
  .fann-account-nav__toggle-arrow { width: 9px; height: 9px; border-right: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(45deg); transition: transform .2s ease; }
  .fann-account-nav.is-open .fann-account-nav__toggle-arrow { transform: rotate(225deg); }
  .fann-account-page .woocommerce-MyAccount-navigation ul {
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
  }
  .fann-account-page .woocommerce-MyAccount-navigation.is-open ul {
    max-height: 620px;
    padding: 0 8px 8px;
    opacity: 1;
  }
  .fann-account-page .woocommerce-MyAccount-content { min-height: 0; padding: 22px; }
}

@media (max-width: 680px) {
  .fann-account-shell { width: min(100% - 20px, 1360px); }
  .fann-account-breadcrumb { padding-top: 14px; font-size: 11px; }
  .fann-account-hero__content { min-height: 140px; padding: 18px 0 26px; }
  .fann-account-hero__mark { display: none; }
  .fann-account-hero h1 { font-size: 30px; }
  .fann-account-hero p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .fann-account-main { padding-top: 20px; }
  .fann-account-profile { padding: 15px; border-radius: 16px; }
  .fann-account-profile__avatar,
  .fann-account-profile__avatar img { width: 52px; height: 52px; }
  .fann-account-profile__avatar { flex-basis: 52px; }
  .fann-account-page .woocommerce-MyAccount-navigation,
  .fann-account-page .woocommerce-MyAccount-content { border-radius: 16px; }
  .fann-account-page .woocommerce-MyAccount-content { padding: 18px 15px; }
  .fann-account-dashboard-cards { margin-top: 20px; }
  .fann-account-page .woocommerce-Addresses { grid-template-columns: 1fr; }
  .fann-account-page.is-guest .u-columns,
  .fann-account-page.is-guest #customer_login { grid-template-columns: 1fr; gap: 14px; }
  .fann-account-page.is-guest .u-column1,
  .fann-account-page.is-guest .u-column2 { padding: 20px 16px; border-radius: 16px; }

  .fann-account-page table.shop_table,
  .fann-account-page .woocommerce-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fann-account-page table.shop_table th,
  .fann-account-page table.shop_table td,
  .fann-account-page .woocommerce-table th,
  .fann-account-page .woocommerce-table td { white-space: nowrap; }
  .fann-account-page .woocommerce form .form-row-first,
  .fann-account-page .woocommerce form .form-row-last { width: 100%; float: none; }
}
