/* Foodbonus Usage Buttons - Enhanced Modern Design */
.foodbonus-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.foodbonus-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border-radius: 12px 12px 0 0;
}

#foodbonus-usage-buttons {
    margin: 15px 0;
}

#apply-foodbonus {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

#apply-foodbonus:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#apply-foodbonus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#apply-foodbonus:hover::before {
    left: 100%;
}

/* Partial Foodbonus Section */
#partial-foodbonus-section {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

label[for="partial-foodbonus-amount"] {
    font-size: 15px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 12px;
    display: block;
    position: relative;
}

label[for="partial-foodbonus-amount"]::before {
    content: '💰';
    margin-right: 8px;
    font-size: 16px;
}

/* Slider Container */
.partial-amount-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#partial-foodbonus-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #dee2e6 0%, #ced4da 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#partial-foodbonus-slider:hover {
    background: linear-gradient(90deg, #ced4da 0%, #adb5bd 100%);
}

#partial-foodbonus-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
    transition: all 0.2s ease;
}

#partial-foodbonus-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

#partial-foodbonus-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

#partial-foodbonus-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
    transition: all 0.2s ease;
}

#partial-foodbonus-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

#partial-foodbonus-slider::-moz-range-thumb:active {
    transform: scale(0.95);
}

#partial-foodbonus-amount {
    width: 90px;
    padding: 10px 14px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

#partial-foodbonus-amount:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.amount-currency {
    font-size: 15px;
    color: #495057;
    font-weight: 600;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

/* Action Buttons */
.partial-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

#apply-partial-foodbonus {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

#apply-partial-foodbonus:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

#apply-full-foodbonus {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

#apply-full-foodbonus:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.foodbonus-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse Effect for Active Elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

#apply-foodbonus:active {
    animation: pulse 0.6s;
}

/* Enhanced Focus States */
#apply-foodbonus:focus,
#apply-partial-foodbonus:focus,
#apply-full-foodbonus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .foodbonus-container {
        margin: 15px 0;
        padding: 16px;
        border-radius: 8px;
    }
    
    .partial-amount-controls {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    #partial-foodbonus-slider {
        width: 100%;
        order: 1;
    }
    
    #partial-foodbonus-amount {
        width: 100%;
        order: 2;
    }
    
    .amount-currency {
        order: 3;
        text-align: center;
    }
    
    .partial-action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    #apply-foodbonus,
    #apply-partial-foodbonus,
    #apply-full-foodbonus {
        padding: 14px 20px;
        font-size: 16px;
    }
}
