
/* 1. HIDE DEFAULT BUTTONS */
.add-links-wrap, .links-on-image, .product-image .viewcart, 
.porto-add-to-cart-product, .overlay-container .add-links, 
.product-content .add-links, 
.add_to_cart_button:not(.ezq-add-cart) { 
    display: none !important; 
}

/* 2. WRAPPER STYLES */
.ezq-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin-top: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
    position: relative; 
    z-index: 2; 
    height: 40px !important; /* Force Height Consistency */
}

/* 3. QUANTITY GROUP */
.ezq-qty-group {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100px !important; /* Slightly wider for ease of tap */
    border: 1px solid #dcdcdc;
    border-radius: 4px 0 0 4px;
    border-right: none;
    height: 40px !important;
    overflow: hidden;
    background: #fff;
}

.ezq-btn {
    width: 30px !important;
    background: #f4f4f4 !important;
    border: none !important;
    font-size: 18px !important; /* Larger hit area */
    font-weight: 700 !important;
    color: #555 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100% !important;
    /* IOS CLICK FIXES */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ezq-btn:hover { background: #e0e0e0 !important; }

/* 4. ANTI-ZOOM INPUT STYLING */
.ezq-input {
    width: 40px !important;
    text-align: center !important;
    border: none !important;
    background: #fff !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    height: 100% !important;
    
    /* THE MAGICAL FIXES FOR IPHONE ZOOM */
    font-size: 16px !important; /* 16px prevents zoom on focus */
    max-height: 40px;
    
    /* Remove Spinners */
    -moz-appearance: textfield;
}
.ezq-input::-webkit-outer-spin-button, .ezq-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ezq-input:focus { outline: none !important; box-shadow: none !important; }

/* 5. ADD BUTTON */
a.ezq-add-cart.button {
    flex: 1 1 auto !important;
    background-color: #ce2a37 !important;
    color: white !important;
    font-size: 14px !important; /* Larger text */
    font-weight: 700 !important;
    text-transform: uppercase;
    border: 1px solid #ce2a37 !important;
    border-radius: 0 4px 4px 0 !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 5px !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    float: none !important;
    
    /* iOS Click Fix */
    touch-action: manipulation;
}

a.ezq-add-cart.button:hover { background-color: #a01e29 !important; border-color: #a01e29 !important; opacity: 1 !important; }
a.ezq-add-cart.added { background-color: #22c55e !important; border-color: #22c55e !important; content: "Done" !important; }
a.ezq-add-cart.added::after { display: none !important; }

/* 6. SLIDER & B2B KING FIXES */
.owl-item .ezq-wrapper { margin-top: 10px !important; padding-bottom: 5px; }

/* Stop B2BKing table from shifting this row */
.b2bking_tiered_price_table_simple { margin-bottom: 10px !important; clear:both; }
