* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.5 system-ui, sans-serif; color: #202124; background: #f5f7fa; }
main { width: 100%; max-width: 960px; margin: 0 auto; padding: 16px; min-width: 0; }
main.account-narrow { max-width: 480px; }
main.account-medium { max-width: 720px; }
a { color: #164ea5; }
form { display: grid; gap: 1rem; margin: 1rem 0; width: 100%; }
.auth-form { max-width: 30rem; }
.auth-form button { width: 100%; min-height: 48px; }
.login-forms { display: grid; gap: 12px; margin: 1rem 0; }
.login-forms .auth-form { margin: 0; }
.login-forms button { height: 48px; }
.google-login-button { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 1px solid #dadce0; color: #3c4043; }
.google-login-button svg { flex: 0 0 20px; }
.password-requirements { margin: 0; padding-left: 24px; color: #d32f2f; }
.password-requirements .invalid { color: #d32f2f; }
.password-requirements .valid { color: #2e7d32; }
label { display: grid; gap: .25rem; }
.inline { display: flex; align-items: center; gap: .5rem; }
input, select, textarea, button { font: inherit; border-radius: .3rem; padding: .6rem; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #626b77; color: #202124; background: white; }
input[type="radio"] { width: auto; }
button { cursor: pointer; background: var(--color-primary); color: #fff; border: 2px solid #164ea5; }
fieldset, section { min-width: 0; border: 1px solid #d5d9df; padding: 1rem; margin-block: 1rem; border-radius: .5rem; background: white; }
.notice, .error { padding: 1rem; border-radius: .4rem; overflow-wrap: anywhere; }
.notice { background: #fff0b5; color: #533c00; }
.error { background: #ffe4e4; color: #8b0000; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .6rem; border: 1px solid #d5d9df; text-align: left; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3 { overflow-wrap: anywhere; }
footer { padding: 1rem; text-align: center; }
:focus-visible { outline: 3px solid #d78c00; outline-offset: 3px; }
.profile-avatar .customer-avatar { display: inline-flex; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.profile-avatar .customer-initials { align-items: center; justify-content: center; background: var(--color-primary); color: white; font-size: 2rem; font-weight: bold; }
.orders-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.order-card { min-width: 0; border: 1px solid #d5d9df; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); background: white; padding: 16px; transition: transform .15s ease; display: flex; flex-direction: column; }
.order-card:hover { transform: translateY(-2px); }
.order-card-header { display: grid; padding: 0; border: 0; gap: 8px; }
.order-card-header h2 { font-size: 1rem; margin: 0; }
.payment-badge { border-radius: 16px; padding: 4px 10px; justify-self: start; font-size: .875rem; }
.paid { background: #d7f0dd; color: #155624; }
.unpaid { background: #fff0b5; color: #533c00; }
.order-products { list-style: none; padding: 0; margin: 0 0 16px; overflow-wrap: anywhere; display: grid; gap: 16px; }
.order-product { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.order-product-image { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; object-fit: cover; }
.order-product-placeholder { background: #edf0f3; }
.order-product-details { min-width: 0; flex: 1; }
.order-product-details p { margin: 4px 0 0; }
.payment-method { display: inline-flex; align-items: center; gap: 8px; background: #f0f3f8; color: #202124; }
.payment-method svg { flex: 0 0 24px; }
.order-card-actions { display: grid; gap: 8px; padding: 0; margin-top: auto; text-align: left; }
.order-card-actions a { display: block; border: 1px solid #d5d9df; border-radius: 6px; padding: 8px; text-decoration: none; }
.orders-empty { text-align: center; padding: 32px 16px; }
@media (prefers-reduced-motion: reduce) { .order-card { transition: none; } .order-card:hover { transform: none; } }
