/**
 * Dynamic Pricing Calculator - Styles
 * @version 1.0.0
 */

/* Calculator Container */
.sppp-calculator-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Header */
.sppp-calculator-header {
    margin-bottom: 25px;
}

.sppp-calculator-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #212529;
}

.sppp-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Option Groups */
.sppp-calculator-options {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sppp-option-group {
    margin-bottom: 25px;
}

.sppp-option-group:last-child {
    margin-bottom: 0;
}

.sppp-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    font-size: 15px;
}

.required {
    color: #dc3545;
    margin-left: 3px;
}

/* Select Inputs */
.sppp-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}

.sppp-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Bundling Options */
.sppp-bundling-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sppp-radio-wrapper {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.sppp-radio-wrapper:hover {
    border-color: #007bff;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.sppp-radio-wrapper:has(input:checked) {
    border-color: #28a745;
    background: #f0f9f4;
}

.sppp-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.sppp-radio {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.sppp-radio-text {
    flex: 1;
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

/* Badges */
.sppp-badge {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.sppp-badge-free {
    background: #28a745;
    color: #fff;
}

.sppp-badge-basic {
    background: #17a2b8;
    color: #fff;
}

.sppp-badge-standard {
    background: #ffc107;
    color: #000;
}

.sppp-badge-premium {
    background: #dc3545;
    color: #fff;
}

.sppp-badge-info {
    background: #17a2b8;
    color: #fff;
}

/* Shipping Options */
.sppp-shipping-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #dee2e6;
}

.sppp-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sppp-shipping-note {
    display: block;
    margin-top: 4px;
    margin-left: 34px;
    color: #6c757d;
    font-size: 12px;
}

.sppp-shipping-info {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e7f3ff;
    border-left: 3px solid #17a2b8;
    border-radius: 4px;
    font-size: 13px;
    color: #004085;
    line-height: 1.5;
}

.sppp-shipping-info a {
    color: #17a2b8;
    text-decoration: underline;
    font-weight: 600;
}

.sppp-shipping-info a:hover {
    color: #138496;
}

.sppp-shipping-info i {
    margin-right: 5px;
}

.sppp-radio-wrapper input:disabled ~ span {
    opacity: 0.6;
    cursor: not-allowed;
}

.sppp-radio-wrapper:has(input:disabled) {
    opacity: 0.7;
    cursor: not-allowed;
}

.sppp-radio-wrapper:has(input:disabled):hover {
    border-color: #dee2e6;
    box-shadow: none;
    transform: none;
}

/* Price Breakdown */
.sppp-price-breakdown {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.sppp-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sppp-breakdown-label {
    font-size: 14px;
    color: #6c757d;
}

.sppp-breakdown-value {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

.sppp-breakdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 10px 0;
}

/* Price Display */
.sppp-price-display {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

/* Add to Cart Section */
.sppp-cart-section {
    margin-top: 20px;
    text-align: center;
}

.sppp-add-to-cart-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.sppp-add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
}

.sppp-add-to-cart-btn:disabled {
    background: #6c757d;
    color: #fff;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.sppp-add-to-cart-btn i {
    margin-right: 10px;
    font-size: 20px;
}

/* Designer Section */
.sppp-designer-section {
    margin-top: 25px;
    text-align: center;
}

.sppp-designer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    cursor: pointer;
    min-width: 250px;
    width: 100%;
}

.sppp-designer-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #6a4193 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.sppp-designer-btn:disabled {
    background: #6c757d;
    color: #fff;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.sppp-designer-btn i {
    margin-right: 10px;
}

.sppp-designer-note {
    margin-top: 12px;
    margin-bottom: 0;
    color: #6c757d;
    font-size: 13px;
}

.sppp-designer-note i {
    margin-right: 5px;
}

/* Price Display (continued) */

.sppp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sppp-price-label {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

#sppp-calculated-price {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.sppp-price-note {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-top: 10px;
}

.sppp-price-note small {
    color: #856404;
    font-size: 13px;
}

#sppp-base-price-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.sppp-base-label {
    font-size: 14px;
    color: #6c757d;
    margin-right: 8px;
}

#sppp-base-price {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

/* Loading State */
.sppp-price-display .fa-spinner {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .sppp-calculator-wrapper {
        padding: 20px 15px;
    }
    
    .sppp-calculator-header h3 {
        font-size: 20px;
    }
    
    #sppp-calculated-price {
        font-size: 28px;
    }
    
    .sppp-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sppp-calculator-wrapper {
    animation: slideIn 0.3s ease-out;
}
