/* Customer account only. Shared shop header and authentication keep their styles. */
#acctPage {
  --profile-canvas: #f5f7fb;
  --profile-paper: #fff;
  --profile-ink: var(--navy, #071c3b);
  --profile-text: #34435b;
  --profile-muted: #68758a;
  --profile-accent: #3433cf;
  --profile-accent-hover: #2524a7;
  --profile-tint: #eeedff;
  --profile-line: #e8ecf3;
  --profile-shadow: 0 3px 18px rgb(22 40 78 / 4%);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px max(32px, calc((100% - 1400px) / 2)) 64px;
  background: var(--profile-canvas);
  color: var(--profile-text);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

#acctPage *,
#acctPage *::before,
#acctPage *::after { box-sizing: border-box; }

#acctPage .acctLayout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

#acctPage .acctSide {
  padding: 28px 16px 16px;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  background: var(--profile-paper);
  box-shadow: var(--profile-shadow);
}

#acctPage .acctProfile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--profile-line);
  text-align: left;
}

#acctPage .acctAvatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin: 0;
  border: 1px solid #deddfa;
  border-radius: 50%;
  background: var(--profile-tint);
  color: var(--profile-accent);
  font-size: 20px;
  font-weight: 600;
}

#acctPage .acctIdentity { min-width: 0; }
#acctPage .acctName { color: var(--profile-ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
#acctPage .acctProfileLink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--profile-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}

#acctPage .acctNav { display: grid; gap: 8px; padding: 0; border-radius: 0; background: none; }
#acctPage .acctNavItem,
#acctPage .acctLogout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--profile-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
#acctPage .acctNavItem > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
#acctPage .acctNavItem > svg,
#acctPage .acctLogout > svg { width: 20px; height: 20px; flex: 0 0 20px; }
#acctPage .acctNavItem > svg:last-child:not(:first-child) { width: 16px; height: 16px; flex-basis: 16px; }
#acctPage .acctNavItem.on { color: var(--profile-accent); background: var(--profile-tint); border-color: transparent; font-weight: 600; }
#acctPage .acctNavItem:hover { color: var(--profile-accent); background: var(--profile-tint); }
#acctPage .acctLogout { margin-top: 24px; border-top-color: var(--profile-line); border-radius: 0 0 10px 10px; color: var(--profile-muted); }
#acctPage .acctLogout:hover { color: #ad2136; background: #fff3f4; }
#acctPage .acctProfileLink:hover { color: var(--profile-accent); }
#acctPage .acctMain { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; }
#acctPage .profileView { min-width: 0; }

#acctPage .profileBreadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--profile-muted); font-size: 12px; }
#acctPage .profileBreadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
#acctPage .profileBreadcrumb a:hover { color: var(--profile-accent); }
#acctPage .profileBreadcrumb svg { width: 14px; height: 14px; }
#acctPage .profileHeading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
#acctPage .profileHeading h1 { margin: 0 0 8px; color: var(--profile-ink); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.35; font-weight: 700; letter-spacing: -.035em; overflow-wrap: anywhere; }
#acctPage .profileHeading p { margin: 0; color: var(--profile-muted); font-size: 14px; }
#acctPage .profileHeadingIcon { display: grid; place-items: center; width: 60px; height: 60px; flex: 0 0 60px; border-radius: 16px; background: var(--profile-tint); color: var(--profile-accent); }
#acctPage .profileHeadingIcon svg { width: 28px; height: 28px; }

#acctPage .profileSummaryGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
#acctPage .profileSummaryCard {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 120px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--profile-line);
  border-radius: 14px;
  background: var(--profile-paper);
  color: var(--profile-ink);
  box-shadow: var(--profile-shadow);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
#acctPage .profileSummaryCard:hover { border-color: #c6c5f4; background: #fdfdff; }
#acctPage .profileIcon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--profile-tint); color: var(--profile-accent); }
#acctPage .profileIcon svg { width: 24px; height: 24px; }
#acctPage .profileSummaryCard > div { flex: 1; min-width: 0; }
#acctPage .profileSummaryCard strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
#acctPage .profileSummaryCard small { display: block; margin-top: 6px; color: var(--profile-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#acctPage .profileSummaryCard > svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--profile-muted); }

