/* My Account — same visual language as Home / About / E-Catalogue */

body.bth-apple-account {
  background: #fff;
  color: #1d1d1f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Keep forms stable — intro uses .reveal separately (transform must not be forced off there) */
body.bth-apple-account .bth-account-wrap {
  transform: none !important;
}

body.bth-apple-account h1,
body.bth-apple-account h2,
body.bth-apple-account h3,
body.bth-apple-account .bth-account-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

body.bth-apple-account .bth-apple-main.bth-account-main,
body.bth-apple-account .bth-account-main {
  width: 100%;
  max-width: 100%;
  padding-bottom: 56px;
}

body.bth-apple-account .bth-apple-footer {
  margin-top: 0;
}

/* Intro — mirrors .bth-catalogue-intro */
.bth-account-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 64px) clamp(20px, 4vw, 40px) 12px;
  text-align: center;
}

.bth-account-eyebrow {
  margin: 0 0 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bth-account-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.bth-account-lead {
  margin: 12px auto 0;
  max-width: 520px;
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.5;
}

.bth-account-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 32px) 0;
}

.bth-account-wrap .woocommerce {
  font-family: inherit;
}

/* ── Guest: login only (register via link) ── */
body.bth-apple-account.bth-account-is-guest:not(.bth-account-signup-only) .bth-account-wrap #customer_login {
  display: grid !important;
  grid-template-columns: minmax(0, 440px) !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
}

body.bth-apple-account.bth-account-is-guest:not(.bth-account-signup-only) .bth-account-wrap #customer_login > .u-column2 {
  display: none !important;
}

body.bth-apple-account.bth-account-is-guest:not(.bth-account-signup-only) .bth-account-wrap #customer_login > .u-column1 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 36px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.bth-account-wrap .bth-register-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: #6e6e73;
}

.bth-account-wrap .bth-register-link a {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.bth-account-wrap .bth-register-link a:hover {
  text-decoration: underline;
}

body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login > .u-column1 {
  display: none !important;
}

body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login {
  grid-template-columns: minmax(0, 440px) !important;
  justify-content: center;
}

body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login > .u-column2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 36px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Sign up page — back to login link via WC or custom */
body.bth-apple-account.bth-account-signup-only .bth-account-wrap .woocommerce-form-register::after {
  content: none;
}

/* ── Guest: login + register side by side (legacy fallback removed) ── */
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .woocommerce:has(#customer_login) {
  max-width: 920px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .u-columns.col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
}

/* Signup-only overrides above take precedence via more specific selectors */

body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login,
body.bth-apple-account.bth-account-signup-only .bth-account-wrap .u-columns.col2-set {
  grid-template-columns: minmax(0, 440px) !important;
  justify-content: center;
}

body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login::before,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login::after,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .u-columns.col2-set::before,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .u-columns.col2-set::after {
  display: none !important;
  content: none !important;
}

body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login > .u-column1,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login > .u-column2,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login > div,
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .u-columns.col2-set > div {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  clear: none !important;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 36px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Sign up only — single centred register card */
body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login > .u-column1 {
  display: none !important;
}

/* After registration / reset — hide duplicate WC notices */
body.bth-apple-account.bth-account-registered-pending .bth-account-forms,
body.bth-apple-account.bth-account-reset-sent .bth-account-forms {
  display: none !important;
}

body.bth-apple-account.bth-account-reset-sent .bth-account-notices {
  display: none !important;
}

.bth-account-wrap .woocommerce-message::before,
.bth-account-wrap .woocommerce-info::before,
.bth-account-wrap .woocommerce-error::before,
.bth-account-notices .woocommerce-message::before,
.bth-account-notices .woocommerce-info::before,
.bth-account-notices .woocommerce-error::before {
  content: none !important;
  display: none !important;
}

.bth-account-wrap .woocommerce-message,
.bth-account-wrap .woocommerce-info,
.bth-account-notices .woocommerce-message,
.bth-account-notices .woocommerce-info {
  list-style: none;
  padding-left: 18px !important;
}

.bth-account-wrap .woocommerce-error,
.bth-account-notices .woocommerce-error {
  list-style: none;
  padding-left: 18px !important;
}

/* Success card after registration */
.bth-account-success-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 32px 40px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.bth-account-success-card__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
}

.bth-account-success-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.bth-account-success-card__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: #6e6e73;
}

