/* =========================================================================
 * Aesthetic Peptides — My Account (Phase 7).
 *
 * The source has NO account screens, so the look is derived from its measured
 * tokens (source-cdp/design-tokens.json) and its real app.css component
 * language, not invented:
 *   panel     -> linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012))
 *                + 1px var(--line) + var(--radius) 10px   [app.css .panel]
 *   panel h2  -> Georgia 20px/700 with a mono "01" chip   [app.css .panel h2 .n]
 *   micro     -> mono 10.5px, .26em tracking, uppercase, accent  [.eyebrow]
 *   input     -> 44px, rgba(3,5,11,.5), 1px var(--line-2), focus 3px accent-soft
 *   btn       -> 44px, radius 8, gradient(--accent-2 -> --accent) on #060b18 ink
 *   price     -> mono 17px/800
 *
 * Every var() carries a literal fallback so this file is correct whether or not
 * P1's port of app.css is loaded first.
 *
 * ⛔ LOCKED STANDARDS #1 — THE SQUEEZED-RAIL BUG.
 * WooCommerce's woocommerce-layout.css ships
 *     .woocommerce-account .woocommerce-MyAccount-navigation {float:left;width:30%}
 * at specificity (0,2,0). A single-class rule such as `.ap-acct__rail{...}`
 * LOSES to it, the rail leaves grid flow, shrink-to-fits to ~84px and the
 * labels wrap one word per line (icons-only is the end state). It is
 * neutralised below at (0,3,0) with float:none + width:auto, and the rail is
 * then PINNED by grid-template-columns with min-width:0 on the content column.
 * Woo's own smallscreen reset only starts at <=768px, so the 769-991px band has
 * nothing but these rules holding the layout — that is the band that is always
 * missed. Checked at 1440 / 992 / 900 / 820 / 390.
 * ========================================================================= */

/* ---------------------------------------------------------------- shell --- */
/* ⚠️ woocommerce.php calls `the_content()` BARE — no `.wrap`, no `.section`,
 * by design (Woo screens ship their own container, LOCKED #1). So the account
 * shell has to carry the source's own `.wrap` geometry itself, or /my-account/
 * renders full-bleed from edge to edge. This is the exact value from
 * ap-tokens.css `.wrap`, not an approximation.
 * If P5 ever wraps woocommerce.php's output in a `.wrap`, drop these two lines
 * rather than living with nested gutters.
 */
.ap-acct {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
  padding-block: 28px 56px;
}