#acctPage .profilePanel,
#acctPage .profileEditor { margin: 0 0 24px; padding: 28px 32px; border: 1px solid var(--profile-line); border-radius: 16px; background: var(--profile-paper); box-shadow: var(--profile-shadow); }
#acctPage .profilePanelHead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
#acctPage .profilePanelHead h2 { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; color: var(--profile-ink); font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -.02em; }
#acctPage .profilePanelHead h2 svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--profile-accent); }
#acctPage .profileEdit,
#acctPage .profileEditorClose { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-width: 44px; min-height: 44px; margin: 0; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--profile-accent); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 160ms ease; }
#acctPage .profileEdit svg,
#acctPage .profileEditorClose svg { width: 16px; height: 16px; flex: 0 0 16px; }
#acctPage .profileEdit:hover,
#acctPage .profileEditorClose:hover { background: var(--profile-tint); }
#acctPage .profileRows { margin: 0; }
#acctPage .profileRow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; min-height: 66px; padding: 20px 0; border-bottom: 1px solid var(--profile-line); }
#acctPage .profileRow:last-child { border-bottom: 0; padding-bottom: 4px; }
#acctPage .profileRow dt { display: flex; align-items: center; gap: 12px; color: var(--profile-muted); font-size: 13px; font-weight: 400; }
#acctPage .profileRow dt svg { width: 18px; height: 18px; flex: 0 0 18px; color: #8793a7; }
#acctPage .profileRow dd { min-width: 0; margin: 0; color: var(--profile-ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
#acctPage .profileRow dd .profileEmpty { color: var(--profile-muted); font-weight: 400; }

#acctPage .profileAddressGrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr); align-items: start; gap: 24px; margin-top: 16px; }
#acctPage .profileAddressCard { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 20px; border: 1px solid #dddff5; border-radius: 12px; background: #fafaff; }
#acctPage .profileAddressCard > .profileIcon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
#acctPage .profileAddressCard > .profileIcon svg { width: 20px; height: 20px; }
#acctPage .profileAddressBody { min-width: 0; flex: 1; }
#acctPage .profileAddressBody h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; color: var(--profile-ink); font-size: 14px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
#acctPage .profileBadge { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 5px; background: var(--profile-tint); color: var(--profile-accent); font-size: 10px; line-height: 1.7; font-weight: 600; vertical-align: middle; overflow-wrap: anywhere; }
#acctPage .profileAddressBody p { margin: 6px 0 0; color: var(--profile-text); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#acctPage .profileAddressCard > .profileEdit { margin: -6px -8px 0 0; padding: 8px; }
#acctPage .profileAddressHint { margin: 0; padding: 16px 0; color: var(--profile-muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
#acctPage .profileAddressHint svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: text-bottom; color: var(--profile-accent); }
#acctPage .profileEmpty { color: var(--profile-muted); }
#acctPage .profileEmpty { display: flex; align-items: center; gap: 20px; padding: 24px 0; }
#acctPage .profileEmpty h3 { margin: 0; font-size: 16px; color: var(--profile-ink); }
#acctPage .profileEmpty p { margin: 8px 0; }
#acctPage .profileIcon-pin { background: #edfaf2; color: #168047; }
#acctPage .profileBadge { display: inline-flex; align-items: center; gap: 4px; }
#acctPage .profileBadge svg { width: 12px; height: 12px; }
#acctPage .profileAddressBody p { display: flex; align-items: flex-start; gap: 8px; }
#acctPage .profileAddressBody p svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; }
#acctPage .profileBreadcrumb button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
#acctPage .profileEditor .accountProfileForm > .accountEyebrow,
#acctPage .profileEditor .accountProfileForm > h3,
#acctPage .profileEditor .accountProfileForm > .accountIntro { display: none; }
#acctPage .profileEditor[hidden] { display: none; }
#acctPage .profileEditor { scroll-margin-top: 100px; }
#acctPage .profileEditor > .profilePanelHead { margin-bottom: 24px; }
#acctPage .profileEditor .accountProfileForm { --account-blue: var(--profile-accent); --account-navy: var(--profile-accent-hover); --account-ink: var(--profile-ink); --account-muted: var(--profile-muted); width: 100%; max-width: none; padding: 0; }
#acctPage .profileEditor .accountPrimary { width: auto; min-width: 180px; }
#acctPage .profileEditor .passwordToggle { min-height: 44px; }
#acctPage button:focus-visible,
#acctPage a:focus-visible,
#acctPage input:focus-visible,
#acctPage select:focus-visible { outline: 3px solid var(--profile-accent); outline-offset: 3px; }
#acctPage button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 1200px) {
  #acctPage .profileSummaryCard { padding: 20px 16px; gap: 12px; }
  #acctPage .profileSummaryCard .profileIcon { width: 40px; height: 40px; flex-basis: 40px; }
  #acctPage .profileSummaryCard strong { font-size: 16px; }
  #acctPage .profileSummaryGrid { gap: 16px; }
  #acctPage .profileRow { grid-template-columns: 180px minmax(0, 1fr); }
  #acctPage .profileAddressGrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #acctPage .profileAddressHint { padding: 8px 0 0; }
}

