/* Account premium shell: native, compact and aligned with the storefront visual contract. */
:root {
  --account-ink: #172033;
  --account-muted: #667085;
  --account-line: #dce2e8;
  --account-soft: #f5f7f9;
  --account-orange: #ff4b20;
  --account-orange-dark: #dd3713;
  --account-green: #16834d;
  --account-shadow: 0 14px 34px rgba(23, 32, 51, .065);
}

* { box-sizing: border-box; }
.customer-account [hidden] { display: none !important; }
.customer-account-page { min-height: 100vh; margin: 0; overflow-x: clip; background: #f4f6f8; color: var(--account-ink); }
.customer-account-skip { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 12px; border-radius: 8px; background: var(--account-ink); color: #fff; font-weight: 800; transform: translateY(-140%); }
.customer-account-skip:focus { transform: translateY(0); }
.customer-account { width: min(1440px, 100%); margin: 0 auto; padding: 0 14px 28px; }

.customer-account-topbar { display: grid; grid-template-columns: 170px minmax(260px, 560px) auto; align-items: center; gap: 22px; min-height: 62px; border-bottom: 1px solid var(--account-line); background: rgba(255, 255, 255, .96); }
.customer-account-brand { display: inline-flex; align-items: center; width: fit-content; color: var(--account-ink); text-decoration: none; }
.customer-account-brand img { display: block; width: 126px; max-width: 100%; height: 53px; object-fit: contain; }
.customer-account-search { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; padding: 0 13px; border: 1px solid #e4e8ed; border-radius: 9px; background: #f1f4f7; }
.customer-account-search svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #384356; stroke-width: 2; }
.customer-account-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--account-ink); font: inherit; font-size: 13px; }
.customer-account-search input::placeholder { color: #778195; opacity: 1; }
.customer-account-topnav { display: flex; justify-self: end; align-items: center; gap: 13px; min-width: 0; color: var(--account-ink); font-size: 13px; font-weight: 800; }
.customer-account-topnav a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; text-decoration: none; }
.customer-account-topnav a:hover, .customer-account-topnav a:focus-visible { color: var(--account-orange-dark); }
.customer-account-icon-link { justify-content: center; width: 40px; }
.customer-account-icon-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-account-avatar, .customer-account-sidebar-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e1e6ea; color: #344054; font-weight: 900; }
.customer-account-avatar { width: 34px; height: 34px; font-size: 11px; }

.customer-account-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 16px; min-width: 0; padding-top: 12px; }
.customer-account-sidebar { position: sticky; top: 10px; align-self: start; min-width: 0; overflow: hidden; border: 1px solid #e5e9ed; border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(23, 32, 51, .035); }
.customer-account-sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #e8ecf0; }
.customer-account-sidebar-avatar { width: 38px; height: 38px; font-size: 11px; }
.customer-account-sidebar-profile div { display: grid; min-width: 0; gap: 2px; }
.customer-account-sidebar-profile strong { font-size: 14px; }
.customer-account-sidebar-profile span:not(.customer-account-sidebar-avatar) { overflow: hidden; color: var(--account-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-account-nav { display: grid; gap: 2px; padding: 8px 0; }
.customer-account-nav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 14px; border-left: 3px solid transparent; color: #354052; font-size: 13px; font-weight: 750; text-decoration: none; }
.customer-account-nav a > span { display: grid; width: 18px; place-items: center; color: #49566a; }
.customer-account-nav a > span svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-account-nav a:hover, .customer-account-nav a:focus-visible { background: #fff7f3; color: var(--account-orange-dark); }
.customer-account-nav a[aria-current="page"] { border-left-color: var(--account-orange); background: #fff0ea; color: #cf3513; }
.customer-account-nav a[aria-current="page"] > span { color: var(--account-orange); }
.customer-account-support { display: grid; gap: 3px; margin: 8px; padding: 12px; border-radius: 9px; background: #f0f3f6; }
.customer-account-support strong { font-size: 12px; }
.customer-account-support span { color: var(--account-muted); font-size: 10px; }
.customer-account-support a { margin-top: 5px; color: var(--account-ink); font-size: 11px; font-weight: 900; text-decoration: none; }
.customer-account-sidebar-note { margin: 0; padding: 10px 14px 13px; color: var(--account-muted); font-size: 10px; line-height: 1.4; }

.customer-account-content { min-width: 0; outline: 0; }
.customer-account-view { min-height: 560px; padding: 20px 22px; border: 1px solid #e3e7eb; border-radius: 12px; background: #fff; box-shadow: var(--account-shadow); }
.customer-account-view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.customer-account-view-heading > div { min-width: 0; }
.customer-account-eyebrow { margin: 0 0 4px; color: #d33917; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.customer-account-view h1, .customer-account-view h2 { color: var(--account-ink); letter-spacing: -.035em; }
.customer-account-view h1 { margin: 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.05; }
.customer-account-view h2 { margin: 0; font-size: 18px; }
.customer-account-view-heading p:not(.customer-account-eyebrow) { margin: 6px 0 0; color: var(--account-muted); font-size: 13px; line-height: 1.4; }
.customer-account-status { margin: 5px 0 0 !important; }
.customer-account-state { display: inline-flex; min-height: 28px; flex: 0 0 auto; align-items: center; padding: 4px 9px; border: 1px solid #dce3e8; border-radius: 8px; background: #f6f8fa; color: #4d596b; font-size: 11px; font-weight: 900; white-space: nowrap; }
.customer-account-state-success { border-color: #bfe7d3; background: #e4f7ed; color: var(--account-green); }
.customer-account[data-authenticated="true"] .customer-account-state::before, .customer-account-state-success::before { content: "✓"; display: inline-grid; width: 17px; height: 17px; margin-right: 6px; place-items: center; border-radius: 50%; background: var(--account-green); color: #fff; font-size: 10px; }

.customer-account-primary-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -4px 0 14px; padding: 13px 14px; border-radius: 10px; background: #172335; color: #fff; }
.customer-account-primary-action strong { font-size: 14px; }
.customer-account-primary-action p { margin: 3px 0 0; color: #d6dde5; font-size: 11px; }
.customer-account-primary-action .primary-btn { width: auto; min-width: 112px; min-height: 42px; margin: 0; background: var(--account-orange); border-color: var(--account-orange); }

.customer-account-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.customer-account-quick-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; min-width: 0; min-height: 102px; padding: 12px; border: 1px solid var(--account-line); border-radius: 10px; background: #fff; color: var(--account-ink); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.customer-account-quick-card:hover, .customer-account-quick-card:focus-visible { border-color: rgba(255, 75, 32, .55); box-shadow: 0 8px 20px rgba(23, 32, 51, .08); transform: translateY(-1px); }
.customer-account-quick-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #fff0ea; color: var(--account-orange); font-size: 17px; font-weight: 900; }
.customer-account-quick-icon svg, .customer-account-security-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-account-quick-card > span:last-child { display: grid; align-content: start; min-width: 0; }
.customer-account-quick-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-account-quick-card b { margin-top: 7px; font-size: 14px; line-height: 1.1; }
.customer-account-quick-card small { margin-top: 5px; color: var(--account-muted); font-size: 10px; line-height: 1.25; }
.customer-account-quick-card[data-state="blocked"], .customer-account-quick-card[data-state="unavailable"] { background: #fafbfc; }

.customer-account-repurchase { position: relative; display: flex; min-height: 118px; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin: 0 0 13px; padding: 18px 20px; border-radius: 11px; background: radial-gradient(circle at 80% 25%, rgba(255, 90, 45, .4), transparent 25%), linear-gradient(115deg, #101a29 5%, #1f3047 58%, #3b241c); color: #fff; }
.customer-account-repurchase::after { content: ""; position: absolute; right: 10%; bottom: -56px; width: 160px; height: 160px; border: 22px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.customer-account-repurchase > * { position: relative; z-index: 1; }
.customer-account-repurchase .customer-account-eyebrow { color: #ff9a80; }
.customer-account-repurchase strong, .customer-account-repurchase span { display: block; }
.customer-account-repurchase strong { max-width: 560px; font-size: clamp(19px, 2vw, 25px); line-height: 1.05; }
.customer-account-repurchase > div > span { margin-top: 5px; color: #dce4ec; font-size: 12px; }
.customer-account-repurchase > a { flex: 0 0 auto; min-height: 40px; padding: 11px 14px; border-radius: 8px; background: var(--account-orange); color: #fff; font-size: 12px; font-weight: 900; text-decoration: none; }
.customer-account-repurchase > a:hover, .customer-account-repurchase > a:focus-visible { background: #ff633f; }

.customer-account-recent-orders { padding-top: 2px; }
.customer-account-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.customer-account-section-heading h2, .customer-account-section-heading p { margin: 0; }
.customer-account-section-heading p { margin-top: 2px; color: var(--account-muted); font-size: 11px; }
.customer-account-section-heading > a { min-height: 36px; padding: 9px 2px; color: var(--account-orange-dark); font-size: 11px; font-weight: 900; text-decoration: none; }
.customer-account-orders-preview { overflow: hidden; border: 1px solid var(--account-line); border-radius: 9px; }
.customer-account-order-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(105px, .6fr) minmax(90px, .55fr) auto; align-items: center; gap: 10px; min-height: 45px; padding: 6px 10px; border-bottom: 1px solid #e7ebef; color: var(--account-ink); font-size: 11px; text-decoration: none; }
.customer-account-order-row:last-child { border-bottom: 0; }
.customer-account-order-row strong { font-size: 11px; }.customer-account-order-row small { display: block; margin-top: 2px; color: var(--account-muted); font-size: 9px; }
.customer-account-order-state { justify-self: start; padding: 4px 8px; border-radius: 99px; background: #e5f5ed; color: var(--account-green); font-size: 10px; font-weight: 900; }
.customer-account-order-total { font-weight: 900; text-align: right; }
.customer-account-order-action { min-height: 34px; padding: 8px 10px; border: 1px solid var(--account-line); border-radius: 7px; font-weight: 900; }
.customer-account-orders-empty { display: grid; gap: 3px; padding: 12px; color: var(--account-muted); font-size: 11px; }
.customer-account-orders-empty strong { color: var(--account-ink); font-size: 12px; }
.customer-account-availability-note { margin: 9px 0 0; color: var(--account-muted); font-size: 10px; line-height: 1.4; }

.customer-account-profile { margin-top: 2px; }
.customer-profile-feedback { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #f2f7fb; color: #405269; font-size: 11px; line-height: 1.4; }
.customer-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0; }
.customer-profile-field { display: grid; gap: 5px; min-width: 0; color: var(--account-ink); font-weight: 800; }
.customer-profile-field > span { font-size: 12px; }
.customer-profile-field input { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid #cfd6dd; border-radius: 8px; outline: 0; background: #f8fafb; color: var(--account-ink); font: inherit; font-size: 13px; }
.customer-profile-field input:hover { border-color: #aeb8c4; }
.customer-profile-field input:focus-visible { border-color: var(--account-orange); box-shadow: 0 0 0 3px rgba(255, 75, 32, .16); background: #fff; }
.customer-profile-field input[readonly] { color: #596579; background: #f0f3f5; }
.customer-profile-field input::placeholder { color: #98a2b3; opacity: 1; }
.customer-profile-verified { display: inline-block; margin-left: 5px; color: var(--account-green); font-size: 9px; font-style: normal; }
.customer-profile-helper { grid-column: 1 / -1; margin: -7px 0 0; color: var(--account-muted); font-size: 10px; }
.customer-profile-information { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 8px; background: #eff6fc; color: #35516f; }
.customer-profile-information > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1px solid #4d86bb; border-radius: 50%; font-size: 11px; font-weight: 900; }
.customer-profile-information p { margin: 0; font-size: 11px; line-height: 1.4; }
.customer-profile-billing { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0; padding: 13px; border: 1px solid var(--account-line); border-radius: 9px; }
.customer-profile-billing legend { padding: 0 7px; color: var(--account-ink); font-size: 12px; font-weight: 900; }
.customer-profile-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.customer-profile-actions span { color: var(--account-muted); font-size: 10px; }.customer-profile-actions .primary-btn { width: auto; min-width: 142px; min-height: 44px; margin: 0; background: var(--account-orange); border-color: var(--account-orange); }

.customer-account-security-list { display: grid; gap: 10px; }
.customer-account-security-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--account-line); border-radius: 9px; background: #fff; }
.customer-account-security-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: #fff0ea; color: var(--account-orange); font-weight: 900; }
.customer-account-security-card h2, .customer-account-security-card p { margin: 0; }
.customer-account-security-card h2 { font-size: 13px; }.customer-account-security-card p { margin-top: 3px; color: var(--account-muted); font-size: 11px; line-height: 1.35; }
.customer-account-security-card button { width: auto; min-width: 122px; min-height: 40px; margin: 0; white-space: nowrap; }
.customer-account-security-feedback { color: var(--account-green) !important; font-weight: 800; }
.customer-account-locked-panel { max-width: 620px; padding: 18px; border: 1px solid var(--account-line); border-radius: 10px; background: #f8fafb; }
.customer-account-locked-panel h2, .customer-account-locked-panel p { margin: 0; }.customer-account-locked-panel h2 { font-size: 17px; }.customer-account-locked-panel p { margin-top: 7px; color: var(--account-muted); font-size: 12px; line-height: 1.45; }.customer-account-locked-panel .primary-btn { display: inline-flex; width: auto; min-height: 42px; margin-top: 14px; }

@media (max-width: 980px) {
  .customer-account-topbar { grid-template-columns: 150px minmax(220px, 1fr) auto; gap: 14px; }
  .customer-account-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .customer-account-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-account-quick-card { min-height: 92px; }
}

@media (max-width: 760px) {
  .customer-account { padding: 0 8px 18px; }
  .customer-account-topbar { grid-template-columns: minmax(100px, 1fr) auto; min-height: 56px; gap: 8px; }
  .customer-account-brand img { width: 108px; height: auto; }
  .customer-account-search, .customer-account-topnav > a:first-child, .customer-account-topnav-label { display: none; }
  .customer-account-topnav { gap: 7px; }
  .customer-account-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .customer-account-sidebar { position: static; width: 100%; overflow: hidden; border-radius: 10px; }
  .customer-account-sidebar-profile, .customer-account-support, .customer-account-sidebar-note { display: none; }
  .customer-account-nav { display: flex; gap: 3px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .customer-account-nav::-webkit-scrollbar { display: none; }
  .customer-account-nav a { min-height: 40px; flex: 0 0 auto; gap: 6px; padding: 7px 10px; border: 0; border-radius: 7px; font-size: 11px; }
  .customer-account-nav a[aria-current="page"] { border: 0; }
  .customer-account-view { min-height: 0; padding: 15px 13px; border-radius: 10px; }
  .customer-account-view-heading { display: grid; gap: 8px; margin-bottom: 13px; }
  .customer-account-view h1 { font-size: 27px; }
  .customer-account-state { justify-self: start; min-height: 26px; }
  .customer-account-primary-action { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 0; }
  .customer-account-primary-action .primary-btn { display: flex; width: 100%; }
  .customer-account-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .customer-account-quick-card { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; min-height: 96px; padding: 10px 8px; }
  .customer-account-quick-icon { width: 28px; height: 28px; }
  .customer-account-quick-card strong { font-size: 11px; }.customer-account-quick-card b { font-size: 12px; }.customer-account-quick-card small { font-size: 9px; }
  .customer-account-repurchase { min-height: 138px; align-items: flex-start; flex-direction: column; gap: 11px; padding: 15px; }
  .customer-account-repurchase strong { font-size: 20px; }.customer-account-repurchase > div > span { font-size: 11px; }.customer-account-repurchase > a { width: 100%; text-align: center; }
  .customer-account-section-heading { align-items: flex-start; }
  .customer-account-order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; }
  .customer-account-order-row > *:nth-child(2), .customer-account-order-row > *:nth-child(3) { grid-row: 2; }
  .customer-account-order-total { grid-column: 2; grid-row: 1; }
  .customer-account-order-action { display: none; }
  .customer-account-availability-note { display: none; }
  .customer-profile-form, .customer-profile-billing { grid-template-columns: 1fr; }
  .customer-profile-actions { align-items: stretch; flex-direction: column-reverse; gap: 8px; }.customer-profile-actions .primary-btn { width: 100%; }
  .customer-account-security-card { grid-template-columns: 34px minmax(0, 1fr); }.customer-account-security-card button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 380px) {
  .customer-account-quick-grid { grid-template-columns: 1fr; }
  .customer-account-quick-card { min-height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-account-quick-card { transition: none; }
}
