/* ===================================== 
   COIN USAGE SECTION - Checkout Modal Styles
   ===================================== */

/* Coin Usage Section */
#coinUsageSection {
    margin-top: 20px;
}

.coin-usage-container {
    margin-top: 15px;
}

.coin-balance-display-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.coin-balance-info-checkout {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coin-label-checkout {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    opacity: 0.8;
}

.coin-balance-value-checkout {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.coin-vnd-value-checkout {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    opacity: 0.9;
}

.use-all-coin-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.use-all-coin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.coin-input-group-checkout {
    margin-top: 15px;
}

.coin-input-group-checkout label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.coin-input-wrapper-checkout {
    position: relative;
    margin-bottom: 15px;
}

.coin-input-wrapper-checkout input[type="number"] {
    width: 100%;
    padding: 12px 60px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', monospace;
}

.coin-input-wrapper-checkout input[type="number"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.coin-unit-checkout {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
    pointer-events: none;
}

.coin-slider-container-checkout {
    margin-bottom: 15px;
}

.coin-slider-container-checkout input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ffd700 0%, #ffed4e 100%);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.coin-slider-container-checkout input[type="range"]:hover {
    opacity: 1;
}

.coin-slider-container-checkout input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.coin-slider-container-checkout input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
}

.coin-slider-container-checkout input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.coin-slider-container-checkout input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
}

.coin-usage-info-checkout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.coin-usage-info-checkout i {
    color: #ffd700;
    font-size: 1.1rem;
}

.coin-usage-info-checkout strong {
    color: #1a1a1a;
    font-weight: 700;
}

.no-coin-message-checkout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(108, 117, 125, 0.1);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.no-coin-message-checkout i {
    color: #6c757d;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Coin discount line in order summary */
.coin-discount-line {
    color: #28a745;
    font-weight: 600;
}

.coin-discount-amount {
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coin-balance-display-checkout {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .use-all-coin-btn {
        width: 100%;
        justify-content: center;
    }

    .coin-balance-value-checkout {
        font-size: 1.3rem;
    }
}
