/* Quantity Wrapper */
.emcq-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

/* Quantity Controls Container */
.emcq-quantity-controls {
    display: flex;
    width: 132px;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Increment/Decrement Buttons */
.emcq-btn {
    background: #f5f5f5;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #333;
}

.emcq-btn:hover {
    background: #e0e0e0;
    color: #000;
}

.emcq-btn:active {
    background: #d0d0d0;
    transform: scale(0.95);
}

.emcq-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quantity Input Field */
.emcq-input {
    width: 50px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    font-weight: 500;
    height: 32px;
    background: #fff;
    color: #333;
    -moz-appearance: textfield;
}

/* Remove spinner arrows from number input */
.emcq-input::-webkit-outer-spin-button,
.emcq-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.emcq-input:focus {
    outline: none;
    background: #f9f9f9;
}

/* Price Display */
.emcq-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Loading State */
.elementor-menu-cart__products.emcq-updating {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.elementor-menu-cart__products.emcq-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

/* Spinner visual (optional) */
.elementor-menu-cart__products.emcq-updating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: emcq-spin 0.8s linear infinite;
    z-index: 11;
}

@keyframes emcq-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .emcq-quantity-wrapper { gap: 8px; }
    .emcq-btn { min-width: 28px; height: 28px; font-size: 14px; }
    .emcq-input { width: 45px; height: 28px; font-size: 13px; }
    .emcq-price { font-size: 13px; }
}