.bth-account-success-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

.bth-account-success-card__btn:hover {
  background: #991b1b;
  color: #fff !important;
}

/* Single login card when register disabled (fallback) */
body.bth-apple-account.bth-account-is-guest .bth-account-wrap .woocommerce:not(:has(#customer_login)):not(:has(.woocommerce-MyAccount-navigation)) {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px 36px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* Forms */
.bth-account-wrap form.woocommerce-form-login,
.bth-account-wrap form.woocommerce-form-register {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bth-account-wrap #customer_login h2,
.bth-account-wrap .woocommerce-form-login h2,
.bth-account-wrap .woocommerce-form-register h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #1d1d1f;
}

.bth-account-wrap .woocommerce-form-row {
  margin-bottom: 16px;
}

.bth-account-wrap .woocommerce-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.bth-account-wrap .woocommerce-Input,
.bth-account-wrap input.input-text,
.bth-account-wrap select,
.bth-account-wrap textarea,
body.bth-apple-account .bth-account-wrap .woocommerce-form-row > input,
body.bth-apple-account .bth-account-wrap #username,
body.bth-apple-account .bth-account-wrap #reg_email {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  background: #fbfbfd !important;
  color: #1d1d1f !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bth-account-wrap .woocommerce-Input:focus,
.bth-account-wrap input.input-text:focus,
body.bth-apple-account .bth-account-wrap .woocommerce-form-row > input:focus,
body.bth-apple-account .bth-account-wrap #username:focus,
body.bth-apple-account .bth-account-wrap #reg_email:focus {
  outline: none !important;
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
  background: #fff !important;
}

.bth-account-wrap input:-webkit-autofill,
.bth-account-wrap input:-webkit-autofill:hover,
.bth-account-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1d1d1f !important;
  box-shadow: 0 0 0 1000px #fbfbfd inset !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  transition: background-color 99999s ease-out 0s;
}

/* Password field — absolute eye toggle (WC uses top/transform; flex fights that) */
.bth-account-wrap .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  background: #fbfbfd !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.bth-account-wrap .password-input input {
  display: block !important;
  width: 100% !important;
  min-height: 48px;
  padding: 12px 48px 12px 16px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.bth-account-wrap .password-input input:focus {
  box-shadow: none !important;
}

.bth-account-wrap .password-input:has(input:focus) {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
  background: #fff !important;
}

.bth-account-wrap .show-password-input,
.bth-account-wrap button.show-password-input,
.bth-account-wrap .password-input > button,
.bth-account-wrap .woocommerce-form-login .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: none !important;
  background-color: transparent !important;
  color: #86868b !important;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  font-size: 0;
}

.bth-account-wrap .show-password-input:hover,
.bth-account-wrap button.show-password-input:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #1d1d1f !important;
  border: none !important;
}

.bth-account-wrap .show-password-input:focus,
.bth-account-wrap .show-password-input:focus-visible,
.bth-account-wrap button.show-password-input:focus,
.bth-account-wrap button.show-password-input:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Light gray eye icon (hide WC ::before to avoid double icons) */
.bth-account-wrap .show-password-input,
.bth-account-wrap button.show-password-input {
  z-index: 2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}

.bth-account-wrap .password-input.display-password .show-password-input,
.bth-account-wrap .password-input.display-password button.show-password-input,
.bth-account-wrap .show-password-input.display-password,
.bth-account-wrap button.show-password-input.display-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") !important;
}

.bth-account-wrap .show-password-input::before,
.bth-account-wrap .show-password-input::after,
.bth-account-wrap button.show-password-input::before,
.bth-account-wrap button.show-password-input::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.bth-account-wrap .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6e6e73;
  margin: 8px 0 18px;
}

.bth-account-wrap .woocommerce-form-login__rememberme input {
  width: auto;
}

.bth-account-wrap .woocommerce-LostPassword {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

.bth-account-wrap .woocommerce-LostPassword a {
  color: #b91c1c;
  text-decoration: none;
  font-weight: 500;
}

.bth-account-wrap .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.bth-account-wrap .woocommerce-privacy-policy-text {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 16px;
  line-height: 1.45;
}

/* Buttons — rounded (submit only; not show-password toggle) */
.bth-account-wrap a.button,
.bth-account-wrap input[type='submit'],
.bth-account-wrap #customer_login button[name='login'],
.bth-account-wrap #customer_login input[name='register'],
.bth-account-wrap .woocommerce-form-login button[type='submit'],
.bth-account-wrap .woocommerce-form-register button[type='submit'],
.bth-account-wrap .woocommerce-Button.button.woocommerce-form-login__submit,
.bth-account-wrap .woocommerce-Button.button.woocommerce-form-register__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 600;
  border: none !important;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-radius 0.2s ease;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: #b91c1c !important;
  color: #fff !important;
}

