/*
 * =========================================================
 * Foot Rescue FBT - קמפיין מספר 2
 * עיצוב מחשב, מובייל, כותרות, הטבה וצ'קבוקסים
 * =========================================================
 */


/* =========================================================
 * 1. מעטפת הקמפיין
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"] {
    width: 100% !important;
    max-width: 1080px !important;
    margin: 24px auto !important;
    padding: 22px 20px 26px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
}


/* =========================================================
 * 2. כותרת ראשית
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"] .cuw-heading {
    margin: 0 auto !important;
    padding: 0 15px !important;
    color: #167e86 !important;
    font-size: 26px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: center !important;
}


/* =========================================================
 * 3. כותרת משנה
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"] .cuw-heading::after {
    content: "שלבו את Foot Rescue+ עם ניקוי יסודי ופילינג לכף הרגל, ובחרו את המוצרים המתאימים לשגרת הטיפוח שלכם.";
    display: block !important;
    max-width: 800px !important;
    margin: 9px auto 0 !important;
    padding: 0 !important;
    color: #444444 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    text-align: center !important;
}


/* =========================================================
 * 4. תגית הטבת 20%
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"] .cuw-form::before {
    content: "הטבה מיוחדת: 20% הנחה נוספת על כל מוצר משלים שתבחרו";
    display: table !important;
    width: auto !important;
    max-width: calc(100% - 30px) !important;
    margin: 18px auto 8px !important;
    padding: 9px 20px !important;
    box-sizing: border-box !important;
    color: #167e86 !important;
    background-color: #e8f7f8 !important;
    border: 1px solid #c9e9eb !important;
    border-radius: 18px !important;
    font-size: 15.5px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    text-align: center !important;
    direction: rtl !important;
}


/* =========================================================
 * 5. אזור המוצרים
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"] .cuw-gird {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;
    margin-top: 18px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}


/* =========================================================
 * 6. עמודת מוצר וכרטיס מוצר
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-column.cuw-product {
    flex: 0 1 240px !important;
    width: 240px !important;
    max-width: 240px !important;
    margin: 0 18px 22px !important;
    box-sizing: border-box !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-card {
    width: 100% !important;
    max-width: 240px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}


/* =========================================================
 * 7. תמונות המוצרים
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 215px !important;
    height: 215px !important;
    margin: 0 auto 12px !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-image picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
}


/* =========================================================
 * 8. שמות המוצרים
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-title,
.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-title a,
.cuw-fbt-products[data-campaign_id="2"]
.cuw-modal-product-detail {
    color: #333333 !important;
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-title {
    min-height: 46px !important;
    margin: 8px auto 5px !important;
}


/* =========================================================
 * 9. מחירי המוצרים
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-price {
    margin-top: 5px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-price * {
    font-size: 17px !important;
    line-height: 1.35 !important;
}


/* =========================================================
 * 10. מיקום הצ'קבוקסים במחשב
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-actions > div:has(> input.cuw-product-checkbox:not([data-hidden="1"])) {
    top: 6px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 5 !important;
}


/* =========================================================
 * 11. עיצוב הצ'קבוקסים
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"]) {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 4px !important;
    padding: 0 !important;
    color: transparent !important;
    border: 2px solid #4db3c2 !important;
    border-radius: 4px !important;
    outline: none !important;
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    accent-color: transparent !important;
}


/* מנטרל את סימן הווי המקורי של התוסף */

.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"])::before,
.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"])::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
}


/* צ'קבוקס מסומן עם סימן וי לבן יחיד */

.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"]):checked {
    color: transparent !important;
    border-color: #4db3c2 !important;
    background-color: #4db3c2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.3l3.1 3.1L13 4.8' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
}


/* מעבר עכבר */

.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"]):hover {
    border-color: #167e86 !important;
}


/* ניווט באמצעות מקלדת */

.cuw-fbt-products[data-campaign_id="2"]
input.cuw-product-checkbox:not([data-hidden="1"]):focus-visible {
    outline: 2px solid #167e86 !important;
    outline-offset: 2px !important;
}


/* =========================================================
 * 12. סימני הפלוס
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-product-separator {
    color: #777777 !important;
    font-size: 30px !important;
    line-height: 1 !important;
}


/* =========================================================
 * 13. אזור סיכום המחיר
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-buy-section {
    width: 100% !important;
    max-width: 850px !important;
    margin: 4px auto 0 !important;
    box-sizing: border-box !important;
}


/* =========================================================
 * 14. כפתור ההוספה לסל
 * ========================================================= */

.cuw-fbt-products[data-campaign_id="2"]
.cuw-add-to-cart {
    min-height: 48px !important;
    padding: 11px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* =========================================================
 * 15. התאמה מלאה למובייל
 * ========================================================= */

@media screen and (max-width: 767px) {

    /* מעטפת הקמפיין */

    .cuw-fbt-products[data-campaign_id="2"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 14px auto !important;
        padding: 16px 8px 20px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }


    /* כותרת ראשית */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-heading {
        margin: 0 auto !important;
        padding: 0 8px !important;
        font-size: 21px !important;
        line-height: 1.35 !important;
    }


    /* כותרת משנה */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-heading::after {
        max-width: 340px !important;
        margin: 8px auto 0 !important;
        padding: 0 5px !important;
        font-size: 15.5px !important;
        line-height: 1.55 !important;
    }


    /* תגית 20% */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-form::before {
        display: block !important;
        width: fit-content !important;
        max-width: calc(100% - 20px) !important;
        margin: 14px auto 10px !important;
        padding: 8px 14px !important;
        border-radius: 16px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }


    /* הצגת המוצרים אחד מתחת לשני */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-gird {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }


    /* רוחב כרטיס מוצר */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-column.cuw-product {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto 10px !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-wrapper {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-card {
        width: 100% !important;
        max-width: 230px !important;
        margin: 0 auto !important;
    }


    /* הקטנת תמונות המוצרים */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-image {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 6px !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-image picture {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-image img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: auto !important;
        object-fit: contain !important;
    }


    /* שמות המוצרים */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-title,
    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-title a,
    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-modal-product-detail {
        min-height: 0 !important;
        margin-top: 5px !important;
        padding: 0 3px !important;
        color: #333333 !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        text-align: center !important;
    }


    /* מחירי המוצרים */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-price {
        margin-top: 4px !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-price * {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }


    /* סימני הפלוס */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-separator {
        margin: 0 auto 7px !important;
        padding: 0 !important;
        color: #777777 !important;
        font-size: 29px !important;
        line-height: 1 !important;
    }


    /* מיקום הצ'קבוקסים ליד התמונות */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-product-actions > div:has(> input.cuw-product-checkbox:not([data-hidden="1"])) {
        top: 5px !important;
        right: 28px !important;
        left: auto !important;
        z-index: 5 !important;
    }


    /* גודל הצ'קבוקסים במובייל */

    .cuw-fbt-products[data-campaign_id="2"]
    input.cuw-product-checkbox:not([data-hidden="1"]) {
        width: 24px !important;
        height: 24px !important;
        background-size: 16px 16px !important;
    }

    .cuw-fbt-products[data-campaign_id="2"]
    input.cuw-product-checkbox:not([data-hidden="1"]):checked {
        background-size: 16px 16px !important;
    }


    /* אזור המחיר הכולל */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-buy-section {
        width: 100% !important;
        max-width: 340px !important;
        margin: 4px auto 0 !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }


    /* כפתור ההוספה לסל */

    .cuw-fbt-products[data-campaign_id="2"]
    .cuw-add-to-cart {
        width: 100% !important;
        min-height: 48px !important;
        padding: 11px 12px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }
}