.exqib-quantity-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.exqib-btn {
    background: #f8f8f8;
    border: none;
    width: 30px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    user-select: none;
}

.exqib-btn:hover {
    background: #e8e8e8;
}

.exqib-btn:active {
    background: #d8d8d8;
}

.exqib-btn:focus {
    outline: none;
}

.exqib-quantity-wrap .qty,
.exqib-quantity-wrap input[type="number"], .qty.text.exqib-enhanced-qty {
    border: 1px solid var(--exqib-button-border-color);
    border-radius: var(--exqib-button-border-radius);
    text-align: center;
    width: 60px;
    height: var(--exqib-button-height);
    margin: 0;
    padding: 0 8px;
    box-shadow: none;
    outline: none;
}

.exqib-quantity-wrap .qty:focus,
.exqib-quantity-wrap input[type="number"]:focus,
.qty.text.exqib-enhanced-qty:focus {
    border-color: none;
    box-shadow: none;
}

.exqib-slider-container {
    position: relative;
    margin-top: 5px;
    padding: 10px 0;
}

.exqib-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.exqib-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.exqib-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Slider Labels */
.exqib-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Slider Tooltip */
.exqib-slider-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    pointer-events: none;
}

.exqib-slider-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exqib-quantity-wrap .qty,
    .exqib-quantity-wrap input[type="number"] {
        width: 50px;
    }
    
    .exqib-btn {
        width: 28px;
        height: 32px;
        font-size: 14px;
    }
}

/* Remove spinner arrows on number inputs */
.exqib-quantity-wrap input[type="number"]::-webkit-outer-spin-button,
.exqib-quantity-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Block Cart Specific Styles */
.wc-block-cart-item .exqib-quantity-wrap {
    display: inline-flex;
    align-items: center;
    margin: 5px 0;
}

.wc-block-cart-item .exqib-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
}

.wc-block-cart-item .exqib-slider-container {
    /* margin-top: 10px; */
    width: 100%;
}

.wc-block-cart-item .exqib-slider {
    width: 100%;
}

.wc-block-cart-item .exqib-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
}

/* Quantity buttons */
.exqib-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.exqib-btn:hover {
    background: #e0e0e0;
}

/* Slider container */
.exqib-slider-container {
    margin-top: 10px;
    width: 100%;
    position: relative;
}

/* Slider tooltip */
.exqib-slider-tooltip {
    position: absolute;
    top: -25px;
    background: #333;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* Slider labels */
.exqib-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.exqib-customized{
    width: 100% !important;
        display: flex
;
    flex-direction: column;
}

.exqib-slider-container input:focus{
    outline: none;
}

.exqib-btn {
    width: var(--exqib-button-width);
    height: var(--exqib-button-height);
    font-size: var(--exqib-button-font-size);
    padding: var(--exqib-button-padding);
    border-radius: var(--exqib-button-border-radius);
    background-color: var(--exqib-button-color);
    border: 1px solid var(--exqib-button-border-color);
    color: var(--exqib-button-text-color);
    transition: background-color 0.3s;
}

.exqib-btn:hover {
    background-color: var(--exqib-button-hover-color);
}

.quantity:has(.exqib-quantity-wrap) {
	display: flex;
	flex-wrap: wrap;
    /* justify-content: center; */
    column-gap:5px;
    float: unset !important ;
    margin: 10px 0;
}

.quantity:has(.exqib-quantity-wrap) > .input-text,
.quantity:has(.exqib-quantity-wrap) > .exqib-quantity-wrap {
	display: inline-flex;
	align-items: center;
}

.quantity:has(.exqib-quantity-wrap) > .input-text {
	order: 1;
}

.quantity:has(.exqib-quantity-wrap) > .exqib-quantity-wrap {
	order: 2;
}

.quantity:has(.exqib-quantity-wrap) > .exqib-slider-container {
	order: 3;
	width: 100%;
}


.exqib-quantity__shop .quantity:has(.exqib-quantity-wrap){
    justify-content: center;
}

.exqib-quantity__shop .exqib-slider-container{
    display: var(--exqib-related-enabled);
}

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

.exqib-enhanced-qty {
    -moz-appearance: textfield;
}