/**
 * Quantity Dropdown Styles
 */

/* Hide volume pricing table */
body.catalog-product-view.qty-dropdown-active .tier-table-compact,
.tier-table-compact.qty-dropdown-hidden {
    display: none !important;
}

/* Hide +/- buttons */
.qty-control-wrapper:has(.qty-dropdown-replaced) .qty-btn.qty-plus,
.qty-control-wrapper:has(.qty-dropdown-replaced) .qty-btn.qty-minus {
    display: none !important;
}
body.catalog-product-view.qty-dropdown-active .qty-btn.qty-plus,
body.catalog-product-view.qty-dropdown-active .qty-btn.qty-minus {
    display: none !important;
}

/* Hide increment/decrement buttons */
body.catalog-product-view.qty-dropdown-active .pdp-qty-hander.icon-plus,
body.catalog-product-view.qty-dropdown-active .pdp-qty-hander.icon-minus,
body.catalog-product-view.qty-dropdown-active #increment,
body.catalog-product-view.qty-dropdown-active #decrement {
    display: none !important;
}

.control.qty:has(.qty-dropdown-replaced) .pdp-qty-hander.icon-plus,
.control.qty:has(.qty-dropdown-replaced) .pdp-qty-hander.icon-minus,
.control.qty:has(.qty-dropdown-replaced) #increment,
.control.qty:has(.qty-dropdown-replaced) #decrement {
    display: none !important;
}

/* Show label */
.manual-qty-compact:has(.qty-dropdown-replaced) > .label {
    display: block !important;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* Dropdown styling */
select.qty-dropdown-selector.swatch-select,
select.qty-dropdown-selector {
    width: 100% !important;
    max-width: 100% !important;
    height: 45px !important;
    padding: 10px 40px 10px 15px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    transition: all 0.2s ease !important;
}

select.qty-dropdown-selector.swatch-select:focus,
select.qty-dropdown-selector:focus {
    border-color: #66afe9 !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6) !important;
}

select.qty-dropdown-selector.swatch-select:hover,
select.qty-dropdown-selector:hover {
    border-color: #999 !important;
}

/* Wrapper display */
.swatch-attribute-options.clearfix.qty-dropdown-wrapper {
    display: block;
    margin-bottom: 10px;
}

/* Transitions */
.manual-qty-compact,
.tier-price-hybrid-wrapper,
.swatch-attribute.qty-dropdown-swatch {
    transition: opacity 0.2s ease-in-out !important;
}

/* Loading state */
.qty-loading {
    opacity: 0.3 !important;
    pointer-events: none !important;
}
