:root {
  --denim: #20364c;
  --paper: #fbf8f4;
  --white: #fffdfa;
  --muted: #4e5c65;
  --line: #e3dcd4;
  --red: #a12738;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--denim);
  background: var(--paper);
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .64; cursor: wait; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, p { margin: 0; }

.account-header {
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}
.account-header a { min-height: 44px; display: flex; align-items: center; }
.account-return { gap: 5px; font-size: 13px; text-decoration: none; justify-self: start; }
.account-brand img { display: block; width: clamp(94px, 20vw, 138px); height: auto; }
.account-help { font-size: 13px; justify-self: end; }
.account-layout { max-width: 1050px; margin: 0 auto; padding: 22px 16px; }
.account-photo { display: none; }
.account-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(20px, 6vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 20px;
}
.account-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 13px;
}
.account-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.account-panel h1 {
  margin-bottom: 9px;
  font: 400 clamp(32px, 8vw, 47px)/1.05 Georgia, serif;
  letter-spacing: -.035em;
}
.account-panel > p { color: var(--muted); }
.account-panel form { margin-top: 24px; display: grid; gap: 8px; }
.account-panel label { font-size: 14px; font-weight: 650; }
.account-panel input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #a7adb1;
  border-radius: 8px;
  background: white;
  color: var(--denim);
  font-size: 16px;
}
.account-submit, .account-alternate, .account-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}
.account-submit { border: 1px solid var(--denim); background: var(--denim); color: white; text-decoration: none; margin-top: 6px; }
.account-submit:hover { background: #2e4a66; }
.account-alternate { border: 1px solid var(--line); background: transparent; color: var(--denim); text-decoration: none; }
.account-inline { justify-self: end; border: 0; background: transparent; color: var(--denim); text-decoration: underline; text-underline-offset: 3px; }
.account-hint { margin-top: 12px; color: var(--muted); font-size: 13px; }
.account-options { display: grid; gap: 10px; }
.account-google {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
}
.account-google:hover { background: #f2f5f6; }
.account-panel form .account-hint { margin: -8px 0 4px; }
.account-status { margin-top: 15px; padding: 10px 12px; background: #eef2f6; border-radius: 8px; }
.account-status:empty { display: none; }
.account-status.error { background: #fae8ea; color: #801c2c; }
.account-user { margin: 16px 0; overflow-wrap: anywhere; }
#accountProfile .account-alternate { margin: 8px 0; }
.account-guest { border-top: 1px solid var(--line); margin-top: 15px; display: flex; align-items: center; }
.account-guest a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 650; }
.account-footer { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; padding: 0 16px 16px; }
.account-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }

@media (max-width: 360px) {
  .account-return span { max-width: 65px; }
}
@media (min-width: 800px) {
  .account-layout {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 25px;
    align-items: stretch; padding: 54px 24px 28px;
  }
  .account-panel { width: 100%; max-width: none; }
  .account-photo {
    display: block; border-radius: 20px;
    background: var(--denim) url("/toko/assets/hero.webp") 55% center / cover no-repeat;
  }
}
.member-box {margin:1rem 0;padding:clamp(.9rem,3vw,1.4rem);border:1px solid #d0c1b1;border-radius:10px;text-align:left;background:#fffaf2}
.member-box h2 {margin:0;font:400 1.6rem/1.2 Georgia,serif;color:#382735}
.member-box summary {font-weight:700;cursor:pointer;min-height:36px}
.member-box .member-balance {font-size:1.25rem;font-weight:700;color:#572936}
.member-box .member-claims {padding-left:1.25rem;font-size:.88rem}
.member-box .member-claims:empty {display:none}
.member-box :is(input:not([type=checkbox]),textarea,select) {
 display:block;width:100%;min-width:0;padding:.7rem;border:1px solid #bdb0a1;border-radius:6px;
 background:#fff;color:#272837;font:inherit;font-size:16px
}
.member-box form {display:grid;gap:.65rem}
.member-box .member-check {display:flex;align-items:flex-start;gap:.55rem;font-size:.9rem}
.member-box input[type=checkbox] {width:1.1rem;height:1.1rem;min-height:0;margin:.2rem 0 0;flex:none}
#memberDeleteAddress {margin-top:.8rem}
#memberCurrentAddress {overflow-wrap:anywhere}
.account-header .account-lang {align-self:center;min-width:38px;min-height:44px}

.account-layout.signed-in { display: block; max-width: 1120px; }
.signed-in .account-photo { display: none; }
.signed-in .account-panel { max-width: none; padding: clamp(14px, 4vw, 32px); }
.member-workspace, .member-content, .member-orders { min-width: 0; }
.member-workspace { margin-top: 1.25rem; display: grid; gap: 1rem; }
.member-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .45rem; }
.member-navigation button {
  min-height: 48px; padding: .55rem .6rem; text-align: left; border-radius: 8px;
  border: 1px solid var(--line); color: var(--denim); background: var(--white); font-weight: 650;
}
.member-navigation [aria-current=page] { background: var(--denim); color: white; border-color: var(--denim); }
.member-content .member-box { margin: 0 0 .75rem; background: #fdfbf7; }
.member-content .account-user { margin: .25rem 0 0; font-weight: 700; }
.member-content button, .member-footer a { padding-inline: .8rem; }
.member-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.member-orders { display: grid; gap: .75rem; margin-block: .65rem; }
.member-order {
  border: 1px solid var(--line); border-radius: .65rem; padding: .8rem;
  background: white; overflow-wrap: anywhere; 
}
.member-order-header, .member-order-summary, .member-orders-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
}
.member-order-date, .member-order-lines p, .member-order-summary { color: var(--muted); font-size: .85rem; }
.member-order-badge { padding: .25rem .5rem; border-radius: .3rem; background: #edf0f1; font-size: .84rem; font-weight: 700; }
.member-order-lines { list-style: none; padding: 0; margin: .6rem 0; }
.member-order-lines li, .member-order-summary { padding-block: .55rem; border-top: 1px solid var(--line); }
.member-review-link { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; font-weight: 700; }
@media (min-width: 760px) {
  .member-workspace { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.25rem; }
  .member-navigation { grid-template-columns: minmax(0, 1fr); }
  .member-box form.member-order-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
  .member-order-search input, #accountProfile .member-order-search button { margin: 0; }
  .member-order-search button { min-height: 48px; }
}
