.account-demo{max-width:800px}
.account-demo .page-heading{margin-bottom:22px}
.customer-greeting{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.customer-greeting .avatar{width:48px;height:48px;flex:none;margin:0;border-radius:50%}
.customer-greeting small,.customer-greeting strong{display:block}
.customer-greeting small{font-size:9px;font-weight:800;letter-spacing:.1em;color:#9b8d98}
.customer-greeting strong{font-size:17px}
.account-view-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 17px;padding-bottom:2px}
.account-view-tabs::-webkit-scrollbar{display:none}
.account-view-tabs button{flex:none;border:1px solid #e8dce7;border-radius:999px;background:#fff;color:#6c5d68;padding:9px 15px;font-size:12px;font-weight:800}
.account-view-tabs button.active{background:#6f1dc3;color:#fff;border-color:#6f1dc3}
.account-disclaimer{font-size:11px;color:#8c828b;margin:15px 0 0}
.account-demo .surface{margin-bottom:18px}
.loyalty-preview{background:linear-gradient(115deg,#fff 65%,#fff5ee)}
.loyalty-head,.history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.loyalty-head h2{font-size:22px;margin:5px 0 16px}
.loyalty-count{white-space:nowrap;border-radius:999px;background:#f1e3ff;color:#6f1dc3;padding:7px 11px;font-size:12px;font-weight:850}
.loyalty-track{height:10px;overflow:hidden;border-radius:999px;background:#e9e3ed}
.loyalty-track span{display:block;height:100%;border-radius:inherit;background:#7618d9}
.loyalty-preview p{font-size:13px;color:#554e58;line-height:1.5;margin:16px 0 8px}
.loyalty-preview>small{font-size:11px;color:#8c828b}
.history-heading h2{font-size:23px;margin:5px 0 0}
.history-intro{font-size:12px;color:#827681;margin:6px 0 19px}
.history-list{display:grid;gap:10px}
.history-item{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:17px;border:1px solid #eee4e9;border-radius:13px;background:#fff}
.order-confirmation{display:inline-flex;align-items:center;margin:0 0 12px;padding:7px 11px;border:1px solid #bfe7d1;border-radius:999px;background:#ebf9f1;color:#176b43}.order-confirmation[hidden]{display:none}.order-confirmation strong{font-size:11px;line-height:1.25}.history-item.is-confirmed{border:2px solid #22a968;background:#f3fcf7;box-shadow:0 8px 24px rgba(34,169,104,.12)}
.history-item small{color:#978b96;font-size:9px;font-weight:800;letter-spacing:.07em}
.history-item h3{font-size:15px;line-height:1.3;margin:6px 0 3px}
.history-item p{font-size:12px;color:#756b75;margin:0}
.history-status{white-space:nowrap;color:#258759;background:#e9f8ef;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}
body[data-account-screen="orders"] .order-history{margin-top:0}
.account-actions,.address-actions,.form-actions{display:flex;flex-wrap:wrap;gap:9px}
.account-actions{margin:16px 0}
.account-actions button,.address-actions button,.form-actions button{border:1px solid #e6dbe5;background:#fff;color:#6f1dc3;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800}
.account-actions button:first-child,.form-actions button:first-child{background:#6f1dc3;color:#fff;border-color:#6f1dc3}
.address-actions button:last-child{color:#ba2331}
.address-actions button:disabled{color:#248253;background:#eaf8ef;border-color:#d5f0df;cursor:default}
.profile-row>div:nth-child(n+3){border-top:1px solid var(--line)}
.profile-row>div:nth-child(odd){border-left:0}
.addresses-list{display:grid;gap:12px}
.address-entry{display:flex;align-items:flex-start;gap:12px;border:1px solid #eadde7;border-radius:12px;background:#fff8fc;padding:14px}
.address-entry .saved-icon{flex:none}
.address-details{min-width:0;flex:1}
.address-details small,.address-details strong{display:block}
.address-details small{font-size:10px;color:#975e83;font-weight:800;letter-spacing:.06em}
.address-details strong{font-size:14px;margin:5px 0}
.address-details p{font-size:12px;line-height:1.45;color:#716771;margin:0 0 10px}
.address-empty{font-size:13px;color:#756b75;padding:16px;border:1px dashed #e6dbe5;border-radius:12px}
.account-form{display:grid;gap:12px;margin:15px 0 18px;padding:16px;border:1px solid #e9dfea;border-radius:12px;background:#fdfbfe}
.account-form[hidden]{display:none}
.account-form h3{font-size:16px;margin:0 0 2px}
.account-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#5d515b}
.account-form input{width:100%;height:40px;border:1px solid #ddd1de;border-radius:8px;padding:0 11px;background:#fff;color:#25252a}
.account-profile-form{margin-top:16px}
.account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.account-profile-grid .profile-street-field{grid-column:1/-1}
.account-profile-form .form-actions{margin-top:2px}
.address-field-pair{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.form-actions button:last-child{color:#6d636b}
.login-required{max-width:560px;margin:20px auto;text-align:center}
.login-required h1{margin:0 0 10px;font-size:30px}
.login-required p{color:#756b75;margin:0 0 20px}
.login-required .primary-button{display:inline-flex}
.account-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 16px}
.account-auth-tabs button{border:1px solid #e5d9dc;background:#fff;color:#6d6468;border-radius:10px;padding:11px;font-weight:800}
.account-auth-tabs button.active{background:#d40812;border-color:#d40812;color:#fff}
.account-auth-form{display:grid;gap:13px;text-align:left}
.account-auth-form[hidden]{display:none}
.account-auth-form label{display:grid;gap:6px;color:#554f53;font-size:13px;font-weight:750}
.account-auth-form input{width:100%;height:45px;border:1px solid #ddd4d7;border-radius:9px;padding:0 12px;font-size:16px}
.account-auth-form .primary-button{width:100%;justify-content:center;border:0;margin-top:4px}
.account-auth-form>a{text-align:center;color:#c20b16;font-size:13px;font-weight:750}
@media(max-width:650px){
  .account-demo .page-heading h1{margin-top:11px}
  .loyalty-head h2{font-size:19px}
  .history-item{padding:13px}
  .history-status{font-size:9px}
  .address-entry{padding:12px}
  .profile-row>div:nth-child(n){border-left:0}
  .account-profile-grid{grid-template-columns:1fr}
  .account-profile-grid .profile-street-field{grid-column:auto}
}
