/* Retail identity forms; wholesale keeps its layout and action colors. */
.identity-page .form-control, .identity-page .btn { min-height: 44px; }
.storefront .identity-page { margin-top: 32px !important; margin-bottom: 48px !important; color: #212529; }
.storefront .identity-auth-column { flex: 0 1 560px; max-width: 560px; width: 100%; }
.storefront .identity-panel { min-width: 0; border: 1px solid var(--ff-border); border-radius: 14px; background: #fff; }
.storefront .identity-panel > .card-body { padding: 28px !important; }
.storefront .identity-panel .storefront-page-title { margin: 0 0 24px; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.storefront .identity-page p { overflow-wrap: anywhere; }
.storefront .identity-intro, .storefront .identity-help { color: #756b71; line-height: 1.6; }
.storefront .identity-intro { margin: 0 0 24px; }
.storefront .identity-help { margin: 8px 0 0; font-size: .875rem; }
.storefront .identity-field { margin-bottom: 20px; min-width: 0; }
.storefront .identity-page .form-label { margin-bottom: 7px; color: #51484e; font-size: .9rem; font-weight: 500; }
.storefront .identity-page .form-control { min-width: 0; min-height: 46px; border-color: var(--ff-border); border-radius: 8px; color: #212529; background: #fff; font-size: 1rem; }
.storefront .identity-page .form-control:disabled, .storefront .identity-page .form-control[readonly] { color: #756b71; background: #f7f5f6; }
.storefront .identity-page .form-control:focus { border-color: var(--ff-burgundy); box-shadow: 0 0 0 .2rem rgb(140 18 56 / 12%); }
.storefront .identity-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; white-space: normal; }
.storefront .identity-primary { width: 100%; }
.storefront .identity-page .form-check { min-height: 28px; margin-bottom: 16px; padding-left: 1.75rem; }
.storefront .identity-page .form-check-input { width: 1.1rem; height: 1.1rem; margin-left: -1.75rem; border-color: #9e8793; }
.storefront .identity-page .form-check-input:checked { background-color: var(--ff-burgundy); border-color: var(--ff-burgundy); }
.storefront .identity-page .form-check-input:focus { border-color: var(--ff-burgundy); box-shadow: 0 0 0 .2rem rgb(140 18 56 / 12%); }
.storefront .identity-page .form-check-label { min-height: 28px; line-height: 1.6; overflow-wrap: anywhere; }
.storefront .identity-page .text-danger { font-size: .875rem; overflow-wrap: anywhere; }
.storefront .identity-page .field-validation-error { display: block; margin-top: 5px; }
.storefront .identity-page .validation-summary-errors { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #ebc7d0; border-radius: 8px; background: #fcf5f6; }
.storefront .identity-page .validation-summary-errors ul { margin-bottom: 0; padding-left: 18px; }
.storefront .identity-page .alert { overflow-wrap: anywhere; }
.storefront .identity-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; }
.storefront .identity-links > a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.5; }
.storefront .identity-secondary { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ff-border); }
.storefront .identity-secondary .btn { width: 100%; }
.storefront .identity-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.storefront .identity-agreements { margin: 24px 0; font-size: .875rem; }
.storefront .identity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.storefront .identity-actions .btn { flex: 1 1 160px; }
.storefront .identity-confirmed { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #35634d; font-size: .875rem; }
.storefront .identity-account-heading { margin-bottom: 24px; }
.storefront .identity-account-heading .storefront-page-title { margin: 0 0 8px; }
.storefront .identity-account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 24px; }
.storefront .identity-account-sidebar { display: grid; gap: 16px; min-width: 0; }
.storefront .identity-bonus { padding: 20px; }
.storefront .identity-bonus h2 { margin: 0 0 10px; color: #51484e; font-family: inherit; font-size: .9rem; font-weight: 500; }
.storefront .identity-bonus-amount { margin: 0; color: var(--ff-burgundy); }
.storefront .identity-bonus-amount strong { font-size: 1.85rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.storefront .identity-bonus-amount span { color: #756b71; font-size: .875rem; }
.storefront .identity-bonus .identity-help { margin-top: 12px; font-size: .8rem; }
.storefront .identity-account-nav { padding: 10px; }
.storefront .identity-account-nav .nav-link { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border-radius: 8px; color: #51484e; }
.storefront .identity-account-nav .nav-link:hover { color: var(--ff-burgundy); background: var(--ff-soft); }
.storefront .identity-account-nav .nav-link.active { color: #fff; background: var(--ff-burgundy); }
.storefront .identity-account-content { padding: 28px; }
.storefront .identity-account-content h2 { margin: 0 0 24px; color: var(--ff-plum); font-family: inherit; font-size: 1.2rem; font-weight: 600; text-transform: none; }
.storefront .identity-account-form { max-width: 540px; }
.storefront .identity-account-content .identity-primary { width: auto; min-width: 180px; }
@media (max-width: 991.98px) {
    .storefront .identity-account-layout { grid-template-columns: 1fr; gap: 16px; }
    .storefront .identity-account-nav .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
}
@media (max-width: 575.98px) {
    .storefront .identity-page { margin-top: 24px !important; margin-bottom: 32px !important; }
    .storefront .identity-panel > .card-body, .storefront .identity-account-content { padding: 22px 16px !important; }
    .storefront .identity-name-fields { grid-template-columns: 1fr; gap: 0; }
    .storefront .identity-account-nav .nav { grid-template-columns: 1fr; }
    .storefront .identity-account-content .identity-primary { width: 100%; min-width: 0; }
}
