li.rs-cc-li{list-style:none!important;padding:0!important;margin:0!important;border:none!important;display:block!important;width:100%}
li.rs-cc-li::before,li.rs-cc-li::after{display:none!important}

/* --- הצמדה לתחתית אזור הגלילה: הקרוסלה נשארת גלויה גם כשיש הרבה מוצרים בעגלה --- */
@media (max-width:768px){li.rs-cc-li--dock-m{position:sticky;bottom:0;z-index:6}}
@media (min-width:769px){li.rs-cc-li--dock-d{position:sticky;bottom:0;z-index:6}}

.rs-cart-carousel{--rs-cc-accent:#533DF2;padding:14px 12px;border-top:1px solid rgba(0,0,0,.08);background:var(--rs-cc-bg,#fafafa)}
li.rs-cc-li .rs-cart-carousel{border-radius:10px;border-top:none;margin-top:10px}
li.rs-cc-li .rs-cart-carousel.rs-cc-stuck{box-shadow:0 -6px 18px rgba(0,0,0,.13)}

.rs-cart-carousel__head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rs-cart-carousel__title{font-weight:700;font-size:clamp(13px,3.5vw,15px);color:var(--rs-cc-title,inherit);flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ערימת תמונות בפס המכווץ — הרמז שיש כאן מוצרים גם כשהקרוסלה סגורה */
.rs-cc-thumbs{display:none;align-items:center;margin-inline-start:auto;flex:0 0 auto}
.rs-cc-thumbs img.rs-cc-thumb{width:24px;height:24px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.18);margin-inline-start:-9px;display:block}
.rs-cc-thumbs img.rs-cc-thumb:first-child{margin-inline-start:0}
.rs-cc-thumbs__more{font-size:10px;font-weight:700;line-height:1;color:var(--rs-cc-btn-text,#fff);background:var(--rs-cc-accent);border-radius:20px;padding:4px 6px;margin-inline-start:4px}

.rs-cart-carousel__arrows{margin-inline-start:auto;flex:0 0 auto;white-space:nowrap}
.rs-cc-arrow{width:28px;height:28px;border:1px solid #ddd;background:#fff;border-radius:50%;cursor:pointer;line-height:1;font-size:16px;margin-inline-start:6px;transition:opacity .2s,background .2s,color .2s,border-color .2s;display:inline-flex;align-items:center;justify-content:center}
.rs-cc-arrow:hover{background:var(--rs-cc-accent);color:var(--rs-cc-btn-text,#fff);border-color:var(--rs-cc-accent)}
.rs-cc-arrow[disabled]{opacity:.3;pointer-events:none}
@media (hover:none) and (pointer:coarse){.rs-cart-carousel__arrows{display:none}}

/* כפתור הפתיחה/סגירה — מוצג רק במצב מכווץ במובייל, החץ מצויר עליו */
.rs-cc-toggle{display:none;position:relative;flex:0 0 auto;width:22px;height:22px;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.rs-cc-toggle::after{content:'';position:absolute;top:4px;left:4px;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .25s;opacity:.55}
.rs-cc-open .rs-cc-toggle::after{transform:rotate(-135deg);top:7px}

/* ה-viewport אוחז את אנימציית הפתיחה ואת ההצללה שרומזת שיש עוד מוצרים בצד */
.rs-cart-carousel__viewport{position:relative;overflow:hidden}
.rs-cart-carousel__viewport::after{content:'';position:absolute;top:0;bottom:0;left:0;width:26px;pointer-events:none;opacity:0;transition:opacity .2s;background:linear-gradient(to left,rgba(255,255,255,0),var(--rs-cc-bg,#fafafa))}
.rs-cart-carousel.rs-cc-more .rs-cart-carousel__viewport::after{opacity:1}

/* ranshtam: touch-action חייב לאפשר גם pan-y — עם pan-x בלבד הדפדפן בולע
   החלקה אנכית שמתחילה על הקרוסלה, והמשתמש נתקע ולא יכול לגלול חזרה למעלה */
.rs-cart-carousel__track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:4px;overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;cursor:grab}
.rs-cart-carousel__track.rs-cc-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.rs-cart-carousel__track::-webkit-scrollbar{display:none}

.rs-cc-item{flex:0 0 clamp(100px,32vw,124px);scroll-snap-align:start;background:#fff;border:1px solid #eee;border-radius:10px;padding:8px;text-align:center;display:flex;flex-direction:column;position:relative}
.rs-cc-item__body{display:contents}
.rs-cc-item__img{display:block;position:relative}
/* ranshtam: הקרוסלה יושבת בתוך ul.product_list_widget, ולווידג'ט יש כלל גורף
   על כל img בתוך li (float והצמדת רוחב) שגובר עלינו בסלקטור. מנטרלים אותו
   במפורש, כולל margin אוטומטי כדי שגם אם רוחב זר ינצח התמונה תישאר במרכז. */
.rs-cart-carousel .rs-cc-item__img img{float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:0 auto!important;padding:0!important;box-shadow:none!important;aspect-ratio:1/1;object-fit:cover;border-radius:6px;display:block}
.rs-cart-carousel .rs-cc-item__img{float:none!important;width:auto}
.rs-cart-carousel .rs-cc-thumbs img.rs-cc-thumb{float:none!important;max-width:none!important}
.rs-cc-badge{position:absolute;top:4px;inset-inline-start:4px;background:var(--rs-cc-badge,#e0284f);color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:20px;line-height:1.4;z-index:1}
.rs-cc-item__name{font-size:clamp(11px,3vw,12px);line-height:1.3;margin:6px 0 2px;min-height:31px}
.rs-cc-item__price{font-size:clamp(11px,3vw,12px);font-weight:700;margin-bottom:6px}
.rs-cc-item__price del{opacity:.5;font-weight:400;margin-inline-end:4px}
.rs-cc-item__btn.button{font-size:12px!important;padding:8px 4px!important;border-radius:var(--rs-cc-btn-radius,8px)!important;background:var(--rs-cc-accent)!important;color:var(--rs-cc-btn-text,#fff)!important;line-height:1!important;min-height:0!important;margin-top:auto;position:relative;transition:opacity .2s}
.rs-cc-item__btn.button:hover{opacity:.85}
.rs-cc-item__btn.button.loading{color:transparent!important;pointer-events:none}
.rs-cc-item__btn.button.loading::after{content:'';position:absolute;inset:0;margin:auto;width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:var(--rs-cc-btn-text,#fff);border-radius:50%;animation:rs-cc-spin .6s linear infinite}
@keyframes rs-cc-spin{to{transform:rotate(360deg)}}
.rs-cc-item__btn.added{display:none}
.rs-cc-item .added_to_cart{display:none}

/* --- פריסה אופקית: תמונה בימין, טקסט וכפתור בשמאל, כרטיס מלא + הצצה לבא --- */
.rs-cart-carousel--layout-horizontal .rs-cc-item{flex:0 0 clamp(230px,82%,300px);flex-direction:row;align-items:center;text-align:start;gap:10px;padding:8px}
.rs-cart-carousel--layout-horizontal .rs-cc-item__img{flex:0 0 clamp(60px,20vw,78px);width:clamp(60px,20vw,78px)}
.rs-cart-carousel--layout-horizontal .rs-cc-item__body{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:3px;text-align:start}
.rs-cart-carousel--layout-horizontal .rs-cc-item__name{font-size:13px;min-height:0;margin:0;white-space:normal}
.rs-cart-carousel--layout-horizontal .rs-cc-item__price{font-size:13px;margin:0}
.rs-cart-carousel--layout-horizontal .rs-cc-item__btn.button{margin-top:4px;align-self:flex-start;padding:7px 16px!important}
@media (max-width:768px){
	.rs-cart-carousel--layout-horizontal .rs-cc-item{flex:0 0 86%}
}

/* --- מובייל: לא תופסים את המסך --- */
@media (max-width:768px){
	.rs-cart-carousel--m-hidden{display:none!important}

	.rs-cart-carousel--m-compact,.rs-cart-carousel--m-collapsed{padding:10px}
	/* ranshtam: מוקטן רק בפריסה האנכית — בפריסה השוכבת 84px מועך את הכרטיס */
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-compact .rs-cc-item,
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-collapsed .rs-cc-item{flex:0 0 84px;padding:6px;border-radius:8px}
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-compact .rs-cc-item__name,
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-collapsed .rs-cc-item__name{font-size:10px;min-height:0;margin:4px 0 2px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-compact .rs-cc-item__price,
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-collapsed .rs-cc-item__price{font-size:10px;margin-bottom:4px}
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-compact .rs-cc-item__btn.button,
	.rs-cart-carousel--layout-vertical.rs-cart-carousel--m-collapsed .rs-cc-item__btn.button{font-size:10px!important;padding:6px 2px!important}
	.rs-cart-carousel--m-compact .rs-cc-badge,.rs-cart-carousel--m-collapsed .rs-cc-badge{font-size:9px;padding:1px 5px}

	.rs-cart-carousel--m-collapsed .rs-cart-carousel__head{margin-bottom:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
	.rs-cart-carousel--m-collapsed .rs-cc-toggle{display:block}
	.rs-cart-carousel--m-collapsed .rs-cc-thumbs{display:flex}
	.rs-cart-carousel--m-collapsed.rs-cc-open .rs-cc-thumbs{display:none}
	.rs-cart-carousel--m-collapsed .rs-cart-carousel__viewport{max-height:0;transition:max-height .3s ease,margin .3s ease;margin-top:0}
	.rs-cart-carousel--m-collapsed.rs-cc-open .rs-cart-carousel__viewport{max-height:min(var(--rs-cc-m-height,240px),46vh);margin-top:10px}

	/* פס מוצמד וסגור מקבל רמז חד-פעמי כדי שלא יתפספס */
	.rs-cart-carousel.rs-cc-nudge .rs-cc-toggle::after{animation:rs-cc-chev 1.1s ease 2}
	.rs-cart-carousel.rs-cc-nudge .rs-cc-thumbs img.rs-cc-thumb{animation:rs-cc-thumb-pop 1.1s ease 2}
}

/* --- רמז צף: יושב על ה-body ולכן שום overflow או transform של התבנית לא מבטל אותו --- */
.rs-cc-cue-wrap{position:fixed;z-index:9999;display:none;justify-content:center;pointer-events:none}
.rs-cc-cue-wrap.is-on{display:flex}
.rs-cc-cue{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;max-width:92%;border:0;cursor:pointer;padding:7px 14px 7px 10px;border-radius:24px;background:#533DF2;color:#fff;font-size:13px;font-weight:700;line-height:1.2;box-shadow:0 6px 20px rgba(0,0,0,.3);animation:rs-cc-cue-in .28s ease}
.rs-cc-cue::after{content:'';flex:0 0 auto;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:3px}
.rs-cc-cue__thumbs{display:flex;align-items:center;flex:0 0 auto}
.rs-cc-cue__thumbs img{width:22px;height:22px;border-radius:50%;object-fit:cover;border:2px solid currentColor;margin-inline-start:-8px;display:block;background:#fff}
.rs-cc-cue__thumbs img:first-child{margin-inline-start:0}
@keyframes rs-cc-cue-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@keyframes rs-cc-chev{0%,100%{transform:rotate(45deg) translate(0,0)}50%{transform:rotate(45deg) translate(2px,2px)}}
@keyframes rs-cc-thumb-pop{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}

@media (prefers-reduced-motion:reduce){
	.rs-cart-carousel__track{scroll-behavior:auto}
	.rs-cart-carousel__viewport{transition:none!important}
	.rs-cart-carousel.rs-cc-nudge .rs-cc-toggle::after,
	.rs-cart-carousel.rs-cc-nudge .rs-cc-thumbs img.rs-cc-thumb{animation:none}
	.rs-cc-cue{animation:none}
}

/* ============================================================
   שכבת רספונסיביות, 1.9.0
   הקרוסלה יושבת בתוך מגירה ברוחב קבוע, ולכן vw של החלון הוא המדד הלא נכון:
   מגירה של 380px על מסך 1920px קיבלה בדיוק אותו גודל כרטיס כמו על טאבלט.
   כאן מודדים את רוחב המיכל עצמו, ונשארים עם הכללים הישנים כ-fallback.
   ============================================================ */

.rs-cart-carousel{--rs-cc-card:clamp(100px,32vw,124px);--rs-cc-gap:10px}
.rs-cart-carousel__track{gap:var(--rs-cc-gap);scroll-padding-inline:2px}
.rs-cc-item{flex:0 0 var(--rs-cc-card)}
/* גובה שורת השם נגזר מגודל הגופן במקום 31px קבועים, כדי שלא ייחתך בהגדלת טקסט */
.rs-cc-item__name{min-height:2.6em}

@supports (container-type:inline-size){
	.rs-cart-carousel{container-type:inline-size;container-name:rscc}

	/* מגירה צרה או מסך קטן: שלושה כרטיסים וחצי בשורה, בלי לחנוק את הטקסט */
	@container rscc (max-width:299px){
		.rs-cart-carousel{--rs-cc-card:29cqw;--rs-cc-gap:8px;padding:10px 8px}
		.rs-cc-item{padding:6px}
		.rs-cc-item__name{font-size:11px}
	}

	@container rscc (min-width:300px) and (max-width:419px){
		.rs-cart-carousel{--rs-cc-card:clamp(96px,30cqw,116px)}
	}

	/* מגירה רחבה או תצוגה בעמוד: כרטיס נוח יותר, בלי להיכנס לרוחב אינסופי */
	@container rscc (min-width:420px){
		.rs-cart-carousel{--rs-cc-card:clamp(118px,24cqw,150px);--rs-cc-gap:12px}
		.rs-cc-item__name{font-size:13px}
		.rs-cc-item__price{font-size:13px}
	}

	/* פריסה שוכבת נמדדת גם היא לפי המיכל: כרטיס מלא ועוד הצצה לבא אחריו */
	@container rscc (max-width:359px){
		.rs-cart-carousel--layout-horizontal .rs-cc-item{flex:0 0 88cqw}
	}

	@container rscc (min-width:360px){
		.rs-cart-carousel--layout-horizontal .rs-cc-item{flex:0 0 clamp(230px,82cqw,320px)}
	}
}

/* גובה הפתיחה במובייל: dvh מודד את החלון האמיתי אחרי שסרגל הדפדפן נעלם,
   ולכן הקרוסלה לא נחתכת באייפון. דפדפן בלי dvh נשאר על vh. */
@supports (height:1dvh){
	@media (max-width:768px){
		.rs-cart-carousel--m-collapsed.rs-cc-open .rs-cart-carousel__viewport{max-height:min(var(--rs-cc-m-height,240px),46dvh)}
	}
}

/* טלפון שכוב: הגובה הוא המשאב הנדיר, לא הרוחב */
@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
	.rs-cart-carousel--m-collapsed.rs-cc-open .rs-cart-carousel__viewport{max-height:min(var(--rs-cc-m-height,240px),58vh)}
	.rs-cart-carousel{padding:8px 10px}
	.rs-cart-carousel__head{margin-bottom:6px}
	.rs-cc-item__name{min-height:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
}

/* מסכים קטנים מאוד, iPhone SE ומטה */
@media (max-width:360px){
	.rs-cart-carousel{padding:10px 8px}
	.rs-cart-carousel__title{font-size:12px}
	.rs-cc-thumbs img.rs-cc-thumb{width:20px;height:20px;margin-inline-start:-7px}
	.rs-cc-cue{font-size:12px;padding:6px 12px 6px 9px}
}

/* מסכי מגע גדולים: החצים מוסתרים בכלל הקיים, אז מגדילים את שטח ההקשה של הפותח */
@media (hover:none) and (pointer:coarse){
	.rs-cc-toggle{width:32px;height:32px}
	.rs-cc-toggle::after{top:9px;left:9px}
	.rs-cc-open .rs-cc-toggle::after{top:12px}
	.rs-cc-item__btn.button{padding:10px 4px!important}
}

/* דסקטופ רחב: המגירה של WoodMart מגיעה ל-400px ומעלה, יש מקום לנשום */
@media (min-width:1200px){
	.rs-cart-carousel{padding:16px 14px}
	.rs-cc-arrow{width:30px;height:30px}
}

/* מסך צר במיוחד לצד טקסט מוגדל: הכותרת מפסיקה להידחס לחצים */
@media (max-width:420px){
	.rs-cart-carousel__head{flex-wrap:nowrap}
	.rs-cart-carousel__title{flex:1 1 auto}
}
