/* CUSTOMER_MY_ACCOUNT_UI_V1 */

/* ---------------------------------------------------------
   Shared top-account avatar
--------------------------------------------------------- */

.vsb-account-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vsb-account-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eee9e3;
    border: 1px solid rgba(35, 31, 28, 0.14);
    color: #2f2a26;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.vsb-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vsb-account-avatar-fallback {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}


/* ---------------------------------------------------------
   My Account
--------------------------------------------------------- */

.vsb-account-profile-card {
    display: grid;
    gap: 24px;
}

.vsb-profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--vsb-line);
}

.vsb-profile-photo-wrap {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.vsb-profile-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #f2eee9,
            #e2dbd3
        );
    border: 1px solid rgba(35, 31, 28, 0.14);
    box-shadow: 0 10px 30px rgba(35, 31, 28, 0.10);
}

.vsb-profile-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.vsb-profile-photo-initials {
    font-size: 28px;
    font-weight: 900;
    color: #3b342f;
    letter-spacing: 0.02em;
}

.vsb-profile-identity-copy {
    min-width: 0;
}

.vsb-profile-identity-copy h2 {
    margin: 4px 0 7px;
}

.vsb-profile-identity-copy p {
    margin: 0;
}

.vsb-profile-form {
    display: grid;
    gap: 22px;
}

.vsb-profile-section {
    display: grid;
    gap: 14px;
}

.vsb-profile-section + .vsb-profile-section {
    padding-top: 20px;
    border-top: 1px solid var(--vsb-line);
}

.vsb-profile-section-heading {
    display: grid;
    gap: 4px;
}

.vsb-profile-section-heading h3 {
    margin: 0;
    font-size: 17px;
}

.vsb-profile-section-heading p {
    margin: 0;
    color: var(--vsb-muted);
    font-size: 13px;
}

.vsb-profile-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vsb-profile-grid label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--vsb-ink);
    font-size: 13px;
    font-weight: 900;
}

.vsb-profile-grid label > span {
    color: var(--vsb-muted);
    font-size: 12px;
}

.vsb-profile-field-full {
    grid-column: 1 / -1;
}

.vsb-profile-static-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.vsb-profile-static-label {
    color: var(--vsb-muted);
    font-size: 12px;
    font-weight: 900;
}

.vsb-profile-identity-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 46px;
    padding: 6px 0 8px;
    border-bottom: 1px solid #ebe5df;
}

.vsb-profile-identity-value {
    min-width: 0;
    color: var(--vsb-ink);
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.vsb-profile-identity-line
.vsb-profile-field-status {
    margin-top: 0;
}

.vsb-profile-field-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    margin-top: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.vsb-profile-status-ok {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.vsb-profile-status-neutral {
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}

.vsb-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 720px) {

    .vsb-profile-identity {
        align-items: flex-start;
    }

    .vsb-profile-photo {
        width: 92px;
        height: 92px;
    }

    .vsb-profile-grid {
        grid-template-columns: 1fr;
    }

    .vsb-profile-field-full {
        grid-column: auto;
    }
}

@media (max-width: 480px) {

    .vsb-profile-identity {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .vsb-profile-photo {
        width: 104px;
        height: 104px;
    }

    .vsb-profile-actions {
        display: grid;
    }

    .vsb-profile-actions > * {
        width: 100%;
    }
}


/* Profile image interaction */

.vsb-profile-photo[role="button"] {
    cursor: pointer;
    outline: none;
}

.vsb-profile-photo[role="button"]:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 0, 70, 0.14),
        0 10px 30px rgba(35, 31, 28, 0.10);
}

.vsb-profile-photo[aria-busy="true"] {
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}

/* KAS_PROFILE_STATUS_TEXT_V1
 * Text-only mobile/email confirmation states.
 * Existing verification logic and layout preserved.
 */
body.kas-unified #vsbProfileMobileStatus.vsb-profile-field-status,
body.kas-unified #vsbProfileEmailStatus.vsb-profile-field-status {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
}

body.kas-unified #vsbProfileMobileStatus.vsb-profile-status-ok,
body.kas-unified #vsbProfileEmailStatus.vsb-profile-status-ok {
    color: #22C55E !important;
    -webkit-text-fill-color: #22C55E !important;
}

body.kas-unified #vsbProfileMobileStatus.vsb-profile-status-neutral,
body.kas-unified #vsbProfileEmailStatus.vsb-profile-status-neutral {
    color: #FACC15 !important;
    -webkit-text-fill-color: #FACC15 !important;
}
