/* Wrapper cantitate cu butoane +/- vizibile permanent */
body .gsc-qty-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #d9dee8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

body .gsc-qty-control input.qty,
body .gsc-qty-control input[type="number"].qty {
    width: 46px !important;
    min-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    border-left: 1px solid #eef1f6 !important;
    border-right: 1px solid #eef1f6 !important;
    border-radius: 0 !important;
    text-align: center !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: 0 !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
}

/* Ascundem săgețile native, deoarece folosim butoanele custom - și + */
body .gsc-qty-control input[type="number"].qty,
body.woocommerce-cart .quantity input[type="number"].qty {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
}

body .gsc-qty-control input[type="number"].qty::-webkit-inner-spin-button,
body .gsc-qty-control input[type="number"].qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity input[type="number"].qty::-webkit-inner-spin-button,
body.woocommerce-cart .quantity input[type="number"].qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

body .gsc-qty-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: none !important;
    user-select: none !important;
}

body .gsc-qty-btn:hover,
body .gsc-qty-btn:focus {
    background: #f3f6fb !important;
    color: #1266d6 !important;
}

body .gsc-qty-btn:active {
    transform: none !important;
    background: #eaf1ff !important;
}

/* Pagina produsului: aliniere lângă butonul Adaugă în coș */
body.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

body.single-product form.cart .gsc-qty-control {
    margin-right: 8px !important;
}

/* Cart: păstrăm selectorul compact și centrat */
body.woocommerce-cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.woocommerce-cart .gsc-qty-control {
    margin: 0 auto !important;
}

/* Evităm ca stilurile temei să strice inputul după mutarea în wrapper */
body.single-product .gsc-qty-control + button.single_add_to_cart_button,
body.single-product .quantity + button.single_add_to_cart_button {
    vertical-align: middle !important;
}

@media (max-width: 768px) {
    body .gsc-qty-control {
        height: 42px !important;
        min-height: 42px !important;
    }

    body .gsc-qty-control input.qty,
    body .gsc-qty-control input[type="number"].qty {
        width: 42px !important;
        min-width: 42px !important;
        height: 40px !important;
        min-height: 40px !important;
        line-height: 40px !important;
    }

    body .gsc-qty-btn {
        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}

/* --------------------------------------------------
   RETUR - selector cantitate cu +/- în formularul BeziWorld
   -------------------------------------------------- */

body.gsc-return-page .bzww-item-qty-label .gsc-qty-control {
    margin: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
}

body.gsc-return-page .bzww-item-qty-label .gsc-qty-control input.bzww-item-qty {
    width: 52px !important;
    min-width: 52px !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
}

body.gsc-return-page .bzww-item-qty-label .gsc-qty-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    min-height: 40px !important;
}

