.account-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; }
.account-header > a:last-child { font-weight: 700; color: var(--deep); }
.account-main { width: min(440px, calc(100% - 32px)); margin: clamp(24px, 7vw, 80px) auto; }
.account-card { padding: clamp(22px, 6vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 28px #48162912; }
.account-card h1 { margin: 0 0 16px; font-size: 1.75rem; letter-spacing: -.04em; }
.account-card form:not([hidden]), .account-card #account-member:not([hidden]) { display: grid; gap: 14px; }
.account-card label { display: grid; gap: 6px; font-weight: 650; }
.account-card input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font: inherit; }
.account-card p, .account-card small { margin: 0; color: var(--muted); }
.account-card .primary-btn { min-height: 44px; text-align: center; }
.account-card .quiet-button { justify-self: start; }
#account-status:empty { display: none; }
#account-status:not(:empty) { margin-bottom: 14px; }
.store-nav nav { flex-wrap: wrap; }

.account-card input[type="checkbox"] {
  width: auto;
  min-height: 0;
  justify-self: start;
}

/* Customer account pages */
.customer-portal { --wine:#681c39; --text:#251e23; --soft:#665e65; --edge:#ded9dc; color:var(--text); background:#faf9f8; min-height:100vh; display:flex; flex-direction:column; }
.customer-portal * { box-sizing:border-box; }
.customer-wrap { width:min(1140px,calc(100% - 64px)); margin-inline:auto; }
.customer-header { background:white; border-bottom:1px solid var(--edge); }
.customer-header-inner,.customer-header nav,.customer-footer,.account-crumb,.panel-title,.member-heading,.feature-footer { display:flex; align-items:center; }
.customer-header-inner,.customer-footer,.panel-title,.member-heading,.feature-footer { justify-content:space-between; gap:20px; }
.customer-header-inner { min-height:76px; }
.customer-header nav { white-space:nowrap; gap:26px; font-weight:650; }
.customer-header .bag-link,.outline-link { padding:10px 15px; border:1px solid var(--edge); border-radius:8px; background:white; color:var(--text); font:inherit; font-weight:650; }
.customer-portal a:hover,.customer-portal button:hover { text-decoration:underline; text-underline-offset:3px; }
.customer-portal :focus-visible { outline:3px solid #994a6c; outline-offset:3px; }
.customer-portal main { flex:1; padding-bottom:46px; }
.account-crumb { gap:12px; margin:25px 0; color:var(--soft); font-size:.9rem; }
.account-crumb a,.customer-footer a { color:var(--wine); font-weight:650; }
.access-layout { display:grid; grid-template-columns: minmax(330px, 0.86fr) minmax(0,1.14fr); background:white; border:1px solid var(--edge); border-radius:20px; overflow:hidden; }
.access-card { display:grid; align-content:center; padding:clamp(28px,4.4vw,62px); }
.access-inner { max-width:420px; width:100%; margin:auto; }
.customer-portal h1,.customer-portal h2,.customer-portal p { margin:0; }
.customer-portal h1 { font-size:clamp(2rem,3.8vw,3.1rem); line-height:1.09; letter-spacing:-.055em; overflow-wrap:anywhere; }
.customer-portal h2 { font-size:1.3rem; letter-spacing:-.035em; line-height:1.2; }
.customer-portal .account-intro { color:var(--soft); margin:10px 0 25px; }
.access-switch { display:flex; background:#f1edef; padding:4px; border-radius:9px; margin-bottom:23px; }
.access-switch button { font:inherit; font-weight:650; color:var(--soft); min-height:40px; border:0; background:none; border-radius:6px; flex:1; }
.access-switch [aria-pressed=true] { color:var(--wine); background:white; box-shadow:0 1px 4px #39132724; }
.customer-portal form { display:grid; gap:16px; }
.customer-portal form label { display:grid; gap:5px; font-weight:650; }
.customer-portal input:not([type=checkbox]) { width:100%; font:inherit; padding:11px 13px; border:1px solid #bbb3b8; border-radius:8px; min-height:46px; background:white; color:var(--text); }
.customer-portal small { font-size:.875rem; color:var(--soft); }
.customer-portal .primary-btn,.customer-portal .secondary-btn { min-height:44px; font-size:1rem; justify-content:center; }
.customer-portal .primary-btn { background:var(--wine); border-color:var(--wine); border-radius:8px; color:white; }
.customer-portal #recovery { margin-top:18px; }
.customer-portal summary { cursor:pointer; }
.customer-portal #recovery form { margin-top:14px; }
.store-feature { min-width:0; display:flex; flex-direction:column; background:#360914; color:white; }
.store-feature > img { width:100%; min-height:0; height:100%; flex:1; aspect-ratio:1.65; object-fit:cover; }
.feature-footer { padding:24px clamp(18px,3vw,38px); border-top:1px solid #ffffff27; flex-wrap:wrap; }
.feature-footer p,.section-label { font-weight:700; font-size:.875rem; }
.feature-footer p { color:#f2cad5; margin-bottom:6px; }
.feature-footer h2 { font-size:clamp(1.35rem,2.4vw,1.85rem); }
.feature-footer a { border:1px solid #ffffff75; border-radius:7px; font-weight:650; padding:10px 14px; color:white; }
.customer-portal .session-notice:not(:empty) { border-left:3px solid var(--wine); background:#f3e9ee; padding:10px 16px; margin-bottom:18px; }
.member-heading { margin:0 0 28px; }
.section-label { color:var(--wine); margin-bottom:7px!important; }
.member-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(225px,.85fr); gap:22px; align-items:start; }
.orders-card,.account-links,#phone-verification { background:white; border:1px solid var(--edge); border-radius:15px; padding:clamp(18px,3vw,32px); min-width:0; }
.panel-title { padding-bottom:18px; border-bottom:1px solid var(--edge); }
.text-action { border:0; padding:8px 0; background:none; color:var(--wine); font:inherit; font-weight:650; }
.customer-portal #customer-orders { display:grid; gap:10px; }
.customer-portal .portal-order { overflow-wrap:anywhere; margin-top:10px; }
.customer-portal .portal-order summary { line-height:1.5; }
.customer-portal .portal-order p { margin-top:10px; }
.customer-portal .portal-status { color:var(--wine); background:#f2e8ed; }
#hubtel-orders:not(:empty) { margin-top:18px; }
.order-empty { padding:38px 8px; text-align:center; color:var(--soft); }
.order-empty strong { display:block; color:var(--text); font-size:1.15rem; margin-bottom:5px; }
.member-tools { display:grid; gap:16px; }
.account-links { display:grid; gap:0; }
.account-links h2,#phone-verification h2 { margin-bottom:14px; }
.account-links a { padding:10px 0; border-top:1px solid var(--edge); font-weight:600; color:var(--wine); }
.customer-footer { padding:20px 0; border-top:1px solid var(--edge); color:var(--soft); font-size:.9rem; }
@media(max-width:760px) {
 .customer-wrap { width:calc(100% - 32px); }
 .customer-header nav { gap:12px; font-size:.9rem; }
 .customer-header-inner { min-height:66px; }
 .access-layout,.member-layout { grid-template-columns:1fr; }
 .access-card { padding:28px 22px; }
 .store-feature { display:grid; grid-template-columns:1fr 1.2fr; }
 .store-feature > img { height:100%; aspect-ratio:auto; min-height:125px; }
 .feature-footer { display:grid; gap:6px; padding:14px; border:0; }
 .feature-footer p { display:none; }
 .feature-footer a { border:0; padding:0; text-decoration:underline; }
 .member-heading { align-items:flex-start; }
 .member-heading h1 { font-size:2rem; }
 .member-heading button { white-space:nowrap; }
 .account-crumb { margin:18px 0; }
}
@media(max-width:480px){
 .customer-header nav a:first-child { display:none; }
 .customer-header .bag-link { padding:8px 10px; }
 .customer-header nav { gap:10px; }
 .customer-header .wordmark b { font-size:1.3rem; }
 .customer-header .wordmark span { font-size:.62rem; }
 .member-heading { flex-wrap:wrap; gap:10px; }
}
.customer-portal .skip { position:absolute; left:12px; top:-100px; z-index:3; background:white; color:var(--wine); padding:10px 15px; }
.customer-portal .skip:focus { top:8px; }
@media(max-width:480px) {
 .customer-header-inner { gap:8px; }
 .customer-header .wordmark { min-width:0; flex-shrink:0; }
 .customer-header .wordmark .hkko-lion { width:32px; height:32px; }
 .customer-header nav { font-size:.875rem; gap:9px; }
}
@media(max-width:480px) {
 .customer-header nav a { padding:7px 0; font-size:.875rem; letter-spacing:normal; }
 .customer-header nav .bag-link { padding:7px 10px; text-transform:capitalize; }
 .customer-header .bag-link span { display:none; }
}

.customer-portal [hidden] { display: none !important; }

.member-heading {
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 22px;
  border-radius: 16px;
  background: #401329;
  color: white;
}
.member-heading .section-label { color: #f0ceda; }
.member-heading h1 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
.member-heading .outline-link { flex-shrink: 0; }
.member-heading > div, .member-tools { min-width: 0; }
.customer-portal .orders-card { padding: clamp(18px, 2.6vw, 30px); }
.customer-portal .account-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.account-links a::after, .account-order-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.customer-portal .account-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 10px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  list-style: none;
}
.account-order-summary::-webkit-details-marker { display: none; }
.account-order-summary::after { transform: rotate(45deg); justify-self: center; }
details[open] > .account-order-summary::after { transform: rotate(225deg); }
.account-order-identity { display: grid; gap: 3px; }
.account-order-identity time { color: var(--soft); font-size: .85rem; font-weight: 450; }
.account-order-total { font-variant-numeric: tabular-nums; }
.account-order-summary .portal-status { margin: 0; justify-self: start; }
.customer-portal .panel-title { flex-wrap: wrap; gap: 6px 14px; }
.customer-portal .text-action { min-height: 40px; }
.customer-portal .customer-footer { background: transparent; }
@media (max-width: 540px) {
  .customer-portal .account-order-summary {
    grid-template-columns: minmax(0, 1fr) auto 10px;
    gap: 6px 10px;
  }
  .account-order-identity { grid-row: span 2; }
  .account-order-total, .account-order-summary .portal-status { grid-column: 2; justify-self: end; }
  .account-order-summary::after { grid-column: 3; grid-row: 1 / 3; }
}
