/**
 * שליש גן עדן — עיצוב רכיבי ה-Composite: כרטיסי בחירה (radio cards),
 * סווצ'ים של וריאציות, כפתור הוספה לסל, שדה כמות והסתרות שונות.
 *
 * הועבר מ-Elementor Custom Code #42568 "עיצוב וריאציות שליש גן עדן"
 * (מיקום מקורי: elementor_body_start, תנאי: מוצר 42509). הקוד זהה למקור.
 *
 * הערה: 4 חוקי ההסתרה הראשונים (tr.attribute_pa_size / .tawcvs-swatches וכו')
 * לא תופסים כלום ב-DOM הנוכחי — נכתבו כנראה לתוסף סווצ'ים ישן (tawcvs).
 * הושארו 1:1 לשמירת זהות עם המקור; מועמדים למחיקה בסבב ניקוי — ראו README.
 */

.composite_component:first-child .variations tr.attribute_pa_size,
.composite_component:nth-child(1) .variations tr.attribute_pa_size,
.composite_component.first .variations tr.attribute_pa_size {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.composite_component:first-child .variations .attribute_pa_size,
.composite_component:nth-child(1) .variations .attribute_pa_size,
.composite_component.first .variations .attribute_pa_size {
    display: none !important;
}

.composite_component:first-child .tawcvs-swatches[data-attribute_name="attribute_pa_size"],
.composite_component:nth-child(1) .tawcvs-swatches[data-attribute_name="attribute_pa_size"],
.composite_component.first .tawcvs-swatches[data-attribute_name="attribute_pa_size"] {
    display: none !important;
}

.composite_component:first-child .variations [class*="pa_size"],
.composite_component:nth-child(1) .variations [class*="pa_size"],
.composite_component.first .variations [class*="pa_size"] {
    display: none !important;
}

/* ========================================
   עיצוב בחירת מיטות/מזרנים - כמו variation swatches
   ======================================== */

/* Container של הרדיו באטונים */
.component_option_radio_buttons_container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0.4rem 0 !important;
    list-style: none !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

/* Container של כל כפתור */
.component_option_radio_button_container {
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    max-width: fit-content !important;
}

/* הכפתור עצמו */
.component_option_radio_button {
    border: 0.1111rem solid #ddd !important;
    border-radius: 0.2778rem !important;
    padding: 0.55rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 2rem !important;
    width: 100% !important;
    white-space: nowrap !important;
}

.component_option_radio_button:hover {
    border-color: #999 !important;
    box-shadow: 0 0.1111rem 0.4444rem rgba(0,0,0,0.1) !important;
}

.component_option_radio_button.selected {
    border: 0.05rem solid #000 !important;
    background: #FFFBF3 !important;
    box-shadow: 0 0.1111rem 0.6667rem rgba(0,0,0,0.15) !important;
}

.component_option_radio_button .radio_button_input {
    display: none !important;
}

.component_option_radio_button .radio_button_description {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent;
}

.component_option_radio_button .radio_button_title {
    font-weight: 400 !important;
    font-size: 1rem !important;
    color: #333 !important;
    text-align: center !important;
    display: block !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* הסתרת אלמנטים מיותרים */
.component_option_radio_buttons_legend,
.select_label {
    display: none !important;
}

/* ========================================
   עיצוב כותרות ומבנה כללי
   ======================================== */

/* כותרת הרכיב */
.component_title {
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin-bottom: 0rem !important;
}

.composite_component {
    margin-bottom: 1rem !important;
}

/* ========================================
   התאמת טבלת וריאציות לעיצוב שלך
   ======================================== */

.composite_component .variations th.label {
    height: 1.8rem !important;
    padding-right: 0rem !important;
}

.composite_component .variations th.label > label {
    font-size: 1rem !important;
}

.composite_component .variations th.label > label::after {
    content: ":" !important;
    font-size: 1rem !important;
    margin-inline-start: 0rem !important;
}

.composite_component .variations td.value {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

.composite_component .variations tr {
    display: grid !important;
    text-align: right !important;
    padding-bottom: 0.6rem !important;
}

.composite_component .variations tr:hover,
.composite_component .variations tr:hover > td,
.composite_component .variations tr:hover > th {
    background: transparent !important;
    box-shadow: none !important;
}

/* הסתרת .woo-selected-variation-item-name */
.composite_component .woo-selected-variation-item-name {
    font-size: 0rem !important;
}

/* ========================================
   עיצוב variation swatches בתוך composite
   ======================================== */

.composite_component .variable-items-wrapper.button-variable-items-wrapper {
    display: grid !important;
    gap: 0.5rem !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
}

.composite_component .variable-items-wrapper.button-variable-items-wrapper > li {
    padding-left: 0.5555rem !important;
    padding-right: 0.5555rem !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0rem !important;
}

.composite_component .variable-items-wrapper.button-variable-items-wrapper > li:last-child {
    margin-left: 0rem !important;
}

/* 2 פריטים */
.composite_component .variable-items-wrapper.button-variable-items-wrapper:has(.button-variable-item:nth-child(2)):not(:has(.button-variable-item:nth-child(3))) {
    display: flex !important;
    gap: 0.5rem !important;
}

.composite_component .variable-items-wrapper.button-variable-items-wrapper:has(.button-variable-item:nth-child(2)):not(:has(.button-variable-item:nth-child(3))) > li {
    width: auto !important;
}

/* 4 פריטים */
.composite_component .variable-items-wrapper.button-variable-items-wrapper:has(.button-variable-item:nth-child(4)):not(:has(.button-variable-item:nth-child(5))) {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* 5 פריטים */
.composite_component .variable-items-wrapper.button-variable-items-wrapper:has(.button-variable-item:nth-child(5)):not(:has(.button-variable-item:nth-child(6))) {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* 6 פריטים ומעלה */
.composite_component .variable-items-wrapper.button-variable-items-wrapper:has(.button-variable-item:nth-child(6)) {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* מידות - מקסימום 4 בשורה */
.composite_component .variable-items-wrapper.button-variable-items-wrapper[data-attribute_name="attribute_pa_size"]:has(.button-variable-item:nth-child(5)) {
    grid-template-columns: repeat(4, 1fr) !important;
}

.composite_component select,
.composite_component li.variable-item.button-variable-item {
    height: 2rem !important;
    border-radius: 0.2778rem !important;
}

.composite_component select,
.composite_component span.variable-item-span.variable-item-span-button {
    font-size: 1rem !important;
    height: 2rem !important;
}

.composite_component select {
    background-color: white !important;
}

/* Colors */
.composite_component li.variable-item.color-variable-item {
    border-radius: 100px !important;
    margin-left: 1em !important;
    height: 2rem !important;
    width: 2rem !important;
}

.composite_component span.variable-item-span.variable-item-span-color {
    border-radius: 100px !important;
}

/* ========================================
   עיצוב כפתור הוספה לסל
   ======================================== */

.composite_button button.single_add_to_cart_button {
    box-shadow: 0rem 0.1111rem 0.2222rem 0rem #00000040 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: calc(100% - 4.4rem) !important;
    height:2.33rem
}

.composite_button .single_add_to_cart_button .btn-label {
    display: inline-block !important;
}

.composite_button .single_add_to_cart_button .btn-var-sep {
    display: inline-block !important;
    width: 0.1666rem !important;
    height: 0.1666rem !important;
    background-color: white !important;
    vertical-align: middle !important;
    margin-right: 0.5em !important;
    margin-left: 0.5em !important;
    border-radius: 50% !important;
    margin-top: -0.2rem !important;
}

.composite_button .single_add_to_cart_button .btn-var-price {
    display: inline-block !important;
    font-weight: bold !important;
}

/* ========================================
   עיצוב שדה כמות
   ======================================== */

.composite_button input[type=number]::-webkit-inner-spin-button,
.composite_button input[type=number]::-webkit-outer-spin-button {
    opacity: 1 !important;
    display: block !important;
}

.composite_button input[type=number] {
    -moz-appearance: number-input !important;
    background-color: white !important;
    padding-left: 0.5555rem !important;
    padding-right: 0rem !important;
}

.composite_button .quantity {
    margin-bottom: 1rem !important;
}

/* ========================================
   הסתרת מחיר וריאציה
   ======================================== */
.composite_component .woocommerce-variation-price {
    display: none !important;
}

/* ========================================
   עיצוב מחיר כולל
   ======================================== */
.composite_price {
    display: none;
}

/* ========================================
   Mobile
   ======================================== */
@media only screen and (max-width: 33.3333rem) {
    .composite_component select,
    .composite_component span.variable-item-span.variable-item-span-button {
        font-size: 0.8333rem !important;
        height: 2rem !important;
    }

    .component_option_radio_button .radio_button_title {
        font-size: 0.8333rem !important;
    }

    .component_option_radio_button {
        padding: 0.45rem !important;
    }

    button.single_add_to_cart_button.composite_add_to_cart_button.wp-element-button.button.alt.has-var-price {
        width: 13.3rem !important;
    }
}

.composited_product_title_wrapper {
    display: none;
}

div#component_1759927421_inner {
    padding: 0;
}

.reset_variations_wrapper_fixed {
    display: none;
}

.composite_wrap {
    padding-top: 0rem !important;
}

.composite_component abbr.required {
    display: none;
}


span.radio_button_title.title {
    margin: 0 !important;
}

ul.component_option_radio_buttons_container.cp_clearfix , td.value.woo-variation-items-wrapper ul {
    padding-bottom: 1rem !important;
}



div#component_1759927420_inner {
    padding: 0;
}



.composite_wrap input#quantity_68e65f6e5f16e {
    height: 2.33rem;

}

.composite_wrap .quantity {
        margin:0 !important;

}

.composite_price {
    display: none !important;
}


ul.single-product-variable-items.wvs-style-squared.variable-items-wrapper {
    padding-bottom: 0 !important;
}



span.component_title_text.step_title_text {
    font-size: 1.11rem;
    font-family: 'fbextaza';
}

div#component_content_1759927421 {
    display: none;
}

/* ========================================
   05.08.2026 — הסתרת בורר המידות של המזרן
   המידה נגזרת אוטומטית ממידת המיטה (size-sync.js ממפה לזוג מזרנים),
   ולכן אין ללקוח מה לבחור כאן — וההסתרה מונעת יצירת אי-התאמה ידנית.
   למזרנים יש מאפיין יחיד (pa_size) ולכן מוסתרת כל טבלת הווריאציות.
   להחזרת הבורר לתצוגה — מחקו את הבלוק הזה בלבד.
   ======================================== */
#component_1759927421 .variations {
    display: none !important;
}
