* { box-sizing: border-box; }
.customer-account {
    margin: 0;
    background: #f8f3f8;
    color: #171e4a;
    font: 16px/1.5 Arial, sans-serif;
}
.customer-header { padding: 16px max(20px, calc((100% - 1080px) / 2)); background: #fffdfb; border-bottom: 1px solid #eadfea; }
.customer-header a { text-decoration: none; color: inherit; font: bold 32px Georgia, serif; letter-spacing: -1px; }
.customer-header a span { color: #d93345; }
.customer-card {
    width: min(100% - 32px, 470px);
    margin: clamp(20px, 7vw, 64px) auto;
    padding: clamp(18px, 5vw, 36px);
    border: 1px solid #eadfea;
    border-radius: 16px;
    box-shadow: 0 14px 45px #24183a12;
    background: #fffdfb;
    overflow-wrap: anywhere;
}
.customer-card h1 { margin: 0 0 16px; font: bold clamp(29px, 7vw, 39px)/1.14 Georgia, serif; }
.customer-card a { color: #293679; text-underline-offset: 3px; }
.customer-form { display: grid; gap: 8px; }
.customer-form label { font-size: .875rem; font-weight: bold; }
.customer-form input,
.customer-form textarea,
.customer-form button,
.customer-logout button {
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #aca4b5;
    border-radius: 8px;
    color: inherit;
    font: inherit;
}
.customer-form input { width: 100%; background: #fff; }
.customer-form textarea { width: 100%; background: #fff; resize: vertical; }
.customer-form button { margin-top: 5px; background: #171e4a; border-color: #171e4a; color: #fff; cursor: pointer; font-weight: bold; }
.customer-form-help { margin: 0; color: #554a64; font-size: .8125rem; }
.customer-logout button { margin-top: 12px; background: #fff; cursor: pointer; }
.customer-status, .customer-errors { padding: 10px 12px; border-radius: 8px; }
.customer-status { background: #eaf1ff; }
.customer-errors { padding-left: 30px; background: #fff0f1; color: #772036; }
.customer-account :focus-visible { outline: 2px solid #293679; outline-offset: 3px; }

.customer-card--auth {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    width: min(100% - 32px, 900px);
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
}
.customer-card--auth .customer-card-content { padding: clamp(20px, 4vw, 42px); min-width: 0; }
.customer-auth-photo { position: relative; min-width: 0; min-height: 100%; background: #f3dfd6; }
.customer-auth-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.customer-auth-footer { background: transparent; color: #575465; text-align: center; padding: 0 16px 24px; font-size: .8125rem; }
.customer-oauth { display: grid; gap: 7px; margin-bottom: 8px; }
.customer-oauth button {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 8px 10px; border: 1px solid #ddd7df; border-radius: 8px;
    color: #2d2b31; background: #fff; font: inherit; font-size: .875rem; font-weight: 700;
}
.customer-oauth button:disabled { cursor: default; opacity: 1; }
.customer-oauth-note { margin: 0 0 16px; font-size: .75rem; line-height: 1.4; color: #545061; }
.customer-register-prompt { margin-top: 15px; font-size: .875rem; }
.customer-card--portal { width: min(100% - 32px, 960px); }
.customer-portal-nav, .customer-portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-portal-nav { margin-bottom: 24px; }
.customer-portal-nav a, .customer-portal-actions a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px;
    border: 1px solid #ded6e0; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: .875rem;
}
.customer-portal-nav a[aria-current="page"] { background: #171e4a; border-color: #171e4a; color: #fff; }
.customer-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.customer-portal-list { display: grid; gap: 12px; margin-bottom: 16px; }
.customer-portal-grid h2, .customer-portal-item h2 { margin: 0 0 8px; font-size: 1.1rem; }
.customer-portal-item h3 { margin: 0; font-size: 1rem; }
.customer-portal-item { padding: 16px; background: #fff; border: 1px solid #e6dfe7; border-radius: 10px; }
.customer-portal-grid article + article { margin-top: 10px; }
.customer-portal-item p, .customer-portal-item ul { margin: 7px 0 12px; }
.customer-profile-form { max-width: 420px; }
.customer-favorite-item { display: flex; align-items: center; gap: 14px; }
.customer-favorite-item img { object-fit: contain; border-radius: 8px; background: #f7f2f4; }
.customer-text-button {
    min-height: 44px; padding: 6px 10px; border: 0; color: #293679; background: transparent;
    text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer;
}
@media (max-width: 768px) {
    .customer-card--auth { display: block; max-width: 470px; }
    .customer-card--auth .customer-auth-photo { display: none; }
    .customer-portal-grid { grid-template-columns: 1fr; }
}
.customer-form select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #a8a5ae;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}
.customer-address-usage {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e9f3fa;
    font-size: .8rem;
    font-weight: 700;
}
