/**
 * eSIM WooCommerce Product Page Styles
 */

.esim-product-options {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.esim-option-group {
    margin-bottom: 20px;
}

.esim-option-group:last-child {
    margin-bottom: 0;
}

.esim-option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.esim-option-group .required {
    color: #dc3545;
}

/* Country Select */
.esim-country-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}

.esim-country-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Data Packages */
.esim-data-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.esim-package-option {
    position: relative;
    cursor: pointer;
}

.esim-package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.esim-package-label {
    display: block;
    padding: 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.esim-package-option input[type="radio"]:checked + .esim-package-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.esim-package-option:hover .esim-package-label {
    border-color: #667eea;
}

.esim-package-label strong {
    display: block;
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.esim-package-validity {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.esim-package-price {
    display: block;
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

/* Loading and messages */
.esim-loading,
.esim-select-country-message,
.esim-no-packages,
.esim-error {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.esim-error {
    color: #dc3545;
}

/* Price Display */
.esim-price-display {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.esim-total-label {
    font-size: 14px;
    opacity: 0.9;
}

.esim-total-price {
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
}

/* Disabled/Not Available Packages */
.esim-package-option.esim-package-disabled .esim-package-label {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.esim-package-option.esim-package-disabled:hover .esim-package-label {
    border-color: #ddd;
}

.esim-not-available {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .esim-data-packages {
        grid-template-columns: 1fr;
    }

    .esim-package-label strong {
        font-size: 20px;
    }
}
