/**
 * Frontend CSS for Product Pages
 * 
 * WHERE USED:
 * - Single Product Pages (Simple & Variable Products)
 *   - Subscription widget styling
 *   - Purchase type radio buttons
 *   - Delivery frequency dropdown
 *   - Price display
 *   - Discount badges
 * 
 * ENQUEUED IN:
 * - frontend/class-sfrp-subscription-frontend.php
 *   - Only on product pages (is_product())
 *   - Only when product has subscription configuration
 */

.sf-subscription-widget {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
}

.sf-subscription-widget-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.sf-purchase-options {
    margin-bottom: 15px;
}

.sf-purchase-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sf-purchase-option.sf-subscription-option {
    flex-direction: column;
    align-items: stretch;
}

.sf-purchase-option .sf-option-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sf-purchase-option:last-child {
    margin-bottom: 0;
}

.sf-purchase-option:hover {
    border-color: #999;
}

.sf-purchase-option input[type="radio"]:checked ~ .sf-option-text,
.sf-purchase-option:has(input[type="radio"]:checked) {
    border-color: #000;
    background: #fff;
}

.sf-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.sf-option-label input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #000;
}

.sf-option-text {
    font-weight: 500;
    font-size: 15px;
}

.sf-discount-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.sf-option-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.sf-delivery-frequency-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.sf-delivery-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.sf-delivery-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.sf-delivery-select:focus {
    outline: none;
    border-color: #0073aa;
}

.sf-subscription-option-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-purchase-option .sf-option-main-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sf-option-price {
        margin-top: 8px;
        margin-left: 28px;
    }
}

