/**
 * Growup Business - Post-Purchase 1-Click Upsell Stylesheet (CartFlows Pro Style).
 *
 * Designed for high-converting post-checkout upsell funnels.
 *
 * @package GrowupBusiness
 */

.growup-upsell-container {
    max-width: 860px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

.growup-upsell-container * {
    box-sizing: border-box;
}

/* Top Countdown Timer Banner */
.growup-upsell-top-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.growup-upsell-timer-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
}

.growup-upsell-countdown {
    background: #ffffff;
    color: #dc2626;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    display: inline-block;
    animation: timerPulse 1.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Card */
.growup-upsell-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.growup-upsell-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 30px;
    text-align: center;
}

.growup-upsell-fire-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.growup-upsell-badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.growup-upsell-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
}

.growup-upsell-subtitle {
    margin: 0;
    font-size: 15px;
    color: #16a34a;
    font-weight: 700;
}

/* Card Body */
.growup-upsell-body {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 30px;
    padding: 32px;
    align-items: center;
}

.growup-upsell-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.growup-upsell-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.growup-upsell-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Content Details */
.growup-upsell-prod-name {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.growup-upsell-price-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.growup-upsell-label {
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

.growup-upsell-reg-price {
    font-size: 15px;
    color: #94a3b8;
}

.growup-upsell-deal-price {
    font-size: 22px;
    font-weight: 900;
    color: #16a34a;
}

.growup-upsell-free-shipping {
    width: 100%;
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    margin-top: 4px;
}

.growup-upsell-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 18px 0;
}

.growup-upsell-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.growup-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}

.growup-benefit-item span {
    background: #dcfce7;
    color: #16a34a;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

/* Actions */
.growup-upsell-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.growup-upsell-accept-btn {
    width: 100%;
    padding: 18px 24px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.growup-upsell-accept-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
}

.growup-upsell-accept-btn:disabled {
    background: #94a3b8 !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.growup-upsell-skip-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 8px;
    transition: color 0.15s ease;
}

.growup-upsell-skip-btn:hover {
    color: #475569;
    text-decoration: underline;
}

.growup-upsell-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Footer Guarantees */
.growup-upsell-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    justify-content: space-around;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .growup-upsell-container {
        margin: 15px auto;
        padding: 0 10px;
    }

    .growup-upsell-header {
        padding: 20px 16px;
    }

    .growup-upsell-title {
        font-size: 19px;
    }

    .growup-upsell-subtitle {
        font-size: 13.5px;
    }

    .growup-upsell-body {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 20px;
    }

    .growup-upsell-accept-btn {
        padding: 16px 18px;
        font-size: 15.5px;
    }

    .growup-upsell-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