.ap-acct__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 18px;
  color: var(--dim, #586071);
}
.ap-acct__crumbs li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--dim, #586071);
}
.ap-acct__crumbs a {
  color: var(--muted, #7d879c);
}
.ap-acct__crumbs a:hover {
  color: var(--accent-2, #a9caff);
}
.ap-acct__crumbs span {
  color: var(--accent, #5b8fe0);
}

.ap-acct__title {
  margin: 0 0 10px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text, #eef2fb);
}

/* ------------------------------------------------- the two-column grid --- */
.ap-acct .ap-acct__grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  column-gap: 30px;
  row-gap: 24px;
  align-items: start;
  margin-top: 26px;
}

/* (0,3,0) — beats Woo's (0,2,0) float:left/width:30%. Do not weaken. */
.woocommerce-account .ap-acct .woocommerce-MyAccount-navigation,
.woocommerce-account .ap-acct__grid .woocommerce-MyAccount-navigation {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
}
.woocommerce-account .ap-acct .woocommerce-MyAccount-content,
.woocommerce-account .ap-acct__grid .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  min-width: 0;        /* content column shrinks instead of overflowing */
  margin: 0;
  padding: 0;
  grid-column: 2;
  grid-row: 1;
}

/* ---------------------------------------------------------------- rail --- */
/* ⚠️ STICKY OFFSET — measured, and deliberately NOT announce+header.
 * P1 measured announce+header = 113.6px at 1440/820 and 133.9px at 390 (the
 * announce string wraps to two lines on mobile). Those are the correct numbers
 * for the INITIAL, UNSCROLLED position — but `top` on a sticky element only
 * takes effect once the element would scroll past that threshold, and by then
 * the announce bar has scrolled away: `.announce` in ap-chrome.css has NO
 * position rule, only `.top` is `position: sticky; top: 0`. So the sticky
 * overlay height is the HEADER ALONE — `.top-row { height: 72px }` plus its 1px
 * bottom border = 73px, and that rule is never overridden at any of
 * ap-chrome.css's 1100/1000/900/720 breakpoints (which is why P1 measured
 * 72.7 at all three viewports).
 *
 * Using 113.6 here would leave a 41px gap between the sticky header and the
 * pinned rail while scrolled. Using 133.9 under 720px would be inert anyway:
 * below 767px the rail is `position: static` (see the stack rule at the end of
 * this file), so the mobile announce-wrap never reaches this property.
 *
 * Therefore NO resize observer and NO JS is shipped: the announce bar's height
 * is not an input to this value, so future copy changes in the bar cannot
 * break it. `--ap-sticky-h` is honoured if anything ever defines it (it must be
 * the STICKY height only, not announce+header); nothing is defined globally here.
 */
.ap-acct__rail {
  position: sticky;
  top: calc(var(--ap-sticky-h, 73px) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius, 10px);
  overflow: hidden;
}
.ap-acct__rail-head {
  padding: 13px 17px 11px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent, #5b8fe0);
}
.ap-acct__rail ul {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.ap-acct__rail li {
  margin: 0;
}
.ap-acct__rail li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-s, 7px);
  color: #95a3bd;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;  /* labels NEVER wrap — symptom #2 of the rail bug */
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ap-acct__rail-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-acct__rail .ap-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--dim, #586071);
  transition: color 0.15s;
}
.ap-acct__rail li a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line, rgba(255, 255, 255, 0.075));
  color: var(--text, #eef2fb);
}
.ap-acct__rail li a:hover .ap-ico {
  color: var(--accent-2, #a9caff);
}
.ap-acct__rail li.is-active a {
  background: var(--accent-soft, rgba(91, 143, 224, 0.12));
  border-color: rgba(91, 143, 224, 0.32);
  color: var(--accent-2, #a9caff);
}
.ap-acct__rail li.is-active a .ap-ico {
  color: var(--accent, #5b8fe0);
}
.ap-acct__rail li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.075));
}
.ap-acct__rail li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: var(--bad, #f87171);
}
.ap-acct__rail li.woocommerce-MyAccount-navigation-link--customer-logout a:hover .ap-ico {
  color: var(--bad, #f87171);
}

/* -------------------------------------------------------------- panels --- */
/* The base `.panel`, `.panel h2`, `.panel h2 .n` and `.callout` rules live in
   ap-tokens.css (the source's own primitives, ported at P1). Everything below
   is a DELTA for the account screens only — the box itself is not redefined. */
.ap-panel {
  padding: 24px 26px 26px;
}
.ap-panel + .ap-panel,
.ap-panel + .ap-acct__tiles,
.ap-acct__tiles + .callout {
  margin-top: 16px;
}
.ap-panel__h {
  margin-bottom: 18px;
  line-height: 1.3;
}
.ap-panel__n {
  flex: 0 0 auto;
}

/* ----------------------------------------------------------- dashboard --- */
.ap-acct__hello {
  margin: 0 0 8px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text, #eef2fb);
}
.ap-acct__intro {
  margin: 0 0 22px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted, #7d879c);
}
.ap-acct__intro--auth {
  margin: 0 auto 28px;
  text-align: center;
}
.ap-acct__muted {
  color: var(--dim, #586071);
}

.ap-acct__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.ap-acct__info-col h3 {
  margin: 0 0 9px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent, #5b8fe0);
}
.ap-acct__info-col p,
.ap-acct__info-col address {
  margin: 0 0 3px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  color: var(--body, #a9b4c9);
}
.ap-acct__email {
  word-break: break-word;
  color: var(--text, #eef2fb) !important;
}
.ap-acct__info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px !important;
}
.ap-acct__info-links a {
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-2, #a9caff);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.ap-acct__info-links a:hover {
  color: #fff;
}

.ap-acct__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ap-acct__tiles li {
  display: flex;
}
.ap-acct__tiles a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius, 10px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ap-acct__tiles a:hover {
  border-color: rgba(91, 143, 224, 0.42);
  box-shadow: var(--glow, 0 0 0 1px rgba(91, 143, 224, 0.35), 0 18px 60px rgba(20, 48, 120, 0.28));
  transform: translateY(-3px);
}
.ap-acct__tiles .ap-ico {
  width: 22px;
  height: 22px;
  color: var(--accent, #5b8fe0);
}
.ap-acct__tile-t {
  display: block;
  margin-top: 10px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #eef2fb);
}
.ap-acct__tile-d {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #7d879c);
}

/* `.callout` itself is an ap-tokens.css primitive; it styles descendant svg via
   `stroke`, and our icons use stroke="currentColor", so only the box metrics of
   the inline icon need setting. */
.callout .ap-ico {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 1px;
}
.ap-acct__note {
  margin-top: 16px;
}

/* ------------------------------------------------------ orders screen ---- */
.ap-acct__table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius, 10px);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--panel, rgba(255, 255, 255, 0.025));
  font-size: 14px;
}
.ap-acct__table th,
.ap-acct__table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  text-align: left;
  vertical-align: middle;
  line-height: 20px;
  color: var(--body, #a9b4c9);
}
.ap-acct__table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted, #7d879c);
}
.ap-acct__table tbody tr:last-child th,
.ap-acct__table tbody tr:last-child td {
  border-bottom: 0;
}
.ap-acct__table tbody tr:hover {
  background: rgba(91, 143, 224, 0.045);
}
.ap-acct__ordno {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-weight: 700;
  color: var(--accent-2, #a9caff);
}
.ap-acct__ordno:hover {
  color: #fff;
}
.ap-acct__otot,
.ap-acct__price {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text, #eef2fb);
}
.ap-acct__table .woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

/* Status pill — built from the source's `.tag` box + `.stock` colour set. */
.ap-ostatus {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.15));
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #dbe8ff;
}
.ap-ostatus--pending,
.ap-ostatus--on-hold {
  background: var(--warn-soft, rgba(251, 191, 36, 0.1));
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}
.ap-ostatus--processing {
  background: var(--accent-soft, rgba(91, 143, 224, 0.12));
  border-color: rgba(91, 143, 224, 0.4);
  color: var(--accent-2, #a9caff);
}
.ap-ostatus--completed {
  background: rgba(169, 202, 255, 0.12);
  border-color: rgba(169, 202, 255, 0.42);
  color: var(--ok, #a9caff);
}
.ap-ostatus--cancelled,
.ap-ostatus--failed,
.ap-ostatus--refunded {
  background: var(--bad-soft, rgba(248, 113, 113, 0.1));
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.ap-acct__pager {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.ap-acct__empty {
  padding: 50px 26px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius, 10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  text-align: center;
}
.ap-acct__empty .ap-ico {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  color: var(--dim, #586071);
}
.ap-acct__empty-t {
  margin: 16px 0 6px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--text, #eef2fb);
}
.ap-acct__empty-d {
  margin: 0 auto 22px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #7d879c);
}

/* --------------------------------------------------------- view order --- */
.ap-acct__ometa {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ap-acct__ometa li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.ap-acct__ometa .eyebrow {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent, #5b8fe0);
}
.ap-acct__ometa strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text, #eef2fb);
  overflow-wrap: anywhere;
}

.ap-acct__notes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ap-acct__notes li {
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.075));
}
.ap-acct__notes li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.ap-acct__notes .meta {
  margin: 0 0 4px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim, #586071);
}
.ap-acct__notes .description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--body, #a9b4c9);
}

/* Woo's own order-details scaffolding inside view-order. STANDARDS #12 wants
   ONE designed screen, so it gets the same panel language as everything else —
   the checkout plugin's pay card sits in the middle of this. */
.ap-acct__odetails {
  margin-top: 16px;
}
.ap-acct__odetails h2,
.ap-acct__odetails h3 {
  margin: 26px 0 12px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text, #eef2fb);
}
.ap-acct__odetails table.shop_table {
  width: 100%;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius, 10px);
  overflow: hidden;
  background: var(--panel, rgba(255, 255, 255, 0.025));
  font-size: 14px;
}
.ap-acct__odetails table.shop_table th,
.ap-acct__odetails table.shop_table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  text-align: left;
  line-height: 20px;
  color: var(--body, #a9b4c9);
}
.ap-acct__odetails table.shop_table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #7d879c);
}
.ap-acct__odetails table.shop_table tfoot th,
.ap-acct__odetails table.shop_table tfoot td {
  color: var(--text, #eef2fb);
  font-weight: 650;
}
.ap-acct__odetails table.shop_table tfoot tr:last-child th,
.ap-acct__odetails table.shop_table tfoot tr:last-child td {
  border-bottom: 0;
}
.ap-acct__odetails .woocommerce-Price-amount {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
}
.ap-acct__odetails address,
.ap-acct__odetails .woocommerce-customer-details address {
  padding: 16px 18px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius-s, 7px);
  background: var(--panel, rgba(255, 255, 255, 0.025));
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  color: var(--body, #a9b4c9);
}
/* Woo hard-codes an <hr> between the order table and the addresses. */
.ap-acct__odetails hr {
  border: 0;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  margin: 22px 0;
}

/* --------------------------------------------------------------- forms --- */
.ap-acct__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
}
.ap-acct__fields > p,
.ap-acct__fields > .form-row {
  margin: 0 0 14px;
  min-width: 0;
}
.ap-acct__fields > p.ap-acct__row--wide,
.ap-acct__fields > .form-row-wide,
.ap-acct__fields > #billing_address_1_field,
.ap-acct__fields > #billing_address_2_field,
.ap-acct__fields > #billing_company_field,
.ap-acct__fields > #billing_country_field,
.ap-acct__fields > #shipping_address_1_field,
.ap-acct__fields > #shipping_address_2_field,
.ap-acct__fields > #shipping_company_field,
.ap-acct__fields > #shipping_country_field {
  grid-column: 1 / -1;
}

