/* Fibra STAGING — customer account (кабінет) styles.
 * Reuses design tokens from shop-style.css (--primary, --border, --bg, --radius…). */

.acct-page { padding: 28px 0 64px; background: var(--bg); min-height: 70vh; }
.acct-h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 8px 0 20px; }

.acct-loading, .acct-empty, .acct-notice p { color: var(--text-muted); }
.acct-loading { padding: 24px 0; }

.acct-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; max-width: 640px; margin-bottom: 28px;
}
.acct-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.acct-notice code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* login card */
.acct-login p { color: var(--text-muted); margin-bottom: 16px; }
#acct-login-btn { min-height: 44px; }

/* profile */
.acct-profile__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acct-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.acct-avatar--ph { display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--bg); }
.acct-name { font-weight: 700; font-size: 17px; }
.acct-email { color: var(--text-muted); font-size: 14px; word-break: break-all; }

.acct-field { margin-bottom: 16px; }
.acct-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.acct-field__row { display: flex; gap: 8px; }
.acct-field__row input {
  flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
}
.acct-field__row input:focus { outline: none; border-color: var(--primary); }
.acct-hint { color: var(--text-muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }

.acct-logout {
  background: none; border: none; color: var(--text-muted); font: inherit;
  cursor: pointer; text-decoration: underline; padding: 4px 0; font-size: 14px;
}
.acct-logout:hover { color: var(--primary); }

/* orders */
.acct-orders-title { font-size: 20px; font-weight: 800; margin: 8px 0 16px; }
.acct-orders { display: grid; gap: 14px; max-width: 640px; }
.acct-empty a { color: var(--primary); font-weight: 600; }

.acct-order {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px;
}
.acct-order__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acct-order__id { font-weight: 700; font-size: 14px; }
.acct-order__date { color: var(--text-muted); font-size: 13px; }
.acct-order__status {
  margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: var(--text-muted); white-space: nowrap;
}
/* Payment/order status chips (keys map to Ukrainian labels in account.js) */
.acct-order__status--paid,
.acct-order__status--done,
.acct-order__status--completed { background: #e7f5ec; color: #1f7a44; }
.acct-order__status--not_paid,
.acct-order__status--unpaid { background: #fef3c7; color: #92400e; }
.acct-order__status--pending { background: #e0edff; color: #1e40af; }
.acct-order__status--new { background: var(--bg); color: var(--text-muted); }
.acct-order__status--canceled,
.acct-order__status--cancelled { background: #fee2e2; color: #b91c1c; }

.acct-order__items { list-style: none; margin: 0 0 12px; padding: 0; }
.acct-order__items li {
  display: flex; justify-content: space-between; gap: 8px; padding: 5px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.acct-order__items li:last-child { border-bottom: none; }
.oi-name { flex: 1; }
.oi-qty { color: var(--text-muted); white-space: nowrap; }

.acct-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-order__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-order__pay {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: #eef2ff; color: #1a56db; white-space: nowrap;
}
.acct-order__total { font-weight: 800; font-size: 16px; color: var(--primary); }

/* header widget */
.acct-widget { display: inline-flex; align-items: center; }
.acct-link {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px;
  color: var(--text); text-decoration: none; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 999px; white-space: nowrap;
}
.acct-link:hover { border-color: var(--primary); color: var(--primary); }
.acct-link__ic { font-size: 15px; line-height: 1; }
.acct-gbtn { display: inline-flex; align-items: center; min-height: 32px; }

/* login hint bar in cart drawer + checkout modal — thin, calm, non-blocking */
.acct-loginbar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 13px; line-height: 1.35;
  background: var(--bg); border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.acct-loginbar__ic { flex: 0 0 auto; font-size: 14px; }
.acct-loginbar__tx { flex: 1 1 auto; min-width: 0; }
.acct-loginbar__tx b { color: var(--text); font-weight: 600; }
.acct-loginbar__act {
  flex: 0 0 auto; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap;
}
.acct-loginbar__act:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .acct-order__foot { flex-direction: column; align-items: stretch; }
  .acct-order__foot .btn { width: 100%; }
  .acct-widget { order: -1; }
}
