:root {
    --primary-color: #f72585;
    /* Pinkish color for radio */
    --accent-color: #ffcf33;
    /* Yellow for button */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #f3f4f6;
    --bg-light: #f9fafb;
}

.wc-variation-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Left Side: Variation Selection */
.wc-variation-selection {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.selection-header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.selection-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    /* Dark blue from design */
}

.variation-list {
    padding: 12px 0;
}

.variation-radio-card {
    display: flex;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    position: relative;
    border-bottom: 2px dashed #f1f5f9;
    transition: all 0.2s ease;
}

.variation-radio-card:last-child {
    border-bottom: none;
}

.variation-radio-card input {
    display: none;
}

/* Custom Radio */
.custom-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.variation-radio-card input:checked~.custom-radio {
    border-color: var(--primary-color);
}

.variation-radio-card input:checked~.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Info */
.variation-card-info {
    flex-grow: 1;
}

.card-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.title-text {
    font-size: 18px;
    font-weight: 700;
}

.discount-badge {
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 13px;
}

/* Pricing */
.variation-card-pricing {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 15px;
    margin-right: 8px;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
}

.per-month {
    color: #94a3b8;
    font-size: 14px;
}

/* Right Side: Order Summary */
.wc-order-summary-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.summary-top h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

.summary-details {
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.discount-row {
    background-color: #f0fdf4;
    margin-left: -24px;
    margin-right: -24px;
    padding: 12px 24px;
    color: #16a34a;
}

.row-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.row-value {
    font-size: 18px;
    font-weight: 700;
}

.summary-total-section {
    text-align: center;
    margin-bottom: 24px;
}

.total-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.total-value {
    font-size: 32px;
    font-weight: 800;
}

.summary-add-to-cart-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 207, 51, 0.4);
}

.summary-add-to-cart-btn:disabled,
.summary-add-to-cart-btn.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.summary-add-to-cart-btn span {
    font-size: 20px;
}

.variation-radio-card.is-selected {
    background-color: #fdf2f8;
    border-color: var(--primary-color);
}

@media (max-width: 991px) {
    .wc-variation-container {
        grid-template-columns: 1fr;
    }

    .wc-order-summary-sidebar {
        position: static;
    }
}