/**
 * Increment Buttons for Woo - Frontend Styles
 * 
 * This file contains the base styles for the increment buttons.
 * You can customize these styles by adding your own CSS rules.
 * 
 * Available CSS classes for customization:
 * - .woocommerce .incrbufo-quantity-wrapper (main container)
 * - .incrbufo-btn (increment/decrement buttons)
 * - .incrbufo-btn-minus (minus button)
 * - .incrbufo-btn-plus (plus button)
 * - .incrbufo-label (quantity label)
 */

/* Main container */
.woocommerce .incrbufo-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-family: inherit;
}

/* Quantity input field */
.woocommerce .incrbufo-quantity-wrapper .quantity {
    display: flex;
    align-items: center;
}

.woocommerce .incrbufo-quantity-wrapper .quantity input[type='number'] {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0;
    margin: 0;
    padding: 0 5px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Hide spinner arrows for all number inputs */
.woocommerce .incrbufo-quantity-wrapper .quantity input[type='number']::-webkit-outer-spin-button,
.woocommerce .incrbufo-quantity-wrapper .quantity input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .incrbufo-quantity-wrapper .quantity input[type='number'] {
    -moz-appearance: textfield;
}

/* Base button styles */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn {
    height: 35px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    font-family: inherit;
}

/* Button hover state */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Button focus state */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Button active state */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn:active {
    background: #dee2e6;
}

/* Button disabled state */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Individual button styles */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn-minus {
    border-radius: 3px 0 0 3px;
}

.woocommerce .incrbufo-quantity-wrapper .incrbufo-btn-plus {
    border-radius: 0 3px 3px 0;
    border-left: none;
}

/* Quantity field borders when buttons are merged */
.woocommerce .incrbufo-quantity-wrapper .quantity input[type='number'] {
    border-left: none;
    border-right: none;
}

/* Label styles */
.woocommerce .incrbufo-quantity-wrapper .incrbufo-label {
    margin-right: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Touch-friendly styles for mobile */
@media (max-width: 768px) {
    .woocommerce .incrbufo-quantity-wrapper .incrbufo-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .woocommerce .incrbufo-quantity-wrapper .quantity input[type='number'] {
        min-height: 44px;
    }
}