/* Enhanced Pricing Tiers Styles */

.enhanced-pricing .enhanced-label {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.enhanced-pricing input[type="radio"]:checked + .enhanced-label {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pricing-details strong {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.pricing-note {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.current-tier-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-tier-badge.countdown {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: pulse 2s infinite;
    text-transform: none;
    letter-spacing: 0.3px;
    font-weight: 500;
    font-size: 13px;
}

.countdown-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.pricing-tiers-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.pricing-tier.active-tier {
    background: #ecfdf5;
    border-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.pricing-tier.upcoming {
    background: #f9fafb;
    border-color: #d1d5db;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.pricing-tier.upcoming:hover {
    transform: none;
    box-shadow: none;
}

.pricing-tier.expired {
    background: #fee2e2;
    border-color: #ef4444;
    opacity: 0.7;
}

.tier-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tier-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.tier-price {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.tier-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-status:empty {
    display: none;
}

.tier-status.active,
.tier-status.current {
    background: #10b981;
    color: white;
}

.tier-status.upcoming {
    background: #f59e0b;
    color: white;
}

.tier-status.expired {
    background: #ef4444;
    color: white;
}

/* Countdown timer specific styling */
.tier-status.countdown {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 500;
    animation: pulse 2s infinite;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 13px;
}

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

.tier-dates {
    margin-top: 5px;
}

.date-info {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .current-tier-badge {
        align-self: flex-start;
    }
    
    .pricing-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tier-status {
        align-self: flex-end;
    }
}

/* Animation for tier transitions */
.pricing-tier {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disabled styling for upcoming pricing options */
.enhanced-pricing.disabled .enhanced-label {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e9ecef;
}

.enhanced-pricing.disabled input[type="radio"] {
    cursor: not-allowed;
    pointer-events: none;
}

.enhanced-pricing.disabled .enhanced-label:hover {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
}

.enhanced-pricing.disabled .current-tier-badge {
    background: #6c757d;
    opacity: 0.7;
}

.enhanced-pricing.disabled .current-price {
    color: #6c757d;
}

.enhanced-pricing.disabled .pricing-details strong {
    color: #6c757d;
}

/* Hover effects */
.enhanced-pricing:hover .enhanced-label {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.enhanced-pricing.disabled:hover .enhanced-label {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
}

.pricing-tier:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Simple pricing layout for products without tiers */
.simple-pricing {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

.simple-price {
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
    background: transparent;
    padding: 0;
    margin: 0;
}
