/* מיץ גת המקורי: כמות ובחירת טעם בכרטיסי המוצרים בחנות. */
/**
     * הסתרת הפקדים של תוסף
     * Quantity Increment Buttons
     * בתוך לולאת המוצרים בלבד.
     * בעמוד מוצר בודד הוא ממשיך לעבוד.
     */
    .woocommerce ul.products li.product .qib-container {

        display: none !important;

    }


    /**
     * מונע גלישה אופקית של הגריד
     */
    html,
    body {

        overflow-x: hidden;

    }


    .mgt-custom-controls {

        width: 100%;

        margin-top: 14px;

        display: flex;

        flex-direction: column;

        gap: 9px;

        position: relative;

        z-index: 20;

        box-sizing: border-box;

    }


    /**
     * טעמים
     */
    .mgt-flavor-input {

        display: block;

        width: 100%;

        height: 44px;

        margin: 0 !important;

        padding: 0 12px;

        border: 1px solid #d2d2d2;

        border-radius: 7px;

        background: #fff;

        color: #333;

        font-size: 15px;

        line-height: 44px;

        cursor: pointer;

        box-sizing: border-box;

    }


    /**
     * שורת הכמות וההוספה
     */
    .mgt-add-row {

        display: flex;

        flex-direction: row;

        align-items: stretch;

        justify-content: space-between;

        width: 100%;

        gap: 9px;

        box-sizing: border-box;

    }


    /**
     * אזור + / כמות / -
     */
    .mgt-qty-control {

        display: flex;

        flex: 0 0 auto;

        direction: ltr;

        align-items: stretch;

        height: 46px;

        margin: 0;

        padding: 0;

        overflow: hidden;

        background: #fff;

        border: 1px solid #cfcfcf;

        border-radius: 7px;

        box-sizing: border-box;

    }


    /**
     * פלוס ומינוס
     */
    .mgt-qty-minus,
    .mgt-qty-plus {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        flex: 0 0 38px;

        width: 38px !important;

        min-width: 38px !important;

        max-width: 38px !important;

        height: 44px !important;

        min-height: 44px !important;

        margin: 0 !important;

        padding: 0 !important;

        border: 0 !important;

        border-radius: 0 !important;

        background: #f2f7ed !important;

        color: #4b7a27 !important;

        box-shadow: none !important;

        font-size: 22px !important;

        font-weight: 700 !important;

        line-height: 1 !important;

        cursor: pointer;

        box-sizing: border-box;

    }


    .mgt-qty-minus:hover,
    .mgt-qty-plus:hover {

        background: #4b7a27 !important;

        color: #fff !important;

    }


    .mgt-qty-minus:disabled,
    .mgt-qty-plus:disabled {

        opacity: .55;

        cursor: wait;

    }


    /**
     * שדה הכמות
     */
    .mgt-qty-input {

        display: block !important;

        flex: 0 0 48px;

        width: 48px !important;

        min-width: 48px !important;

        max-width: 48px !important;

        height: 44px !important;

        min-height: 44px !important;

        margin: 0 !important;

        padding: 0 3px !important;

        border-top: 0 !important;

        border-bottom: 0 !important;

        border-right:
            1px solid #d8d8d8 !important;

        border-left:
            1px solid #d8d8d8 !important;

        border-radius: 0 !important;

        background: #fff !important;

        color: #222 !important;

        box-shadow: none !important;

        outline: none !important;

        text-align: center !important;

        font-size: 16px !important;

        font-weight: 700 !important;

        line-height: 44px !important;

        appearance: textfield;

        -webkit-appearance: none;

        box-sizing: border-box;

    }


    .mgt-qty-input::-webkit-inner-spin-button,
    .mgt-qty-input::-webkit-outer-spin-button {

        margin: 0;

        -webkit-appearance: none;

        appearance: none;

    }


    /**
     * כפתור הוספה
     */
    .mgt-ajax-btn {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        flex: 1 1 auto;

        width: auto !important;

        min-width: 0;

        min-height: 46px;

        margin: 0 !important;

        padding: 8px 15px !important;

        border: 0 !important;

        border-radius: 7px !important;

        background: #4b7a27 !important;

        color: #fff !important;

        box-shadow: none !important;

        font-size: 15px !important;

        font-weight: 700 !important;

        line-height: 1.2 !important;

        text-align: center;

        cursor: pointer;

        transition:
            opacity .2s ease,
            transform .1s ease;

        box-sizing: border-box;

    }


    .mgt-ajax-btn:hover {

        opacity: .9;

    }


    .mgt-ajax-btn:active {

        transform: scale(.98);

    }


    .mgt-ajax-btn:disabled {

        opacity: .65;

        cursor: wait;

    }


    /**
     * הודעות
     */
    .mgt-feedback-msg {

        display: none;

        min-height: 17px;

        margin: 0;

        padding: 0;

        font-size: 12px;

        font-weight: 700;

        line-height: 1.4;

        text-align: center;

    }


    .mgt-feedback-msg.mgt-success {

        color: #4b7a27;

    }


    .mgt-feedback-msg.mgt-error {

        color: #c62828;

    }


    /**
     * מובייל
     */
    @media (max-width: 600px) {

        /**
         * עמודה אחת, וקוביות
         * שיכולות להתכווץ לרוחב העמודה.
         */
        .woocommerce ul.products,
        ul.products.elementor-grid {

            grid-template-columns: 1fr !important;

        }


        .woocommerce ul.products li.product,
        ul.products.elementor-grid li.product {

            min-width: 0 !important;

            max-width: 100% !important;

            box-sizing: border-box !important;

        }


        .mgt-custom-controls {

            margin-top: 16px;

            gap: 10px;

        }


        .mgt-flavor-input {

            height: 46px;

            font-size: 16px;

        }


        /**
         * הכמות בשורה אחת,
         * הכפתור בשורה מתחתיה.
         */
        .mgt-add-row {

            flex-direction: column;

            align-items: stretch;

            gap: 8px;

        }


        .mgt-qty-control {

            width: 100%;

            height: 48px;

            justify-content: center;

        }


        .mgt-qty-minus,
        .mgt-qty-plus {

            flex: 0 0 44px;

            width: 44px !important;

            min-width: 44px !important;

            max-width: 44px !important;

            height: 46px !important;

            min-height: 46px !important;

            font-size: 23px !important;

        }


        .mgt-qty-input {

            flex: 1 1 auto;

            width: auto !important;

            min-width: 45px !important;

            max-width: none !important;

            height: 46px !important;

            min-height: 46px !important;

            line-height: 46px !important;

            font-size: 17px !important;

        }


        .mgt-ajax-btn {

            flex: 0 0 auto;

            width: 100% !important;

            min-width: 0;

            min-height: 48px;

            padding: 10px 8px !important;

            font-size: 16px !important;

            white-space: normal;

        }

    }
