/*
 * My Account — sign in, registration, password reset and the logged-in customer area.
 * Same language as cart/checkout: dark page, white 24px cards, 12px light fields, green pill CTA.
 * Loaded only on account pages (jp_account_enqueue_styles).
 */

body.woocommerce-account {
  --jp-ink: #111827;
  --jp-ink-2: #374151;
  --jp-ink-muted: #6b7280;
  --jp-line: #ecece8;
  --jp-field: #f7f7f5;
  --jp-field-line: #e5e7eb;
  --jp-ink-link: #0f7a35;
  --jp-card-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.woocommerce-account .jp-main {
  padding: clamp(1.75rem, 4vw, 3rem) 0 4rem;
}

/* ── Shared: fields, labels, buttons, notices ─────────────────────────── */
/*
 * White surfaces are Woo's own containers (no template overrides):
 *   auth card    = the shortcode's .woocommerce div on body.jp-auth-page / body.jp-auth-single
 *   content card = .woocommerce-MyAccount-content
 */

:is(body.jp-auth-page, body.jp-auth-single) .jp-content > .woocommerce,
body.woocommerce-account .woocommerce-MyAccount-content {
  color: var(--jp-ink);
}

/* Text links on white: readable green. (0,1,2): beats main.css `.jp-content a`, loses to every component rule. */
body.woocommerce-account:where(.jp-auth-page, .jp-auth-single) :where(.jp-content > .woocommerce) a,
body.woocommerce-account :where(.woocommerce-MyAccount-content) a {
  color: var(--jp-ink-link);
}

body.woocommerce-account .woocommerce .jp-btn--primary {
  color: var(--jp-black);
}

body.woocommerce-account .woocommerce form .form-row {
  margin: 0 0 1rem;
  padding: 0;
}

body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-account .woocommerce form .form-row .woocommerce-input-wrapper + span {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--jp-ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

body.woocommerce-account .woocommerce form .form-row label.checkbox,
body.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

body.woocommerce-account .woocommerce form .form-row .required {
  color: var(--jp-ink-muted);
  text-decoration: none;
  border: 0;
}

:is(body.jp-auth-page, body.jp-auth-single) .woocommerce .required {
  display: none; /* Every auth field is required; Woo keeps a screen-reader "Required". */
}

body.woocommerce-account .woocommerce form .form-row .optional {
  color: var(--jp-ink-muted);
  font-weight: 500;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  background: var(--jp-field);
  border: 1px solid var(--jp-field-line);
  border-radius: 12px;
  color: var(--jp-ink);
  font: 500 1rem/1.3 var(--jp-font);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.woocommerce-account .woocommerce form .form-row input.input-text::placeholder {
  color: #a3a3a3;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-account .woocommerce form .form-row select:focus {
  outline: none;
  background: #fff;
  border-color: var(--jp-ink-link); /* ≥3:1 on white (WCAG 1.4.11); the glow is decoration */
  box-shadow: 0 0 0 3px rgba(61, 255, 110, 0.3);
}

body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid input.input-text {
  border-color: #ef4444;
}

body.woocommerce-account .woocommerce form .form-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--jp-ink);
}

/* Password strength meter (registration, reset, account details). */
body.woocommerce-account .woocommerce-password-strength {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
}

body.woocommerce-account .woocommerce-password-strength.short { background: #fef2f2; color: #b91c1c; }
body.woocommerce-account .woocommerce-password-strength.bad { background: #fff7ed; color: #c2410c; }
body.woocommerce-account .woocommerce-password-strength.good { background: #fefce8; color: #a16207; }
body.woocommerce-account .woocommerce-password-strength.strong { background: #f0fdf4; color: #15803d; }

body.woocommerce-account .woocommerce-password-hint {
  display: block;
  margin: 0.4rem 0 0;
  color: var(--jp-ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.woocommerce-account .woocommerce button.button:disabled,
body.woocommerce-account .woocommerce button.button:disabled:hover,
body.woocommerce-account .woocommerce button.button.disabled,
body.woocommerce-account .woocommerce button.button.disabled:hover {
  padding: 0 1.75rem !important;
  background: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

/* Show-password toggle (Woo injects .password-input + button). */
body.woocommerce-account .woocommerce form .password-input {
  position: relative;
  display: block;
}

body.woocommerce-account .woocommerce form .password-input input.input-text {
  padding-right: 3rem;
}

body.woocommerce-account .woocommerce form .show-password-input {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--jp-ink-muted);
  cursor: pointer;
}

body.woocommerce-account .woocommerce form .show-password-input:hover {
  color: var(--jp-ink);
  background: rgba(17, 24, 39, 0.06);
}

/* Select2 / selectWoo (country, county) */
body.woocommerce-account .select2-container .select2-selection--single {
  height: 52px;
  border: 1px solid var(--jp-field-line);
  border-radius: 12px;
  background: var(--jp-field);
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 2.5rem 0 1rem;
  color: var(--jp-ink);
  line-height: 50px;
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__arrow {
  height: 50px;
  right: 0.6rem;
}

body.woocommerce-account .select2-container--focus .select2-selection--single,
body.woocommerce-account .select2-container--open .select2-selection--single {
  border-color: var(--jp-ink-link);
  box-shadow: 0 0 0 3px rgba(61, 255, 110, 0.3);
}

/* Primary actions on every account form: full green pill, like Place order. */
body.woocommerce-account .woocommerce form .button[type="submit"] {
  min-height: 52px;
  padding: 0 1.75rem !important;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 0 24px var(--jp-green-glow);
  cursor: pointer;
}

body.woocommerce-account .woocommerce form .button[type="submit"]:not(:disabled):hover {
  background: #52ff82 !important;
  transform: translateY(-1px);
}

/* Notices: every account notice sits on a white card (auth card or content card). */
body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info,
body.woocommerce-account .woocommerce .woocommerce-error {
  list-style: none;
  margin: 0 0 1.25rem !important;
  padding: 0.85rem 1rem !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 3px solid #22c55e !important;
  border-radius: 12px !important;
  color: var(--jp-ink) !important;
  font-size: 0.93rem;
}

body.woocommerce-account .woocommerce .woocommerce-info {
  background: var(--jp-field) !important;
  border-color: var(--jp-field-line) !important;
  border-left-color: var(--jp-ink) !important;
}

body.woocommerce-account .woocommerce .woocommerce-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  border-left-color: #ef4444 !important;
}

body.woocommerce-account .woocommerce .woocommerce-error li {
  margin: 0;
}

body.woocommerce-account .woocommerce .woocommerce-message .button,
body.woocommerce-account .woocommerce .woocommerce-info .button {
  color: var(--jp-ink-link) !important;
}

/* Status pills */
.jp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--jp-ink-2, #374151);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.jp-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.jp-status--completed { background: #dcfce7; color: #15803d; }
.jp-status--processing { background: #dbeafe; color: #1d4ed8; }
.jp-status--on-hold { background: #fef3c7; color: #b45309; }
.jp-status--pending { background: #ffedd5; color: #c2410c; }
.jp-status--cancelled,
.jp-status--failed { background: #fee2e2; color: #b91c1c; }
.jp-status--refunded { background: #f3f4f6; color: #4b5563; }

.jp-icon {
  flex: none;
  display: block;
}

/* ── Sign in / create account (Woo's form-login.php, decorated through its hooks) ── */

/* The card is Woo's own .woocommerce wrapper; the brand panel is pinned to its left 46%. */
body.jp-auth-page .jp-content > .woocommerce {
  --jp-auth-pad: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  max-width: 1000px;
  min-height: 600px;
  margin: 0 auto;
  padding: var(--jp-auth-pad) var(--jp-auth-pad) var(--jp-auth-pad) calc(46% + var(--jp-auth-pad));
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--jp-card-shadow);
}

/* Lost password, new password, "check your inbox": one narrow card. */
body.jp-auth-single .jp-content > .woocommerce {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--jp-card-shadow);
}

/* Heading block first, whatever order Woo prints the notice in. */
body.jp-auth-single .jp-content > .woocommerce > .jp-auth__back { order: -3; }
body.jp-auth-single .jp-content > .woocommerce > .jp-auth__badge { order: -2; }
body.jp-auth-single .jp-content > .woocommerce > .jp-auth__title { order: -1; margin-bottom: 1rem; }

.jp-auth__brand {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 46%;
  padding: var(--jp-auth-pad);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(61, 255, 110, 0.16), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(61, 255, 110, 0.08), transparent 60%),
    #111;
  color: var(--jp-text);
}

.jp-auth__mascot {
  width: 84px;
  height: 84px;
  margin: 0 0 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(61, 255, 110, 0.2));
}

.jp-auth__pitch {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.jp-auth__pitch span {
  display: block;
  color: var(--jp-green);
}

.jp-auth__perks {
  display: grid;
  gap: 1.15rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.jp-auth__perks li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  color: var(--jp-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.jp-auth__perks strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--jp-text);
  font-size: 0.97rem;
  font-weight: 600;
}

.jp-auth__perk-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(61, 255, 110, 0.22);
  background: rgba(61, 255, 110, 0.08);
  color: var(--jp-green);
}

/* Segmented tabs driven by two radios — no JS. */
.jp-auth__switch {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.jp-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 1.75rem;
  padding: 4px;
  border-radius: 999px;
  background: #f1f1ee;
}

.jp-auth__tabs label {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #4b5563; /* ≈6.7:1 on the #f1f1ee track; --jp-ink-muted is only 4.27:1 here */
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.jp-auth__tabs label:hover {
  color: var(--jp-ink);
}

#jp-auth-tab-login:checked ~ .jp-auth__tabs label[for="jp-auth-tab-login"],
#jp-auth-tab-register:checked ~ .jp-auth__tabs label[for="jp-auth-tab-register"] {
  background: #fff;
  color: var(--jp-ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12), 0 1px 2px rgba(17, 24, 39, 0.06);
}

#jp-auth-tab-login:focus-visible ~ .jp-auth__tabs label[for="jp-auth-tab-login"],
#jp-auth-tab-register:focus-visible ~ .jp-auth__tabs label[for="jp-auth-tab-register"] {
  outline: 2px solid var(--jp-ink-link);
  outline-offset: 2px;
}

/* Woo's two columns (#customer_login .u-column1/.u-column2) are the two tab panels. */
body.jp-auth-page #customer_login::before,
body.jp-auth-page #customer_login::after {
  content: none;
  display: none;
}

body.jp-auth-page #customer_login .u-column1,
body.jp-auth-page #customer_login .u-column2 {
  float: none;
  width: auto;
  max-width: none;
}

#jp-auth-tab-login:checked ~ #customer_login .u-column2,
#jp-auth-tab-register:checked ~ #customer_login .u-column1 {
  display: none;
}

/* Woo's "Login" / "Register" headings stay for screen readers; tabs + visible title carry them. */
body.jp-auth-page .jp-content > .woocommerce h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.jp-auth__title {
  margin: 0 0 0.35rem;
  color: var(--jp-ink);
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.jp-auth__lead,
body.jp-auth-single .woocommerce form.lost_reset_password > p:first-child,
body.jp-auth-single .jp-content > .woocommerce > p {
  margin: 0 0 1.5rem;
  color: var(--jp-ink-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

:is(body.jp-auth-page, body.jp-auth-single) .woocommerce form.login,
:is(body.jp-auth-page, body.jp-auth-single) .woocommerce form.register,
:is(body.jp-auth-page, body.jp-auth-single) .woocommerce form.lost_reset_password {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Login form: [remember me … forgot password?] row, then a full-width button. Woo puts the
   checkbox and the button in one <p class="form-row">; display:contents lets the grid place them. */
body.jp-auth-page .woocommerce form.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
}

body.jp-auth-page .woocommerce form.login > * {
  grid-column: 1 / -1;
}

body.jp-auth-page .woocommerce form.login > p.form-row:not(.woocommerce-form-row) {
  display: contents;
}

body.jp-auth-page .woocommerce form.login > p.form-row:not(.woocommerce-form-row)::before,
body.jp-auth-page .woocommerce form.login > p.form-row:not(.woocommerce-form-row)::after {
  content: none; /* Woo's clearfix pseudos would become empty grid items */
}

body.jp-auth-page .woocommerce form.login .woocommerce-form-login__rememberme {
  order: 1;
  grid-column: 1;
  margin: 0;
  color: var(--jp-ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

body.jp-auth-page .woocommerce form.login > .lost_password {
  order: 2;
  grid-column: 2;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

body.jp-auth-page .woocommerce form.login .woocommerce-form-login__submit {
  order: 3;
  grid-column: 1 / -1;
  float: none;
  margin: 1.4rem 0 0;
}

body.jp-auth-page .woocommerce form.login > .jp-auth__alt {
  order: 4;
}

:is(body.jp-auth-page, body.jp-auth-single) .woocommerce form .button[type="submit"] {
  width: 100%;
}

/* Lost password: Woo floats its single field at half width. */
body.jp-auth-single .woocommerce form.lost_reset_password .form-row {
  float: none;
  width: 100%;
}

body.woocommerce-account .woocommerce .jp-auth__link {
  font-weight: 600;
  text-decoration: none;
}

body.woocommerce-account .woocommerce .jp-auth__link:hover {
  text-decoration: underline;
}

.jp-auth__alt {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jp-line);
  color: var(--jp-ink-muted);
  font-size: 0.93rem;
  text-align: center;
}

/* "A link to set a new password will be sent…" (registration with emailed activation link). */
body.jp-auth-page .woocommerce form.register > p:not([class]) {
  margin: 0 0 1.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: var(--jp-field);
  color: var(--jp-ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Woo registration privacy text */
body.jp-auth-page .woocommerce-privacy-policy-text {
  margin: 0 0 1.25rem;
  color: var(--jp-ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

body.jp-auth-page .woocommerce-privacy-policy-text p {
  margin: 0;
}

.jp-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

body.woocommerce-account .woocommerce .jp-auth__back {
  color: var(--jp-ink-muted);
}

body.woocommerce-account .woocommerce .jp-auth__back:hover {
  color: var(--jp-ink);
}

.jp-auth__back .jp-icon {
  width: 16px;
  height: 16px;
}

.jp-auth__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 0 1.1rem;
  border-radius: 16px;
  background: #111;
  color: var(--jp-green);
}

.jp-auth__cta {
  align-self: stretch;
  min-height: 52px;
}

/* ── Logged-in shell ──────────────────────────────────────────────────── */

.jp-account__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 0.5rem;
}

.jp-account__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--jp-green);
  color: var(--jp-black);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 28px var(--jp-green-glow);
  text-transform: uppercase;
}

.jp-account__heading {
  min-width: 0;
}

.jp-account__heading .jp-eyebrow {
  margin: 0 0 0.2rem;
}

.jp-account__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.jp-account__email {
  margin: 0.2rem 0 0;
  overflow: hidden;
  color: var(--jp-muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.woocommerce-account .jp-account__shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--jp-border);
  border-radius: 999px;
  color: var(--jp-text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

body.woocommerce-account .jp-account__shop:hover {
  border-color: rgba(61, 255, 110, 0.5);
  color: var(--jp-green);
}

.jp-account__shop .jp-icon {
  width: 16px;
  height: 16px;
}

/* Logged-in shell: Woo's .woocommerce wrapper is the grid — header row, then nav | content. */
body.woocommerce-account.logged-in:not(.jp-auth-single) .jp-content > .woocommerce {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

body.woocommerce-account.logged-in:not(.jp-auth-single) .jp-content > .woocommerce::before,
body.woocommerce-account.logged-in:not(.jp-auth-single) .jp-content > .woocommerce::after {
  content: none;
  display: none;
}

/* Woo floats both columns (30% / 68%); the grid owns layout now. */
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

/* Woo's dashboard intro ("Hello … From your account dashboard you can …") — replaced by the
   overview panels printed on woocommerce_account_dashboard. */
body.woocommerce-dashboard .woocommerce-MyAccount-content > p:nth-of-type(-n+2) {
  display: none;
}

.woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--jp-header-h) + 1.5rem);
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  color: #c9c9c9;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Nav icons from Woo's stable endpoint classes (…-navigation-link--{endpoint}); no template. */
body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--jp-nav-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--jp-nav-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")) center / contain no-repeat;
}

.woocommerce-MyAccount-navigation-link--dashboard { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7 12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--payment-methods { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --jp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--jp-surface);
  color: var(--jp-text);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: rgba(61, 255, 110, 0.1);
  color: var(--jp-green);
  font-weight: 600;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--jp-border);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--jp-muted);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.woocommerce-MyAccount-content {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--jp-card-shadow);
  font-size: 0.97rem;
}

.woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content legend {
  margin: 0 0 1rem;
  color: var(--jp-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.woocommerce-MyAccount-content p {
  color: var(--jp-ink-2);
}

/* ── Overview ─────────────────────────────────────────────────────────── */

.jp-dash {
  display: grid;
  gap: 2rem;
}

.jp-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--jp-line);
  border-radius: 18px;
  background: var(--jp-field);
  color: var(--jp-ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__stat:hover {
  border-color: #d4d4cf;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transform: translateY(-1px);
}

.jp-dash__stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: #fff;
  color: var(--jp-ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.jp-dash__stat-label {
  color: var(--jp-ink-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jp-dash__stat-value {
  margin-top: 0.3rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.jp-dash__stat-value--text {
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jp-dash__stat-value--status {
  font-size: 1rem;
  margin-top: 0.45rem;
}

.jp-dash__stat-sub {
  margin-top: 0.15rem;
  color: var(--jp-ink-muted);
  font-size: 0.85rem;
}

.jp-dash__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.jp-dash__section-head h2 {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__more {
  font-size: 0.9rem;
  font-weight: 600;
}

.jp-order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--jp-line);
}

.jp-order-list li {
  border-bottom: 1px solid var(--jp-line);
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-order-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 7rem 20px;
  gap: 1rem;
  align-items: center;
  margin: 0 -0.75rem;
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  color: var(--jp-ink);
  transition: background 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-order-list__row:hover {
  background: var(--jp-field);
}

.jp-order-list__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jp-order-list__main strong {
  font-size: 1rem;
}

.jp-order-list__main span {
  color: var(--jp-ink-muted);
  font-size: 0.86rem;
}

.jp-order-list__total {
  font-weight: 700;
  text-align: right;
}

.jp-order-list__go {
  color: #9ca3af;
}

.jp-order-list__go .jp-icon {
  width: 18px;
  height: 18px;
}

.jp-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border: 1px dashed #d4d4cf;
  border-radius: 18px;
  text-align: center;
}

.jp-empty__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--jp-field);
  color: var(--jp-ink-muted);
}

.jp-empty p {
  margin: 0;
  color: var(--jp-ink-muted);
}

.jp-empty p strong {
  display: block;
  color: var(--jp-ink);
  font-size: 1.05rem;
}

.jp-dash__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--jp-line);
  border-radius: 16px;
  color: var(--jp-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__link:hover {
  border-color: #d4d4cf;
  background: var(--jp-field);
}

.jp-dash__link-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #111;
  color: var(--jp-green);
}

.jp-dash__link-text {
  flex: 1;
  min-width: 0;
  color: var(--jp-ink-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.jp-dash__link-text strong {
  display: block;
  color: var(--jp-ink);
  font-size: 0.97rem;
}

.jp-dash__link > .jp-icon {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

/* ── Tables: orders, payment methods, order details ───────────────────── */

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  margin: 0 0 1.5rem;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
  color: var(--jp-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
  padding: 0.95rem 0.75rem;
  border: 0;
  border-top: 1px solid var(--jp-line);
  background: transparent;
  color: var(--jp-ink);
  vertical-align: middle;
  text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
  padding-top: 0;
  border-top: 0;
  color: var(--jp-ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th:first-child,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td:first-child {
  padding-left: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th:last-child,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td:last-child {
  padding-right: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a {
  color: var(--jp-ink);
  font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total {
  color: var(--jp-ink-2);
  font-size: 0.93rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total .amount {
  color: var(--jp-ink);
  font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__header-order-actions {
  text-align: right !important;
  white-space: nowrap;
}

/* Secondary buttons inside the card: quiet outline pills. */
body.woocommerce-account .woocommerce-MyAccount-content table .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .edit,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button,
body.woocommerce-account .woocommerce-MyAccount-content .order-again .button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 0 0.35rem;
  padding: 0 0.95rem !important;
  border: 1px solid var(--jp-field-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--jp-ink) !important;
  font-size: 0.85rem;
  font-weight: 600 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

body.woocommerce-account .woocommerce-MyAccount-content table .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .edit:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .order-again .button:hover {
  border-color: var(--jp-ink) !important;
  background: #fff !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table .button.pay {
  border-color: var(--jp-green) !important;
  background: var(--jp-green) !important;
  color: var(--jp-black) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .woocommerce-button--next {
  margin-left: auto;
}

/* Empty orders: Woo prints an info notice with a "Browse products" button. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
  order: 2;
}

/* Order view */
body.woocommerce-account .woocommerce-MyAccount-content .jp-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: var(--jp-ink-muted);
  font-size: 0.93rem;
}

.jp-order-meta__count::before {
  content: "·";
  margin-right: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details,
body.woocommerce-account .woocommerce-MyAccount-content .jp-pos-business-documents {
  margin: 1.75rem 0 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 1.1rem;
  font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-total,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th.product-total,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td {
  text-align: right;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details .product-name a {
  color: var(--jp-ink);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details .product-quantity {
  color: var(--jp-ink-muted);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details .wc-item-meta {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--jp-ink-muted);
  font-size: 0.85rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta li,
body.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta p {
  display: inline;
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns--addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns--addresses::after,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
  content: none;
  display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns--addresses .woocommerce-column,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--jp-line);
  border-radius: 18px;
  background: var(--jp-field);
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--jp-ink-2);
  font-style: normal;
  line-height: 1.6;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details--phone,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details--email {
  margin: 0.35rem 0 0;
  color: var(--jp-ink-muted);
  font-size: 0.9rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  color: var(--jp-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-content .order-again {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .order-again .button {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate {
  margin: 0 0 0.6rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--jp-ink);
  border-radius: 12px;
  background: var(--jp-field);
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate-meta {
  margin: 0 0 0.25rem;
  color: var(--jp-ink-muted);
  font-size: 0.82rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate-description p {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .jp-pos-business-documents {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--jp-line);
  border-radius: 18px;
}

body.woocommerce-account .woocommerce-MyAccount-content .jp-pos-business-documents__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .jp-pos-business-documents__pending {
  margin: 0;
  color: var(--jp-ink-muted);
}

/* ── Addresses ────────────────────────────────────────────────────────── */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-content > p:first-child,
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::after {
  content: none;
  display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  float: none;
  margin: 0;
  font-size: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  float: none;
  margin: 0;
}

/* Edit address + account details: two-column field grid. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > *,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > * {
  grid-column: 1 / -1;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .form-row-first {
  grid-column: 1;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-last,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .form-row-last {
  grid-column: 2;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row {
  float: none;
  width: auto;
}

body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .clear {
  display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content #account_display_name_description {
  display: block;
  margin-top: 0.4rem;
  color: var(--jp-ink-muted);
  font-size: 0.83rem;
}

body.woocommerce-account .woocommerce-MyAccount-content #account_display_name_description em {
  font-style: normal;
}

body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset {
  margin: 1rem 0 1.25rem;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--jp-line);
}

body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset legend {
  float: left;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset legend + * {
  clear: both;
}

body.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields > p:last-child,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > p:last-of-type {
  margin: 0.5rem 0 0;
}

/* Saved payment methods / add method (Stripe) */
body.woocommerce-account .woocommerce-MyAccount-content #add_payment_method #payment,
body.woocommerce-account .woocommerce-MyAccount-content #payment {
  border-radius: 18px;
  background: var(--jp-field);
}

body.woocommerce-account .woocommerce-MyAccount-content #add_payment_method #payment div.payment_box {
  border-radius: 12px;
  background: #fff;
  color: var(--jp-ink-2);
}

body.woocommerce-account .woocommerce-MyAccount-content #add_payment_method #payment div.payment_box::before {
  display: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* Sign-in card: one column; the brand panel drops under the form, full bleed. */
  body.jp-auth-page .jp-content > .woocommerce {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    min-height: 0;
    padding: var(--jp-auth-pad);
  }

  .jp-auth__brand {
    position: static;
    order: 99;
    width: auto;
    margin: 2rem calc(-1 * var(--jp-auth-pad)) calc(-1 * var(--jp-auth-pad));
  }

  .jp-auth__mascot,
  .jp-auth__pitch {
    display: none;
  }

  body.woocommerce-account.logged-in:not(.jp-auth-single) .jp-content > .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .woocommerce-MyAccount-navigation {
    position: static;
    margin: 0 -1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .woocommerce-MyAccount-navigation::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 0.4rem;
    padding: 0 1rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--jp-border);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    width: 16px;
    height: 16px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    border-color: rgba(61, 255, 110, 0.35);
  }

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

  .jp-dash__stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .jp-dash__stats > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Orders table → stacked rows. Scoped to orders: payment-methods keeps Woo's labelled responsive rows. */
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead {
    display: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--jp-line);
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:first-child {
    padding-top: 0;
    border-top: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr th,
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr td {
    display: block;
    padding: 0 !important;
    border: 0;
    text-align: left !important; /* woocommerce-smallscreen.css forces right !important */
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr td::before,
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr th::before {
    content: none;
  }

  /* #number … total / date … status / actions */
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number { grid-area: 1 / 1; }
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total { grid-area: 1 / 2; }
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-date { grid-area: 2 / 1; color: var(--jp-ink-muted); }
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status { grid-area: 2 / 2; }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status,
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    justify-self: end;
    text-align: right !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
    grid-area: 3 / 1 / auto / -1;
    margin-top: 0.4rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
    margin: 0 0.35rem 0 0;
  }
}

@media (max-width: 640px) {
  .jp-account__head {
    flex-wrap: wrap;
  }

  body.woocommerce-account .jp-account__shop {
    display: none;
  }

  .jp-account__avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-content a.jp-order-list__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.4rem;
  }

  .jp-order-list__go {
    display: none;
  }

  .jp-order-list .jp-status {
    grid-row: 2;
  }

  .jp-order-list__total {
    grid-row: 1;
    grid-column: 2;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns--addresses,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
  body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-first,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-last,
  body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .form-row-first,
  body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .form-row-last {
    grid-column: 1;
  }

  .jp-dash__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Phone: one row per stat — icon left, label + value right. */
  body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__stat {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
  }

  .jp-dash__stat-icon {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .jp-dash__stat > :not(.jp-dash__stat-icon) {
    grid-column: 2;
  }

  .jp-dash__stat-value {
    margin-top: 0.1rem;
    font-size: 1.3rem;
  }

  .jp-dash__stat-value--status {
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account .woocommerce-MyAccount-content a.jp-dash__stat,
  body.woocommerce-account .woocommerce form .button[type="submit"] {
    transition: none;
    transform: none;
  }
}