.bth-account-wrap #customer_login button[name='login']:hover,
.bth-account-wrap #customer_login input[name='register']:hover,
.bth-account-wrap .woocommerce-form-login button[type='submit']:hover,
.bth-account-wrap .woocommerce-form-register button[type='submit']:hover {
  background: #991b1b !important;
  color: #fff !important;
}

.bth-account-wrap #customer_login button[name='login']:focus-visible,
.bth-account-wrap #customer_login input[name='register']:focus-visible,
.bth-account-wrap .woocommerce-form-login button[type='submit']:focus-visible,
.bth-account-wrap .woocommerce-form-register button[type='submit']:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25) !important;
}

.bth-account-wrap a.button.alt,
.bth-account-wrap button.button.alt:not(.show-password-input) {
  background: #1d1d1f;
  color: #fff;
}

/* Lost password / reset password form */
.bth-account-wrap .woocommerce-ResetPassword .form-row-first,
.bth-account-wrap .woocommerce-ResetPassword .form-row-wide,
.bth-account-wrap .woocommerce-ResetPassword .woocommerce-form-row {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  margin-right: 0 !important;
}

.bth-account-wrap .woocommerce-ResetPassword .clear {
  display: none !important;
}

.bth-account-wrap .woocommerce-ResetPassword #user_login,
.bth-account-wrap .woocommerce-ResetPassword input.input-text {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.bth-account-wrap .woocommerce-ResetPassword > p:first-child {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #6e6e73;
}

.bth-account-wrap .woocommerce-ResetPassword button[type='submit'],
.bth-account-wrap .woocommerce-ResetPassword .woocommerce-Button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 600;
  border: none !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  background: #b91c1c !important;
  color: #fff !important;
}

.bth-account-wrap .woocommerce-ResetPassword button[type='submit']:hover,
.bth-account-wrap .woocommerce-ResetPassword .woocommerce-Button.button:hover {
  background: #991b1b !important;
  color: #fff !important;
}

.bth-account-wrap .woocommerce-ResetPassword button[type='submit']:focus-visible,
.bth-account-wrap .woocommerce-ResetPassword .woocommerce-Button.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25) !important;
}

/* Notices */
.bth-account-notices {
  max-width: 440px;
  margin: 0 auto 16px;
}

.bth-account-notices:empty {
  display: none;
}

.bth-account-notice {
  max-width: 440px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.bth-account-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.15);
}

.bth-account-notice--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.15);
}

/* Registration consent (terms, marketing, CAPTCHA) */
.bth-account-consent {
  margin: 4px 0 8px;
}

.bth-account-marketing {
  margin: 0 0 16px !important;
}

.bth-account-terms {
  margin: 0 0 12px !important;
}

.bth-reg-recaptcha {
  margin: 0 0 18px !important;
}

.bth-reg-recaptcha .bth-g-recaptcha,
.bth-reg-recaptcha .elementor-g-recaptcha {
  min-height: 78px;
}

.bth-reg-recaptcha.elementor-field-type-recaptcha .elementor-g-recaptcha > div {
  margin: 0;
}

.bth-account-flyout__panel .bth-account-consent {
  margin: 8px 0 4px;
}

.bth-account-flyout__panel .bth-reg-recaptcha {
  margin-bottom: 14px !important;
}

.bth-account-flyout__panel .bth-reg-recaptcha .bth-g-recaptcha {
  transform: scale(0.92);
  transform-origin: left top;
}

.bth-account-terms__label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  color: #6e6e73;
}

.bth-account-terms__label input[type='checkbox'] {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 16px;
  accent-color: #b91c1c;
}

.bth-account-terms__text a {
  color: #b91c1c;
  font-weight: 500;
  text-decoration: none;
}

.bth-account-terms__text a:hover {
  text-decoration: underline;
}

