/* ========================================
   ALL RADIO BUTTONS SUBSCRIPTION LAYOUT
   Shows all options as individual radio buttons
   UPDATED: Prices only show when radio is checked
   ======================================== */

/* Main wrapper */
.wcsatt-options-wrapper.wcsatt-all-radio-layout {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

/* Hide original prompt section content */
.wcsatt-options-wrapper.wcsatt-all-radio-layout .wcsatt-options-product-prompt {
    margin-bottom: 15px !important;
}

/* New unified radio wrapper */
.wcsatt-unified-radio-wrapper {
    width: 100%;
}

/* Header */
.wcsatt-radio-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    font-family: var(--font-heading, Arial, sans-serif);
}

/* Container for all radio buttons */
.wcsatt-radio-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual radio option */
.wcsatt-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    flex-direction: column;
}
.wcsatt-radio-option:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

/* Radio input */
.wcsatt-radio-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #212529;
    position: absolute;
    left: 20px;
    top: 10px;
}

/* Label container */
.radio-label-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 35px;
    font-family: var(--font-heading, Arial, sans-serif);
}

/* Label text */
.radio-label-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 30px;
}

/* Price display for one-time option - HIDDEN BY DEFAULT */
.wcsatt-radio-option .radio-price {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-left: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show price when radio is checked */
.wcsatt-radio-option.active .radio-price {
    display: block;
    opacity: 1;
}

/* Price container for subscription options - HIDDEN BY DEFAULT */
.wcsatt-radio-option .radio-price-container {
    display: none;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show price container when radio is checked */
.wcsatt-radio-option.active .radio-price-container {
    display: flex;
    opacity: 1;
}

/* Original (strikethrough) price for subscriptions */
.radio-price-original {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* Discounted price for subscriptions */
.radio-price-discounted {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

/* Discount badge */
.discount-badge {
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-left: 4px;
}

/* Subscription benefits - dynamically added via jQuery */
.wcsatt-radio-option .subscription-benefits {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    font-size: 14px;
    line-height: 24px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
    padding-left: 35px;
}

.wcsatt-radio-option .subscription-benefits li {
    padding-left: 0;
    margin-bottom: 6px;
    font-weight: 500;
    font-family: var(--font-body, Arial, sans-serif);
    text-transform: none;
    letter-spacing: normal;
}

/* Remove the inline container styles since benefits are now added directly */
.subscription-benefits-inline {
    display: none !important;
}

/* One-time option specific styling */
.wcsatt-radio-option.one-time {
    /* Can add specific one-time styling here */
}

/* Subscription option specific styling */
.wcsatt-radio-option.subscription {
    /* Can add specific subscription styling here */
}

/* Hide original product wrapper */
.wcsatt-options-wrapper.wcsatt-all-radio-layout .wcsatt-options-product-wrapper {
    display: none !important;
}

/* Animation for active state */
@keyframes radioSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.wcsatt-radio-option.active {
    animation: radioSelect 0.3s ease-out;
}

/* Ensure proper spacing in the summary section */
.summary .wcsatt-options-wrapper.wcsatt-all-radio-layout {
    margin: 20px 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .wcsatt-options-wrapper.wcsatt-all-radio-layout {
        width: 100%;
    }

    .wcsatt-radio-option {
        padding: 14px 16px;
    }

    .radio-label-text {
        font-size: 14px;
    }

    .radio-price {
        font-size: 16px;
    }

    .radio-price-discounted {
        font-size: 18px;
    }

    .radio-price-original {
        font-size: 13px;
    }

    .subscription-benefits {
        font-size: 13px;
        line-height: 22px;
    }

    .radio-label-container {
        padding-left: 30px;
    }

    .subscription-benefits-inline {
        padding-left: 30px;
    }

    .wcsatt-radio-option input[type="radio"] {
        left: 16px;
    }
}

@media (max-width: 576px) {
    .wcsatt-radio-option {
        padding: 12px 14px;
    }

    .wcsatt-radio-header {
        font-size: 15px;
    }

    .radio-label-text {
        font-size: 13px;
    }

    .radio-price {
        font-size: 15px;
    }

    .radio-price-discounted {
        font-size: 16px;
    }

    .radio-price-original {
        font-size: 12px;
    }

    .discount-badge {
        font-size: 13px;
        padding: 1px 6px;
    }

    .subscription-benefits {
        font-size: 12px;
        line-height: 20px;
    }

    /* Stack label and price on very small screens if needed */
    .radio-label-container {
        flex-wrap: wrap;
        gap: 8px;
    }
}