@media (max-width: 1000px) {
  #acctPage { padding: 32px 24px 48px; }
  #acctPage .acctLayout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  #acctPage .acctSide { padding: 24px 12px 12px; }
  #acctPage .acctProfile { margin-left: 4px; margin-right: 4px; gap: 10px; }
  #acctPage .acctAvatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 18px; }
  #acctPage .acctNavItem { padding: 12px 10px; gap: 8px; }
  #acctPage .profileSummaryGrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #acctPage .profileSummaryCard { min-height: 88px; padding: 16px 20px; }
  #acctPage .profileSummaryCard small { margin-top: 2px; }
  #acctPage .profilePanel,
  #acctPage .profileEditor { padding: 24px; }
  #acctPage .profileRow { grid-template-columns: 148px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 900px) {
  #acctPage .acctLayout { grid-template-columns: minmax(0, 1fr); }
  #acctPage .acctSide { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 20px; gap: 16px; }
  #acctPage .acctProfile { margin: 0; padding: 0; border: 0; }
  #acctPage .acctProfileLink { min-height: 44px; }
  #acctPage .acctNav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #acctPage .acctNavItem { width: 100%; }
  #acctPage .acctLogout { grid-column: 2; grid-row: 1; align-self: center; width: auto; margin: 0; border: 0; border-radius: 8px; padding: 12px; }
  #acctPage .profileSummaryGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #acctPage .profileSummaryCard { padding: 20px 16px; min-height: 112px; }
  #acctPage .profileBreadcrumb { margin-bottom: 8px; }
  #acctPage .profileRow { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  #acctPage { padding: 20px 16px 40px; }
  #acctPage .acctLayout { gap: 24px; }
  #acctPage .acctSide { padding: 16px; gap: 12px; }
  #acctPage .acctName { font-size: 14px; }
  #acctPage .acctLogout { font-size: 12px; gap: 8px; padding: 10px 8px; }
  #acctPage .acctNavItem { justify-content: center; flex-direction: column; gap: 6px; min-height: 76px; padding: 10px 6px; font-size: 11px; line-height: 1.5; text-align: center; }
  #acctPage .acctNavItem > span { flex: 0; }
  #acctPage .acctNavItem > svg:last-child:not(:first-child) { display: none; }
  #acctPage .profileHeading { gap: 16px; margin-bottom: 24px; }
  #acctPage .profileHeading h1 { font-size: 26px; }
  #acctPage .profileHeading p { font-size: 13px; }
  #acctPage .profileHeadingIcon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
  #acctPage .profileHeadingIcon svg { width: 24px; height: 24px; }
  #acctPage .profileSummaryGrid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  #acctPage .profileSummaryCard { min-height: 92px; padding: 20px; gap: 16px; }
  #acctPage .profileSummaryCard .profileIcon { width: 48px; height: 48px; flex-basis: 48px; }
  #acctPage .profilePanel,
  #acctPage .profileEditor { margin-bottom: 20px; padding: 20px; border-radius: 14px; }
  #acctPage .profilePanelHead { gap: 8px; align-items: flex-start; }
  #acctPage .profilePanelHead h2 { gap: 8px; padding-top: 9px; font-size: 16px; }
  #acctPage .profilePanelHead h2 svg { width: 20px; height: 20px; flex-basis: 20px; }
  #acctPage .profileEdit { padding: 8px; font-size: 11px; gap: 6px; }
  #acctPage .profileRow { grid-template-columns: 108px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  #acctPage .profileRow dt { gap: 8px; align-items: flex-start; font-size: 12px; }
  #acctPage .profileRow dt svg { width: 16px; height: 16px; flex-basis: 16px; margin-top: 2px; }
  #acctPage .profileRow dd { font-size: 13px; }
  #acctPage .profileAddressGrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #acctPage .profileAddressCard { flex-wrap: wrap; gap: 12px; padding: 16px; }
  #acctPage .profileAddressBody { flex-basis: calc(100% - 52px); }
  #acctPage .profileAddressCard > .profileEdit { margin: 0 0 0 52px; }
  #acctPage .profileEditor .accountGrid { grid-template-columns: minmax(0, 1fr); }
  #acctPage .profileEditor .accountPrimary { width: 100%; }
}

@media (max-width: 380px) {
  #acctPage .acctSide { padding: 12px; }
  #acctPage .acctProfile { gap: 8px; }
  #acctPage .acctAvatar { width: 40px; height: 40px; flex-basis: 40px; }
  #acctPage .acctLogout { flex-direction: column; gap: 4px; font-size: 11px; }
  #acctPage .profilePanelHead { flex-wrap: wrap; }
  #acctPage .profilePanelHead h2 { flex: 1 1 100%; }
  #acctPage .profileRow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #acctPage .profileRow dd { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  #acctPage *,
  #acctPage *::before,
  #acctPage *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