/* Hide empty WC password-hint paragraph on signup form */
body.bth-apple-account.bth-account-signup-only .woocommerce-form-register > p:not(.woocommerce-form-row):not(.bth-account-terms):not(.bth-account-marketing):not(.bth-register-link):not(.bth-reg-recaptcha) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bth-account-wrap .woocommerce-message,
.bth-account-wrap .woocommerce-info,
.bth-account-wrap .woocommerce-error,
.bth-account-notices .woocommerce-message,
.bth-account-notices .woocommerce-info,
.bth-account-notices .woocommerce-error {
  border-radius: 12px;
  border: none;
  padding: 14px 18px;
  margin: 0 0 12px;
  max-width: none;
  font-size: 14px;
  list-style: none;
}

.bth-account-notices .woocommerce-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.15);
}

.bth-account-notices .woocommerce-error li,
.bth-account-notices .woocommerce-message li,
.bth-account-notices .woocommerce-info li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bth-account-wrap .woocommerce-error {
  background: #fef2f2;
  color: #991b1b;
}

.bth-account-wrap .woocommerce-message,
.bth-account-wrap .woocommerce-info {
  background: #f0fdf4;
  color: #166534;
}

/* ── Logged in — dashboard layout (nav + content) ── */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation {
  float: none !important;
  width: auto !important;
  max-width: none !important;
}

