/* Product Page Styles */
.edd-ajax-pricing-wrapper {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.edd-pricing-group {
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.edd-pricing-group:last-child {
    border-bottom: none;
}

.pricing-group-title {
    margin: 0;
    padding: 15px 20px;
    background: #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.annual-group .pricing-group-title {
    background: #e3f2fd;
    color: #1976d2;
}

.lifetime-group .pricing-group-title {
    background: #e8f5e8;
    color: #388e3c;
}

.pricing-options {
    padding: 15px 20px;
}

.pricing-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pricing-option:hover {
    background-color: rgba(0,0,0,0.02);
}

.pricing-option input[type="radio"] {
    margin: 0 12px 0 0;
}

.edd-ajax-price-display {
    padding: 20px;
    background: #fff;
    text-align: center;
    border-top: 2px solid #f0f0f0;
}

.edd-price-wrap {
    font-size: 24px;
    font-weight: 700;
    color: #2c5282;
}

.edd-loading-indicator {
    color: #666;
    font-style: italic;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

.discounted-price {
    color: #27ae60;
    font-weight: bold;
}

.edd-ajax-pricing-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Checkout Page Styles */
.checkout-price-option-toggle {
    display: inline-block;
    overflow: visible;
    position: relative;
    width: auto;
}

.change-license-btn,
.change-license-btn:hover,
.change-license-btn:focus {
    font-size: 1rem;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    padding-top: .1875rem !important;
    background-color: transparent;
    border-radius: 0;
    color: #1d76da;
    font-weight: 400;
    border: 0;
    outline: none;
}

.change-license-btn i {
    transition: all .2s linear;
}

.change-license-btn.active i {
    transform: rotate(180deg);
}

.current-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pricing-options-container {
    width: 100%;
    max-width: 475px;
    text-align: left;
    margin-top: 15px;
    background-color: #fff;
    border: 1px solid #dae2e7;
    border-radius: 5px;
    box-shadow: 0 .625rem .625rem 0 rgba(0, 0, 0, .05);
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.pricing-options-header {
    display: none;
}

.pricing-options-header h4 {
    margin: 0;
    color: #495057;
    font-size: 16px;
}

.close-options-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-options-btn:hover {
    color: #495057;
}

.price-group .group-title {
    font-size: 1.125rem;
    background-color: #f1f7ff;
    margin-bottom: .2rem;
    padding: .625rem 1.0625rem .5625rem;
}

.annual-group .group-title {
    color: #1976d2;
}

.lifetime-group .group-title {
    color: #388e3c;
}

.price-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: .5rem 0;
    padding: 0 1rem;
    transition: all 0.2s;
}

.price-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
}

.option-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
    gap: 1rem;
}

.option-price {
    font-weight: 600;
    color: #303030;
}

.option-info .option-name {
    font-weight: 500;
    color: #495057;
    line-height: 1.5;
    flex: 1;
}

.option-info .option-price-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.option-info .option-savings {
    background-color: #dc3545;
    border-radius: .25rem;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    padding: 4px 8px 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.option-info .option-original-price {
    color: #adb5bd;
    font-size: .875rem;
    font-weight: 400;
    text-decoration: line-through;
}

.option-info .option-price {
    font-weight: 600;
    color: #303030;
    white-space: nowrap;
}

.pricing-actions {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.update-price-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.update-price-btn:hover,
.update-price-btn:focus {
    background: #218838;
    border: none;
}

.update-price-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.cancel-price-btn {
    width: 100%;
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-price-btn:hover,
.cancel-price-btn:focus {
    background: #5a6268;
    border: none;
}

.pricing-status {
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    margin-top: 15px;
}

.pricing-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pricing-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pricing-status.loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.edd-simple-pricing-switcher.updating {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .pricing-group-title,
    .pricing-options {
        padding: 12px 15px;
    }
    
    .edd-ajax-price-display {
        padding: 15px;
    }
    
    .edd-price-wrap {
        font-size: 20px;
    }
    
    .pricing-actions {
        flex-direction: column;
    }

     .option-price-group {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .option-savings {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .option-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .option-info .option-name {
        width: 100%;
    }
    
    .option-info .option-price-group {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .update-price-btn,
    .cancel-price-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .option-savings {
        display: none;
    }

    .pricing-options-container {
        left: 0;
    }
}
