/**
 * Points Frontend Styles
 */

/* Points Balance Display */
.dw-points-balance {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.dw-points-balance h3 {
    color: #667eea;
    margin-top: 0;
}

.dw-points-balance .points-amount {
    font-size: 24px;
    margin: 10px 0;
}

.dw-points-balance .points-value {
    color: #666;
    margin: 10px 0;
}

/* Points to Earn Display */
.dw-points-to-earn {
    background: #f0f6fc;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

/* Points Redemption Section */
.dw-points-redemption td,
.dw-points-redemption th {
    padding: 0 !important;
}

.dw-points-redemption > th > div {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* Points Input */
#dw-points-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 4px;
    font-size: 16px;
}

#dw-points-input:focus {
    outline: none;
    border-color: #ffd700;
}

/* Buttons */
#dw-apply-points-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#dw-apply-points-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

#dw-apply-points-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#dw-max-points-btn {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

#dw-max-points-btn:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

#dw-cancel-points-btn {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#dw-cancel-points-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* Redeemed Info Section */
#dw-redeemed-info {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dw-points-redemption > th > div {
        padding: 15px;
    }
    
    #dw-redeem-form > div {
        flex-direction: column;
    }
    
    #dw-points-input,
    #dw-apply-points-btn,
    #dw-max-points-btn {
        width: 100%;
        margin: 5px 0;
    }
}
