/* Scoped account repair: preserves Taiyo cream, chocolate and yellow brand identity. */
body.woocommerce-account .tm-auth{--tm-chocolate:#392207;--tm-cream:#fff8df;--tm-gold:#d6a322;color:var(--tm-chocolate);width:min(100% - 32px,980px);margin:clamp(32px,5vw,64px) auto 80px;font-family:inherit}
body.woocommerce-account .tm-auth__intro{text-align:center;margin:0 auto 30px;max-width:620px}
body.woocommerce-account .tm-auth__eyebrow{letter-spacing:.12em;text-transform:uppercase;font-size:12px;font-weight:800;opacity:.7}
body.woocommerce-account .tm-auth__intro h1{font-size:clamp(30px,4vw,48px)!important;line-height:1.14!important;letter-spacing:-.025em;margin:12px 0!important;color:var(--tm-chocolate)!important}
body.woocommerce-account .tm-auth__intro p{margin:0;color:#654c28;font-size:16px}
body.woocommerce-account .tm-auth__columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
body.woocommerce-account .tm-auth--lost,body.woocommerce-account .tm-auth--reset{max-width:540px}
body.woocommerce-account .tm-auth__card{background:var(--tm-cream);border:1.5px solid #634015;border-radius:20px;box-shadow:6px 7px 0 #392207;padding:clamp(24px,3vw,36px);min-width:0}
body.woocommerce-account .tm-auth__card h2{font-size:clamp(22px,2.5vw,28px)!important;line-height:1.2!important;margin:0 0 8px!important;color:var(--tm-chocolate)!important}
body.woocommerce-account .tm-auth__hint{color:#705938;margin:0 0 24px!important;font-size:14px;line-height:1.6}
body.woocommerce-account .tm-auth .woocommerce-form-row{float:none!important;width:100%!important;margin:0 0 18px!important;padding:0!important}
body.woocommerce-account .tm-auth label:not(.woocommerce-form__label){font-size:14px;font-weight:700;display:block;margin-bottom:8px;color:var(--tm-chocolate)}
body.woocommerce-account .tm-auth input:not([type=checkbox]):not([type=hidden]):not([type=submit]){box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:48px;padding:12px 14px;border:1.5px solid #bea978;border-radius:10px;background:#fff;color:#332009;font:inherit;font-size:16px;box-shadow:none}
body.woocommerce-account .tm-auth input:focus-visible,body.woocommerce-account .tm-auth button:focus-visible,body.woocommerce-account .tm-auth a:focus-visible{outline:3px solid #aa760b;outline-offset:3px}
body.woocommerce-account .tm-auth__submit,body.woocommerce-account .tm-auth button[type=submit]{background:var(--tm-chocolate)!important;color:#fff8df!important;border:0!important;border-radius:10px!important;min-height:48px!important;padding:12px 22px!important;font-size:15px!important;font-weight:700!important;cursor:pointer;box-shadow:none!important}
body.woocommerce-account .tm-auth button[type=submit]:hover{background:#69420b!important}
body.woocommerce-account .tm-auth__actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
body.woocommerce-account .tm-auth__actions .woocommerce-form__label{display:inline-flex;gap:8px;align-items:center;font-weight:500;font-size:14px;margin:0}
body.woocommerce-account .tm-auth__back{text-align:center;margin:22px 0 0;font-size:14px}
body.woocommerce-account .tm-auth__back a{color:#533506;text-decoration:underline;text-underline-offset:3px}
body.woocommerce-account .tm-auth__feedback{color:#a32f16;font-size:13px;margin:0 0 14px}
body.woocommerce-account .tm-auth input[aria-invalid=true]{border-color:#a32f16!important}
body.woocommerce-account .tm-auth .required{color:#a32f16}
body.woocommerce-account .woocommerce-error,body.woocommerce-account .woocommerce-message,body.woocommerce-account .woocommerce-info{max-width:980px;margin:24px auto!important;font-size:15px;line-height:1.5;border-radius:10px!important;box-sizing:border-box}
@media(max-width:720px){body.woocommerce-account .tm-auth__columns{grid-template-columns:1fr;gap:20px}body.woocommerce-account .tm-auth{width:min(100% - 32px,540px);margin:30px auto 52px}body.woocommerce-account .tm-auth__card{box-shadow:4px 5px 0 #392207;padding:23px}body.woocommerce-account .tm-auth__intro{margin-bottom:24px}}

/* 2026-11-17: remove nested WooCommerce default panel padding from account repair forms. */
body.woocommerce-account .tm-auth__card form.woocommerce-form-login,
body.woocommerce-account .tm-auth__card form.woocommerce-form-register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 720px) {
  body.woocommerce-account .taiyo-entry__content > .woocommerce { padding: 24px 16px 40px; }
  body.woocommerce-account .tm-auth { width: 100%; margin: 24px 0 48px; }
}

/* v1.0.2 — Mobile-first account spacing: eliminate stacked theme + WooCommerce gutters. */
@media (max-width: 720px) {
  body.woocommerce-account main.taiyo-page-shell > .taiyo-container {
    width: auto !important;
    max-width: none !important;
    margin-inline: 12px !important;
  }
  body.woocommerce-account .taiyo-entry__content > .woocommerce {
    padding: 12px 0 28px !important;
  }
  body.woocommerce-account .tm-auth {
    width: 100% !important;
    margin: 16px 0 32px !important;
  }
  body.woocommerce-account .tm-auth__intro { margin-bottom: 18px !important; }
  body.woocommerce-account .tm-auth__columns { gap: 16px; }
  body.woocommerce-account .tm-auth__card { padding: 16px !important; }
  body.woocommerce-account .tm-auth__hint { margin-bottom: 16px !important; }
  body.woocommerce-account .tm-auth .woocommerce-form-row { margin-bottom: 16px !important; }
  body.woocommerce-account .taiyo-account-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 0 30px !important;
  }
  body.woocommerce-account .taiyo-account-hero { padding-bottom: 16px !important; }
  body.woocommerce-account .taiyo-account-shell {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    gap: 16px !important;
  }
  body.woocommerce-account .taiyo-account-nav { padding: 8px !important; }
  body.woocommerce-account .taiyo-account-nav a {
    padding-inline: 12px !important;
    min-height: 44px;
  }
  body.woocommerce-account .taiyo-account-panel { padding: 12px !important; }
  body.woocommerce-account .taiyo-account-card { padding: 14px !important; }
  body.woocommerce-account .taiyo-account-grid { gap: 12px !important; }
  body.woocommerce-account .tm-auth__card,
  body.woocommerce-account .taiyo-account-panel,
  body.woocommerce-account .taiyo-account-card {
    box-sizing: border-box;
    min-width: 0;
  }
}

/* v1.0.3 — Taiyo mobile page rhythm: reduce oversized whitespace without changing desktop styling. */
@media (max-width: 720px) {
  body.home .taiyo-allergens,
  body.home .taiyo-moments { padding-block: 72px !important; }
  body.home .taiyo-smart,
  body.home .taiyo-mission,
  body.home .taiyo-reviews,
  body.home .taiyo-video-moments,
  body.home .taiyo-home-featured-product { padding-block: 48px !important; }
  body.home .taiyo-shop-flavors { padding-block: 40px 48px !important; }
  body.post-type-archive-product .taiyo-shop-section { margin-bottom: 36px !important; }
  body.post-type-archive-product .taiyo-shop-trust { padding-block: 48px !important; }
  body.single-product .taiyo-pdp-hero { padding-block: 32px 56px !important; }
  body.single-product .taiyo-pdp-section:not(.taiyo-pdp-hero) { padding-block: 48px !important; }
  body.single-product .taiyo-newsletter { padding-block: 48px !important; }
  body.woocommerce-cart .taiyo-cart-empty__panel {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding: 18px !important;
    box-sizing: border-box;
  }
}


/* v1.0.4 — A compact, branded account dropdown on phones only. */
@media (max-width: 720px) {
  body.woocommerce-account .taiyo-account-nav.taiyo-account-nav--enhanced {
    overflow: visible !important;
    padding: 8px !important;
    border-radius: 20px !important;
    box-shadow: 5px 6px 0 #402600 !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced .taiyo-account-nav__toggle {
    appearance: none;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px !important;
    box-sizing: border-box;
    color: #402600 !important;
    background: #e4b739 !important;
    border: 1.75px solid #402600 !important;
    border-radius: 13px !important;
    text-align: left;
    font: inherit !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: none !important;
  }
  body.woocommerce-account .taiyo-account-nav__chevron {
    display: block;
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    margin: -5px 5px 0 0;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced.is-open .taiyo-account-nav__chevron {
    transform: rotate(225deg);
    margin-top: 5px;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced > ul {
    display: none !important;
    width: 100%;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    overflow: visible !important;
    padding: 8px 0 0 !important;
    margin: 8px 0 0 !important;
    border-top: 1px solid rgba(64, 38, 0, .22) !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced.is-open > ul {
    display: flex !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced > ul > li {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced > ul > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #402600 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced > ul > li.is-active > a {
    background: #f1d57b !important;
    font-weight: 750 !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced > ul > li:not(.is-active) > a:hover {
    background: #f7e9b2 !important;
  }
  body.woocommerce-account .taiyo-account-nav--enhanced .taiyo-account-nav__toggle:focus-visible,
  body.woocommerce-account .taiyo-account-nav--enhanced > ul > li > a:focus-visible {
    outline: 3px solid #a46b04 !important;
    outline-offset: 2px !important;
  }
}
@media (min-width: 721px) {
  body.woocommerce-account .taiyo-account-nav__toggle { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account .taiyo-account-nav__chevron { transition: none; }
}
