/**
 * GK Quantity Control — Base styles
 * Dynamic colors and sizes are injected via wp_add_inline_style().
 */

.quantity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gkqc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.gkqc-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.gkqc-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.gkqc-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gkqc-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.quantity input.qty {
    text-align: center;
    width: 60px;
    -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .quantity {
        gap: 4px;
    }
}
