/* ===== POPUP DE UPSELL - ESTILO DO SITE FREE FIRE ===== */
/* Seguindo as cores e padrões visuais do site original */

/* Variáveis do site */
:root {
    --upsell-bg-base: #f5f5f5;
    --upsell-bg-card: #ffffff;
    --upsell-text-title: #151515;
    --upsell-text-body: #666666;
    --upsell-text-muted: #999999;
    --upsell-primary-red: #D81A0D;
    --upsell-primary-red-dark: #b81509;
    --upsell-border-color: rgba(0, 0, 0, 0.08);
    --upsell-green: #22c55e;
}

/* Overlay do popup */
.upsell-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.upsell-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container principal - igual aos modais do site */
.upsell-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 340px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.upsell-overlay.active .upsell-popup {
    transform: scale(1);
}

/* Botão de fechar - estilo do site */
.upsell-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.upsell-close-btn:hover {
    color: #333;
}

/* Área da imagem/ícone - igual ao modal do site */
.upsell-image-section {
    width: 100%;
    padding: 25px 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.upsell-diamond-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upsell-diamond-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Badge de desconto - estilo promo-badge do site */
.upsell-promo-badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Conteúdo do popup - igual modal-content */
.upsell-content {
    padding: 20px;
    text-align: center;
}

/* Título - igual modal-title */
.upsell-title {
    font-size: 18px;
    font-weight: 600;
    color: #151515;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Subtítulo */
.upsell-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Card de detalhes da oferta */
.upsell-offer-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.upsell-offer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.upsell-offer-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.upsell-offer-label {
    font-size: 13px;
    color: #666;
}

.upsell-offer-value {
    font-size: 13px;
    font-weight: 600;
    color: #151515;
    display: flex;
    align-items: center;
    gap: 4px;
}

.upsell-offer-value img {
    width: 14px;
    height: 14px;
}

/* Seção de preços */
.upsell-price-section {
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--upsell-border-color);
    border-radius: 8px;
}

.upsell-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.upsell-price-new {
    font-size: 28px;
    font-weight: 700;
    color: var(--upsell-primary-red);
}

.upsell-price-new small {
    font-size: 16px;
    font-weight: 600;
}

.upsell-savings {
    display: inline-block;
    background: var(--upsell-green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Timer - discreto, estilo do site */
.upsell-timer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.upsell-timer-text {
    font-size: 12px;
    color: #dc2626;
}

.upsell-timer {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
}

/* Botão principal - igual btn-comprar e modal-btn-ok */
.upsell-btn-accept {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--upsell-primary-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
}

.upsell-btn-accept:hover {
    background-color: var(--upsell-primary-red-dark);
}

.upsell-btn-accept:active {
    transform: scale(0.98);
}

/* Botão secundário - discreto */
.upsell-btn-decline {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #999;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.upsell-btn-decline:hover {
    color: #666;
}

/* Trust badges - estilo limpo */
.upsell-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.upsell-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}

.upsell-trust-item svg {
    width: 12px;
    height: 12px;
    fill: var(--upsell-green);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 400px) {
    .upsell-popup {
        width: 95%;
        max-width: none;
    }
    
    .upsell-content {
        padding: 16px;
    }
    
    .upsell-title {
        font-size: 16px;
    }
    
    .upsell-price-new {
        font-size: 24px;
    }
    
    .upsell-btn-accept {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Animação de entrada - igual ao site */
@keyframes upsellSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.upsell-overlay.active .upsell-popup {
    animation: upsellSlideIn 0.3s ease;
}
