/* Frontend Styles - Matching Image Design */
.spm-purchase-options {
    margin: 20px 0;
    padding: 0;
    border: none;
    background: transparent;
}

.spm-purchase-options-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
}

.spm-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.spm-option {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.spm-option:hover {
    border-color: #0073aa;
}

.spm-option.spm-option-selected {
    border-color: #333;
    border-width: 2px;
}

.spm-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spm-option-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.spm-option-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spm-option-right {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.spm-option-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.spm-discount-badge {
    display: inline-block;
    background: #90EE90;
    color: #006400;
    font-size: 0.75em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.spm-monthly-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

.spm-note {
    font-size: 0.85em;
    color: #888;
    font-style: normal;
    margin-top: 4px;
    display: block;
}

.spm-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.spm-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.spm-price-original {
    font-size: 0.9em;
}

.spm-price-original del {
    color: #999;
    text-decoration: line-through;
}

.spm-price-discounted {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* Selected state styling */
.spm-option.spm-option-selected {
    border-color: #333;
    border-width: 2px;
    background: #fafafa;
}

/* Fallback for browsers that support :has() */
@supports selector(:has(*)) {
    .spm-option:has(.spm-radio-input:checked) {
        border-color: #333;
        border-width: 2px;
        background: #fafafa;
    }
}

.spm-subscription-duration {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.spm-subscription-duration label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.spm-subscription-duration select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
    margin-bottom: 15px;
}

.spm-subscription-info {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.6;
}

.spm-subscription-info strong {
    color: #0073aa;
    display: block;
    margin-bottom: 8px;
}

.spm-total-cost-info {
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 3px;
    font-size: 1em;
}

.spm-total-cost-info strong {
    color: #0073aa;
    font-size: 1.1em;
}

.spm-subscriptions-page {
    margin: 20px 0;
}

.spm-status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    display: inline-block;
}

.spm-status-active {
    background: #46b450;
    color: #fff;
}

.spm-status-paused {
    background: #ffb900;
    color: #fff;
}

.spm-status-cancelled,
.spm-status-completed {
    background: #999;
    color: #fff;
}

.spm-btn {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.spm-btn:hover {
    background: #005177;
}

.spm-btn-cancel {
    background: #dc3232;
}

.spm-btn-cancel:hover {
    background: #a00;
}

