/* Points Usage Section Styles */

.points-usage-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 12px;
    border: 2px solid #FC3130;
}

.points-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.points-label {
    font-weight: 600;
    color: #333;
}

.points-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FC3130;
}

.points-worth {
    font-size: 0.9rem;
    color: #666;
}

.points-input-group {
    margin-bottom: 1.5rem;
}

.points-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.points-slider-header label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.points-manual-input {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #FC3130;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #FC3130;
    text-align: center;
    transition: all 0.3s ease;
}

.points-manual-input:focus {
    outline: none;
    border-color: #B43228;
    box-shadow: 0 0 0 3px rgba(252, 49, 48, 0.1);
}

/* Remove spinner arrows from number input */
.points-manual-input::-webkit-inner-spin-button,
.points-manual-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.points-manual-input[type=number] {
    -moz-appearance: textfield;
}

.points-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #FFE8E8 0%, #FC3130 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.points-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FC3130;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(252, 49, 48, 0.3);
    transition: all 0.3s ease;
}

.points-slider::-webkit-slider-thumb:hover {
    background: #B43228;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(252, 49, 48, 0.5);
}

.points-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FC3130;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(252, 49, 48, 0.3);
    transition: all 0.3s ease;
}

.points-slider::-moz-range-thumb:hover {
    background: #B43228;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(252, 49, 48, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.points-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px dashed #FC3130;
}

.discount-label {
    font-weight: 600;
    color: #333;
}

.discount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FC3130;
}

.final-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-top: calc(0.5rem + 1px);  /* 增加 1px 距離 */
    background: linear-gradient(135deg, #FC3130 0%, #B43228 100%);
    border-radius: 8px;
    color: white;
}

.payment-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .points-usage-section {
        padding: 1rem;
    }
    
    .points-balance {
        flex-wrap: wrap;
    }
    
    .points-value {
        font-size: 1.25rem;
    }
    
    .points-manual-input {
        width: 80px;
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem;
    }
    
    .points-slider-header label {
        font-size: 0.9rem;
    }
    
    .slider-labels {
        font-size: 0.75rem;
    }
    
    .discount-value {
        font-size: 1.1rem;
    }
    
    .payment-value {
        font-size: 1.25rem;
    }
}