@media (min-width: 901px) {
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce > .woocommerce-MyAccount-navigation {
    grid-column: 1;
    min-width: 0;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 2;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.bth-apple-account.bth-account-is-guest .bth-account-wrap .woocommerce {
  display: block !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation {
  order: 1;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
  background: transparent !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation a {
  display: block !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  color: #1d1d1f !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation a:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #1d1d1f !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.is-active a {
  background: rgba(185, 28, 28, 0.1) !important;
  color: #b91c1c !important;
  font-weight: 600 !important;
  box-shadow: inset 3px 0 0 #b91c1c !important;
  border-radius: 10px !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #86868b !important;
  margin-top: 4px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 0 10px 10px !important;
  padding-top: 14px !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #1d1d1f !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content {
  order: 2;
  background: #fff !important;
  border-radius: 16px !important;
  padding: clamp(24px, 4vw, 32px) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
  min-height: 280px !important;
  box-sizing: border-box !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content h2,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 18px !important;
  color: #1d1d1f !important;
  padding: 0 !important;
  border: none !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content p {
  color: #6e6e73;
  line-height: 1.55;
  font-size: 15px;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
  color: #b91c1c;
  font-weight: 500;
  text-decoration: none;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):hover {
  text-decoration: underline;
}

/* Orders table */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 0 16px !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table thead,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table thead {
  background: #f5f5f7 !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table th,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table td,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table th,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table td {
  padding: 14px 16px !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  text-align: left !important;
  vertical-align: middle !important;
  background: transparent !important;
  color: #1d1d1f !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table tr:last-child td,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table tr:last-child td {
  border-bottom: none !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table th,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap table.shop_table th {
  font-weight: 600 !important;
  color: #86868b !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-number a,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table a.order-number {
  color: #b91c1c !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-status {
  font-weight: 500;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-status::before {
  content: none !important;
  display: none !important;
}

/* Status pills */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-status {
  color: #6e6e73;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-status mark,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-status span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: #f5f5f7;
  color: #6e6e73;
}

/* Action buttons */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content .button,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content .woocommerce-button,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content a.button,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content input[type='submit'] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content .button:hover,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content .woocommerce-button:hover,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content a.button:hover {
  background: #991b1b !important;
  color: #fff !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table__cell-order-actions .button {
  min-width: 72px;
}

/* Tablet/desktop only — full orders table (below 900px uses card layout on phones) */
@media (min-width: 901px) {
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table thead,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive thead {
    display: table-header-group !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table tbody,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tbody {
    display: table-row-group !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table tfoot,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tfoot {
    display: table-footer-group !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table tr,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tr {
    display: table-row !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table th,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table td,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive th,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive td {
    display: table-cell !important;
    white-space: normal !important;
    width: auto !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #1d1d1f !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table td::before,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive td::before {
    content: none !important;
    display: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content {
    min-width: 0 !important;
    overflow: visible !important;
  }
}

/* Addresses — reset WC col2-set floats */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses.col2-set,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .u-columns.col2-set.addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses::before,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses::after,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .u-columns.col2-set.addresses::before,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .u-columns.col2-set.addresses::after {
  content: none !important;
  display: none !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses .u-column1,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses .u-column2,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses .col-1,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses .col-2,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #f5f5f7 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address-title h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1d1d1f !important;
  order: 1;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address-title .edit {
  order: 0;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #b91c1c !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address-title .edit:hover {
  text-decoration: underline !important;
  color: #991b1b !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Address address {
  font-style: normal !important;
  line-height: 1.65 !important;
  color: #6e6e73 !important;
  margin: 0 !important;
  white-space: pre-line;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content > p:not(.form-row) {
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* Single address edit form (billing / shipping) */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields {
  max-width: 560px;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields__field-wrapper {
  display: grid;
  gap: 0;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields .form-row-first,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields .form-row-last {
  float: none !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields .form-row-wide {
    grid-column: 1 / -1;
  }
}

/* Dashboard overview */
.bth-account-dashboard__welcome {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1d1d1f;
}

.bth-account-dashboard__welcome strong {
  font-weight: 600;
}

.bth-account-dashboard__lead {
  margin: 0 0 24px;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.55;
}

.bth-account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bth-account-dashboard__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bth-account-dashboard__card:hover {
  background: #fff;
  border-color: rgba(185, 28, 28, 0.18);
  transform: translateY(-1px);
}

.bth-account-dashboard__card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

.bth-account-dashboard__card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #86868b;
}

/* Account details — view / edit */
.bth-account-details-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.bth-account-details-view {
  display: grid;
  gap: 0;
  max-width: 560px;
}

.bth-account-details-view[hidden] {
  display: none !important;
}

.bth-account-details-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: start;
}

.bth-account-details-row:last-child {
  border-bottom: none;
}

.bth-account-details-row__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
}

.bth-account-details-row__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
  word-break: break-word;
}

.bth-account-details-form[hidden] {
  display: none !important;
}

.bth-account-details-form .bth-account-details-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bth-account-details-cancel-btn {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}

.bth-account-details-cancel-btn:hover {
  background: #ececef !important;
  color: #1d1d1f !important;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm fieldset {
  border: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm legend {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
  padding: 0;
}

/* Account details / edit forms */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm .form-row,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields .form-row {
  margin-bottom: 16px;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm label,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm input.input-text,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm select,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields input.input-text,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fbfbfd;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-EditAccountForm input.input-text:focus,
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-address-fields input.input-text:focus {
  outline: none;
  border-color: #b91c1c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

/* Pagination */
body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-pagination {
  margin-top: 8px;
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-pagination .button {
  margin-right: 8px;
}

/* ── Order receipt modal ── */
body.bth-order-receipt-open {
  overflow: hidden !important;
}

.bth-order-receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bth-order-receipt-modal[hidden] {
  display: none !important;
}

.bth-order-receipt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bth-order-receipt-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: min(92vh, 920px);
  max-height: min(92dvh, 920px);
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.bth-order-receipt-modal__chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 12px 0;
  background: #f5f5f7;
}

.bth-order-receipt-modal__close,
.bth-order-receipt-modal__close:hover,
.bth-order-receipt-modal__close:focus,
.bth-order-receipt-modal__close:focus-visible,
.bth-order-receipt-modal__close:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-family: inherit !important;
  font-size: 0 !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bth-order-receipt-modal__close:hover,
.bth-order-receipt-modal__close:focus-visible {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

.bth-order-receipt-modal__close:active {
  background: #ebebed !important;
  color: #1d1d1f !important;
}

.bth-order-receipt-modal__close-icon {
  display: block;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: translateY(-1px);
  pointer-events: none;
}

.bth-order-receipt-modal__content {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}

.bth-order-receipt-modal__loading,
.bth-order-receipt-modal__error {
  padding: 48px 24px;
  text-align: center;
  font-size: 15px;
  color: #6e6e73;
}

.bth-order-receipt-modal__error {
  color: #991b1b;
}

.bth-order-receipt {
  max-width: none;
  margin: 0;
}

.bth-order-receipt__paper {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: none;
  padding: 24px 20px 20px;
  position: relative;
}

.bth-order-receipt__paper::before,
.bth-order-receipt__paper::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0,
    rgba(0, 0, 0, 0.12) 4px,
    transparent 4px,
    transparent 8px
  );
}

.bth-order-receipt__paper::before {
  top: 0;
}

.bth-order-receipt__paper::after {
  bottom: 0;
}

.bth-order-receipt__header {
  text-align: center;
  margin-bottom: 18px;
}

.bth-order-receipt__header .bth-order-receipt__logo {
  display: block;
  width: auto !important;
  max-width: 148px !important;
  height: 36px !important;
  max-height: 36px !important;
  margin: 0 auto 12px;
  object-fit: contain;
  object-position: center;
}

.bth-order-receipt__brand {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b91c1c;
}

.bth-order-receipt__title {
  margin: 0 0 16px !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1d1d1f !important;
}

.bth-order-receipt__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  text-align: left;
}

.bth-order-receipt__meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bth-order-receipt__meta-item dt {
  margin: 0;
  color: #86868b;
  font-weight: 500;
}

.bth-order-receipt__meta-item dd {
  margin: 0;
  font-weight: 600;
  color: #1d1d1f;
  text-align: right;
}

.bth-order-receipt__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: #f5f5f7;
  color: #6e6e73;
}

.bth-order-receipt__status--completed,
.bth-order-receipt__status--processing {
  background: #f0fdf4;
  color: #166534;
}

.bth-order-receipt__status--on-hold,
.bth-order-receipt__status--pending {
  background: #fffbeb;
  color: #92400e;
}

.bth-order-receipt__status--cancelled,
.bth-order-receipt__status--failed,
.bth-order-receipt__status--refunded {
  background: #fef2f2;
  color: #991b1b;
}

.bth-order-receipt__divider {
  height: 1px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.14) 0,
    rgba(0, 0, 0, 0.14) 5px,
    transparent 5px,
    transparent 10px
  );
}

.bth-order-receipt__body > p:first-child {
  display: none !important;
}

.bth-order-receipt .woocommerce-order-details__title,
.bth-order-receipt .woocommerce-column__title {
  margin: 0 0 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #86868b !important;
}

.bth-order-receipt .woocommerce-order-details {
  margin: 0 0 22px;
}

.bth-order-receipt .woocommerce-table--order-details {
  width: 100% !important;
  border: none !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.bth-order-receipt .woocommerce-table--order-details thead {
  display: none !important;
}

.bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td {
  padding: 10px 0 !important;
  border: none !important;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1) !important;
  vertical-align: top !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #1d1d1f !important;
  background: transparent !important;
}

.bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td.product-total {
  text-align: right !important;
  white-space: nowrap;
  font-weight: 600;
}

.bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td.product-name {
  padding-right: 16px !important;
}

.bth-order-receipt .woocommerce-table--order-details tbody tr.order_item .product-quantity {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #86868b;
  font-weight: 500;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr th,
.bth-order-receipt .woocommerce-table--order-details tfoot tr td {
  padding: 8px 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #6e6e73 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr th {
  text-align: left !important;
  padding-right: 16px !important;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr td {
  text-align: right !important;
  color: #1d1d1f !important;
  font-weight: 500 !important;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr:last-child th,
.bth-order-receipt .woocommerce-table--order-details tfoot tr:last-child td {
  padding-top: 14px !important;
  border-top: 2px solid #1d1d1f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 17px !important;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr:last-child td del {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  margin-bottom: 2px;
}

.bth-order-receipt .woocommerce-table--order-details tfoot tr:last-child td ins {
  text-decoration: none;
}

.bth-order-receipt .woocommerce-customer-details {
  margin: 0;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
}

.bth-order-receipt .woocommerce-columns--addresses,
.bth-order-receipt .woocommerce-columns.addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.bth-order-receipt .woocommerce-columns--addresses::before,
.bth-order-receipt .woocommerce-columns--addresses::after {
  content: none !important;
  display: none !important;
}

.bth-order-receipt .woocommerce-column {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bth-order-receipt .woocommerce-column address {
  margin: 0 !important;
  font-style: normal !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #6e6e73 !important;
}

.bth-order-receipt .woocommerce-customer-details--phone,
.bth-order-receipt .woocommerce-customer-details--email {
  margin-top: 6px;
}

.bth-order-receipt .order-again {
  display: none !important;
}

@media (max-width: 640px) {
  .bth-order-receipt-modal {
    padding: 0;
    align-items: stretch;
  }

  .bth-order-receipt-modal__dialog {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .bth-order-receipt-modal__content {
    padding: 8px;
  }

  .bth-order-receipt__paper {
    padding: 20px 16px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .bth-order-receipt__title {
    font-size: 20px !important;
  }

  .bth-order-receipt__meta-item {
    font-size: 13px;
  }

  .bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td,
  .bth-order-receipt .woocommerce-table--order-details tfoot tr th,
  .bth-order-receipt .woocommerce-table--order-details tfoot tr td {
    font-size: 13px !important;
    padding: 8px 0 !important;
  }

  .bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td.product-name {
    padding-right: 10px !important;
    word-break: break-word;
  }

  .bth-order-receipt .woocommerce-table--order-details tbody tr.order_item td.product-total {
    white-space: nowrap;
    min-width: 72px;
  }

  .bth-order-receipt .woocommerce-columns--addresses,
  .bth-order-receipt .woocommerce-columns.addresses {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .bth-order-receipt .woocommerce-column address {
    word-break: break-word;
  }
}

@media (max-width: 900px) {
  body.bth-apple-account.bth-account-is-logged-in .bth-account-main {
    padding-bottom: 32px;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-intro {
    display: block;
    text-align: left;
    padding: 16px 16px 4px;
    margin: 0;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-eyebrow,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-lead {
    display: none;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-title {
    font-size: 22px;
    line-height: 1.15;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-notices {
    margin: 0 0 10px;
    padding: 0 16px;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px 24px !important;
    box-sizing: border-box !important;
  }

  /* Override WC + critical grid — full-width stacked layout */
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce > .woocommerce-MyAccount-navigation,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce > .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    grid-column: auto !important;
    order: unset !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation {
    flex: 0 0 auto;
    padding: 4px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: visible !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li {
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-height: 44px;
    padding: 11px 14px !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation a:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1d1d1f !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(185, 28, 28, 0.1) !important;
    color: #b91c1c !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 4px !important;
    padding-top: 4px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #6e6e73 !important;
    background: transparent !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content {
    flex: 1 1 auto;
    padding: 20px 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
    overflow-x: hidden;
    color: #1d1d1f !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content > p:first-child:not(.form-row) {
    font-size: 15px;
    line-height: 1.5;
    color: #1d1d1f !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content h2,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content h3 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
    color: #1d1d1f !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-Addresses,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .u-columns.col2-set.addresses {
    grid-template-columns: 1fr !important;
  }

  /* Overview: nav already has links — hide duplicate cards */
  .bth-account-dashboard__grid {
    display: none !important;
  }

  .bth-account-dashboard__welcome {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1d1d1f !important;
  }

  .bth-account-dashboard__welcome strong {
    color: #1d1d1f !important;
  }

  .bth-account-dashboard__lead {
    display: none;
  }

  .bth-account-details-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bth-account-details-toolbar {
    margin-bottom: 14px;
  }
}

body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-MyAccount-content {
    padding: 18px 14px !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell-order-actions .button,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive__cell-order-actions .button {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive thead {
    display: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tbody,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tr,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tr {
    padding: 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive tr:last-child {
    border-bottom: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive td {
    padding: 6px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive td::before {
    content: attr(data-title) ': ';
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    display: inline-block;
    margin-right: 6px;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive__cell-order-actions,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell-order-actions {
    padding-top: 12px !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive__cell-order-actions::before,
  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before {
    display: none !important;
  }

  body.bth-apple-account.bth-account-is-logged-in .bth-account-wrap .woocommerce-orders-table:not(.shop_table_responsive) {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .bth-account-intro {
    padding-top: 32px;
  }

  .bth-account-lead {
    font-size: 15px;
  }

  body.bth-apple-account.bth-account-is-guest .bth-account-wrap #customer_login,
  body.bth-apple-account.bth-account-is-guest .bth-account-wrap .u-columns.col2-set {
    grid-template-columns: 1fr !important;
  }

  body.bth-apple-account.bth-account-signup-only .bth-account-wrap #customer_login {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.bth-apple-account.bth-account-is-guest .bth-account-wrap .woocommerce:not(:has(#customer_login)):not(:has(.woocommerce-MyAccount-navigation)) {
    padding: 28px 24px 32px;
  }
}