/* Labels are the source's `.field label`: mono, uppercase, .12em. */
.ap-acct__form label,
.ap-authform label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 16px;
  color: #95a3bd;
}
.ap-acct__form .required,
.ap-authform .required {
  color: var(--accent, #5b8fe0);
  text-decoration: none;
  border: 0;
}
.ap-acct__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 17px;
  color: var(--dim, #586071);
}

.ap-input,
.ap-acct__form input[type="text"],
.ap-acct__form input[type="email"],
.ap-acct__form input[type="tel"],
.ap-acct__form input[type="password"],
.ap-acct__form textarea,
.ap-acct__form select,
.ap-acct__form .select2-selection--single {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  background: rgba(3, 5, 11, 0.5);
  outline: 0;
  font: 400 14px/44px var(--font, "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif);
  color: var(--text, #eef2fb);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ap-acct__form textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 13px;
  line-height: 1.55;
  resize: vertical;
}
.ap-acct__form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a3bd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  padding-right: 36px;
}
.ap-acct__form select option {
  background: var(--panel-solid, #0a0d16);
  color: var(--text, #eef2fb);
}
.ap-input::placeholder,
.ap-acct__form input::placeholder,
.ap-acct__form textarea::placeholder {
  color: var(--dim, #586071);
}
.ap-input:focus,
.ap-acct__form input:focus,
.ap-acct__form textarea:focus,
.ap-acct__form select:focus {
  border-color: var(--accent, #5b8fe0);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(91, 143, 224, 0.12));
  background: rgba(3, 5, 11, 0.78);
}
.ap-acct__form input:disabled,
.ap-acct__form select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Select2 (Woo's country/state picker) re-skinned to the dark field. */
.ap-acct__form .select2-container--default .select2-selection--single {
  height: 44px;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  background: rgba(3, 5, 11, 0.5);
}
.ap-acct__form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 13px;
  color: var(--text, #eef2fb);
}
.ap-acct__form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.ap-acct__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 18px 0 0;
}
.ap-acct__back {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted, #7d879c);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.ap-acct__back:hover {
  color: var(--accent-2, #a9caff);
}

.ap-acct__addrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ap-acct__addrs[data-cols="1"] {
  grid-template-columns: minmax(0, 480px);
}
.ap-acct__addrs .ap-panel + .ap-panel {
  margin-top: 0;
}
.ap-acct__addrs address {
  margin: 0;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  color: var(--body, #a9b4c9);
}
.ap-acct__addr-actions {
  margin: 18px 0 0;
}

/* ------------------------------------------------------------ buttons --- */
/* ⛔ Buttons are NOT redefined here. `.btn` / `.btn-primary` / `.btn-ghost` /
   `.btn-sm` / `.btn-block` are the source's own primitives, ported verbatim
   into ap-tokens.css at P1, and every account template uses them. The only
   delta is that Woo also paints `.button` on its own action links, so that
   class has to be neutralised where it rides along with `.btn`. */
a.btn.button,
button.btn.button,
.ap-acct a.woocommerce-button.btn {
  text-decoration: none;
}
/* A Woo action link inside the orders table must not stretch the row. */
.ap-acct__table .btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
}
.ap-acct__table .btn-sm + .btn-sm {
  margin-left: 8px;
}

/* -------------------------------------------- login / register / reset --- */
.ap-acct--auth {
  max-width: 940px;
  margin-inline: auto;
}
.ap-acct--auth .ap-acct__title {
  text-align: center;
}
.ap-auth2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.ap-auth2__h {
  margin: 0 0 14px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 21px;
  font-weight: 400;
  text-align: center;
  color: var(--text, #eef2fb);
}
.ap-authcard {
  padding: 26px 26px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
  border-radius: var(--radius, 10px);
}
.ap-authcard--solo {
  max-width: 440px;
  margin: 0 auto;
}
.ap-authcard--notice {
  text-align: center;
}
.ap-authcard--notice .ap-ico {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  color: var(--accent, #5b8fe0);
}
.ap-authcard__t {
  margin: 14px 0 8px;
  font-family: var(--display, Georgia, "Iowan Old Style", "Times New Roman", serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--text, #eef2fb);
}
.ap-authrow {
  margin: 0 0 16px;
}
.ap-authrow--remember {
  margin-bottom: 18px;
}
.ap-check {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  font-family: var(--font, "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--body, #a9b4c9) !important;
}
.ap-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #5b8fe0);
}
.ap-authnote {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dim, #586071);
}
.ap-authform .ap-authnote:last-of-type {
  margin: 14px 0 0;
}
.ap-authlinks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 0;
  text-align: center;
}
.ap-authlinks a {
  font-size: 13px;
  color: var(--accent-2, #a9caff);
  border-bottom: 1px solid currentColor;
  align-self: center;
  padding-bottom: 1px;
}
.ap-authlinks a:hover {
  color: #fff;
}

/* /login/ and /register/ are ordinary WP pages, so they render through
   page.php — which emits `.wrap.page-head > h1.page-title`, then
   `section.section.wrap > article.ap-seo-prose`. Those are the REAL classes P1
   shipped (verified by reading page.php); the earlier `.entry-content` /
   `.ap-prose` guesses are gone. Centre the title and tighten the section's
   76px vertical rhythm so a 440px auth card does not float in dead space. */
body.ap-auth .page-head {
  padding-top: 40px;
}
body.ap-auth .page-title {
  text-align: center;
}
body.ap-auth .section {
  padding-top: 26px;
}
body.ap-auth .ap-seo-prose {
  max-width: none;
}
body.ap-auth .ap-authcard,
body.ap-auth .ap-authcard--solo {
  max-width: 440px;
  margin-inline: auto;
}

/* ---------------------------------------------- Woo notices (scoped) ----- */
.ap-acct .woocommerce-message,
.ap-acct .woocommerce-info,
.ap-acct .woocommerce-error,
.ap-authcard .woocommerce-message,
.ap-authcard .woocommerce-info,
.ap-authcard .woocommerce-error,
.ap-auth2 .woocommerce-message,
.ap-auth2 .woocommerce-info,
.ap-auth2 .woocommerce-error {
  margin: 0 0 18px;
  padding: 13px 16px;
  list-style: none;
  border: 1px solid rgba(91, 143, 224, 0.28);
  border-left-width: 3px;
  border-radius: var(--radius-s, 7px);
  background: var(--accent-soft, rgba(91, 143, 224, 0.12));
  font-size: 13.5px;
  line-height: 1.55;
  color: #c9dcff;
}
.ap-acct .woocommerce-error,
.ap-authcard .woocommerce-error,
.ap-auth2 .woocommerce-error {
  border-color: rgba(248, 113, 113, 0.4);
  background: var(--bad-soft, rgba(248, 113, 113, 0.1));
  color: #fca5a5;
}
/* Woo paints a glyph with ::before on every notice; it lands on top of the
   first word once the padding is ours. The left border is the status cue here. */
.ap-acct .woocommerce-message::before,
.ap-acct .woocommerce-info::before,
.ap-acct .woocommerce-error::before,
.ap-authcard .woocommerce-message::before,
.ap-authcard .woocommerce-info::before,
.ap-authcard .woocommerce-error::before,
.ap-auth2 .woocommerce-message::before,
.ap-auth2 .woocommerce-info::before,
.ap-auth2 .woocommerce-error::before {
  content: none !important;
  display: none !important;
}
.ap-acct .woocommerce-message,
.ap-acct .woocommerce-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ap-acct .woocommerce-message .button,
.ap-acct .woocommerce-info .button,
.ap-auth2 .woocommerce-message .button {
  order: 2;
  float: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #eef2fb);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.ap-acct .woocommerce-message .button:hover,
.ap-acct .woocommerce-info .button:hover {
  border-color: var(--accent, #5b8fe0);
  background: var(--accent-soft, rgba(91, 143, 224, 0.12));
  color: #fff;
}

/* =========================================================================
 * Responsive. The source's own app.css breakpoints are 1100 / 1000 / 900 / 720
 * / 640 (recon §13 — there is deliberately NO 820 band), so this file uses the
 * same ladder plus the 767 stack Woo's smallscreen reset assumes.
 *
 * Checked at 1440 / 992 / 900 / 820 / 390:
 *   1440 -> rail 252, content 1240-252-30 = 958
 *    992 -> rail 232, content 952-232-24  = 696
 *    900 -> rail 232, content 860-232-24  = 604
 *    820 -> rail 232, content 780-232-24  = 524   (769-991 band, the missed one)
 *    390 -> single column, rail above content
 * ========================================================================= */
@media (max-width: 1100px) {
  .ap-acct .ap-acct__grid {
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 24px;
  }
  .ap-acct__rail li a {
    padding: 11px 11px;
    gap: 9px;
  }
  .ap-acct__ometa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-panel {
    padding: 22px;
  }
}

@media (max-width: 1000px) {
  .ap-acct__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-acct__addrs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .ap-acct__info {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* Woo's smallscreen reset starts here; the rail stacks ABOVE the content. */
@media (max-width: 767px) {
  .ap-acct .ap-acct__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
  .woocommerce-account .ap-acct .woocommerce-MyAccount-navigation,
  .woocommerce-account .ap-acct__grid .woocommerce-MyAccount-navigation {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }
  .woocommerce-account .ap-acct .woocommerce-MyAccount-content,
  .woocommerce-account .ap-acct__grid .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: 2;
  }
  .ap-acct__fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-auth2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .ap-acct__tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ap-acct {
    padding-bottom: 42px;
  }
  .ap-panel {
    padding: 19px 17px 20px;
  }
  .ap-acct__ometa {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .ap-acct__actions {
    gap: 14px;
  }

  /* Orders table -> stacked cards. Labels come from Woo's own data-title. */
  .ap-acct__table {
    border: 0;
    background: none;
    overflow: visible;
  }
  .ap-acct__table thead {
    display: none;
  }
  .ap-acct__table,
  .ap-acct__table tbody,
  .ap-acct__table tr,
  .ap-acct__table th,
  .ap-acct__table td {
    display: block;
    width: 100% !important;
  }
  .ap-acct__table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.075));
    border-radius: var(--radius, 10px);
    background: var(--panel, rgba(255, 255, 255, 0.025));
    overflow: hidden;
  }
  .ap-acct__table th,
  .ap-acct__table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    text-align: right !important;
  }
  .ap-acct__table th::before,
  .ap-acct__table td::before {
    content: attr(data-title);
    flex: 0 0 auto;
    font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim, #586071);
    text-align: left;
  }
  .ap-acct__table .woocommerce-orders-table__cell-order-actions {
    justify-content: flex-end;
  }

  .ap-acct__odetails table.shop_table thead {
    display: none;
  }
  .ap-acct__odetails table.shop_table,
  .ap-acct__odetails table.shop_table tbody,
  .ap-acct__odetails table.shop_table tfoot,
  .ap-acct__odetails table.shop_table tr,
  .ap-acct__odetails table.shop_table th,
  .ap-acct__odetails table.shop_table td {
    display: block;
    width: 100% !important;
  }
  .ap-acct__odetails table.shop_table th,
  .ap-acct__odetails table.shop_table td {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .ap-authcard {
    padding: 20px 17px 22px;
  }
  .ap-acct__empty {
    padding: 36px 17px;
  }
  .ap-acct__rail ul {
    padding: 5px;
  }
  .ap-acct__rail li a {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-acct__tiles a,
  .ap-acct__rail li a,
  .btn,
  .ap-input {
    transition: none;
  }
  .ap-acct__tiles a:hover {
    transform: none;
  }
}
