/* account page */

.acct-inner { max-width: 860px; margin: 0 auto; padding: 34px 0 16px; }

/* ---------- logged out ---------- */
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head p { margin-top: 6px; }
.auth-tabs { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-form { padding: 26px; }
.auth-form[hidden] { display: none; }
.form-error {
  color: var(--sale);
  font-size: 13.5px;
  background: var(--sale-t);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.form-error[hidden] { display: none; }
.auth-form .btn-block { margin-top: 4px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.linkish {
  color: var(--spruce);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 2px;
}
.linkish:hover { color: var(--spruce-2); }

/* ---------- logged in ---------- */
.acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.perks { margin-bottom: 28px; }
.perks h2 { font-size: 18px; margin-bottom: 6px; }
.perk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.perks h2 + .perk { border-top: 0; padding-top: 8px; }
.perk:last-child { padding-bottom: 0; }
.perk-info { min-width: 0; }
.perk-code {
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 15px;
  color: var(--spruce-2);
}
.perk-desc { font-size: 13px; color: var(--ink-2); }

.orders h2 { font-size: 18px; margin-bottom: 14px; }
.order {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}
.order > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.order > summary::-webkit-details-marker { display: none; }
.order > summary:hover .o-no { color: var(--spruce); }
.o-no { font-weight: 700; letter-spacing: .02em; }
.o-date { font-size: 13px; }
.o-total { margin-left: auto; }
.order > summary::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink-2);
  border-bottom: 1.6px solid var(--ink-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease-out;
}
.order[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.o-items {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  background: var(--bone);
}
.o-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 4px 0;
}
.oi-name { min-width: 0; }
.oi-qty { white-space: nowrap; }

.sk-order { height: 56px; margin-bottom: 12px; }

@media (max-width: 640px) {
  .acct-inner { padding: 24px 0 12px; }
  .auth-form { padding: 20px 16px; }
  .order > summary { padding: 12px 14px; }
  .o-items { padding: 10px 14px; }
}
