/* Universal Theme-Compatible Styles */
:root {
    --sc-selection-border: #007cba;
    --sc-selection-bg: rgba(0, 124, 186, 0.08);
    --sc-selection-indicator: #007cba;
    --sc-border-light: rgba(0, 0, 0, 0.1);
    --sc-bg-light: rgba(0, 0, 0, 0.02);
    --sc-text-color: inherit;
}

@media (prefers-color-scheme: dark) {
    :root {
        --sc-selection-border: #4da7db;
        --sc-selection-bg: rgba(77, 167, 219, 0.15);
        --sc-selection-indicator: #4da7db;
        --sc-border-light: rgba(255, 255, 255, 0.1);
        --sc-bg-light: rgba(255, 255, 255, 0.05);
    }
}

.variation-radio-container {
    width: 100%;
    margin: 1.5rem 0;
}

.variation-radio-option {
    position: relative;
    margin: 0.75rem 0;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--sc-border-light);
    border-radius: 4px;
    background: var(--sc-bg-light);
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--sc-text-color);
    /* Ensure consistent height */
    min-height: 60px;
    display: flex;
    align-items: center;
}

.variation-radio-option.selected {
    border-color: var(--sc-selection-border);
    background: var(--sc-selection-bg);
    box-shadow: 0 0 0 1px var(--sc-selection-border);
}

.variation-radio-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.variation-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variation-radio-option > label {
    display: block;
    cursor: pointer;
    width: 100%;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.option-text {
    font-weight: 500;
}

.price-stock {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    /* Ensure consistent font size */
    font-size: 0.95em;
}

/* ===== PRICE STYLING FIXES ===== */
/* All prices inherit from product page */
.price-container,
.price-container * {
    color: inherit !important;
    /* Fix font size consistency */
    font-size: inherit !important;
}

/* Regular price styling */
.price-container .amount {
    font-weight: 600;
}

/* Strike price styling */
.price-container del {
    opacity: 0.7;
    margin-right: 5px;
}

.price-container del .amount {
    text-decoration: line-through !important;
}

/* Sale price styling */
.price-container ins {
    text-decoration: none !important;
}

/* Stock text styling - same as price color */
.stock {
    font-size: inherit;
    color: inherit !important;
    opacity: 0.8;
}
/* ===== END PRICE FIXES ===== */

/* RADIO VERTICAL CENTERING */
.radio-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1rem;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.variation-radio-option.selected .radio-indicator {
    border-color: var(--sc-selection-indicator);
}

.variation-radio-option.selected .radio-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sc-selection-indicator);
}

.variation-radio-option:focus-within {
    outline: 2px solid var(--sc-selection-border);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .option-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-stock {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .price-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
}