/**
 * BN94 Core — Customer Status Frontend Styles
 * My Account banner + Checkout incentive bar
 */

/* ===== MY ACCOUNT BANNER ===== */
.bn94-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%);
    border: 1px solid #FFE082;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.bn94-status-banner__greeting {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.bn94-status-banner__level {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.bn94-status-banner__progress {
    margin-top: 10px;
}

.bn94-status-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.bn94-status-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #FFB300, #FF8F00);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.bn94-status-banner__hint {
    font-size: 12px;
    color: #888;
}

.bn94-status-banner__stats {
    display: flex;
    gap: 12px;
}

.bn94-status-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    min-width: 70px;
}

.bn94-status-stat__value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.bn94-status-stat__label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== STATUS BADGES ===== */
.bn94-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bn94-status-badge--basic {
    background: #E3F2FD;
    color: #1565C0;
}

.bn94-status-badge--verified {
    background: #E8F5E9;
    color: #2E7D32;
}

.bn94-status-badge--vip {
    background: linear-gradient(135deg, #FFD54F, #FF8F00);
    color: #fff;
    box-shadow: 0 1px 4px rgba(255, 143, 0, 0.3);
}

.bn94-status-badge--restricted {
    background: #FFEBEE;
    color: #C62828;
}

.bn94-status-discount {
    font-size: 12px;
    font-weight: 600;
    color: #2E7D32;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== CHECKOUT STATUS BAR ===== */
.bn94-checkout-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #FFFDE7;
    border: 1px solid #FFE082;
    border-radius: 8px;
}

.bn94-checkout-status__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bn94-checkout-status__discount {
    font-size: 14px;
    font-weight: 700;
    color: #2E7D32;
}

.bn94-checkout-status__hint {
    font-size: 13px;
    color: #555;
}

.bn94-checkout-status__hint strong {
    color: #FF8F00;
}

/* Guest incentive */
.bn94-checkout-status--guest {
    background: #E3F2FD;
    border-color: #90CAF9;
}

.bn94-checkout-status__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.bn94-checkout-status__text {
    font-size: 13px;
    color: #333;
}

.bn94-checkout-status__text a {
    color: #1565C0;
    font-weight: 600;
    text-decoration: underline;
}

.bn94-checkout-status__text strong {
    color: #2E7D32;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .bn94-status-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bn94-status-banner__stats {
        width: 100%;
        justify-content: flex-start;
    }

    .bn94-checkout-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== AVATAR В ПЛАШКЕ (перенесён из WPCode-сниппета) ===== */
.bn94-status-banner__avatar {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
}
.bn94-status-banner__left {
    flex: 1 1 auto;
    min-width: 0;
}
.bn94-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background: #fff;
}
.bn94-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #B28704;
    background: #FFF3C4;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.bn94-avatar-form {
    margin: 0;
}
.bn94-avatar-edit {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FF8F00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.15s, transform 0.15s;
}
.bn94-avatar-edit:hover {
    background: #F57C00;
    transform: scale(1.08);
}
.bn94-avatar-edit input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Телефон: аватар сверху, всё в колонку */
@media (max-width: 640px) {
    .bn94-status-banner {
        flex-wrap: wrap;
    }
    .bn94-status-banner__avatar {
        order: -1;
    }
}
