/* ==========================================================================
   Alina Cart Upsell — קרוסלת אפסייל בעגלת הצד (Xoo)
   נאמן לעיצוב המקורי של .upsell-box, כקרוסלה.
   מקנן תחת .xoo-wsc-body ומשתמש ב-!important כדי לגבור על ה-custom CSS של Xoo
   ועל סגנונות התבנית/Elementor (שמעצבים לינקים/כפתורים בספציפיות גבוהה).
   ========================================================================== */

.xoo-wsc-body .alina-cu {
	direction: rtl;
	text-align: right;
	font-family: 'fbextaza', 'FbExtaza', 'Rubik', 'Heebo', 'Assistant', sans-serif;
	margin: 14px 15px 8px;
	color: #000;
}

.xoo-wsc-body .alina-cu *,
.xoo-wsc-body .alina-cu *::before,
.xoo-wsc-body .alina-cu *::after {
	box-sizing: border-box;
}

.xoo-wsc-body .alina-cu__header {
	font-size: 14px;
	font-weight: 400;
	margin-bottom: 10px;
	color: #000;
}

/* ---- קרוסלה ---- */
.xoo-wsc-body .alina-cu__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 0 8px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.xoo-wsc-body .alina-cu__track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.xoo-wsc-body .alina-cu__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

.xoo-wsc-body .alina-cu__track.is-dragging img {
	pointer-events: none;
}

/* ---- כרטיס ---- */
.xoo-wsc-body .alina-cu-card {
	flex: 0 0 auto;
	width: min( 84%, 300px );
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	border: 1px solid #ccc;
	border-radius: 10px;
	background: #fff;
	padding: 12px 10px;
	box-shadow: none;
}

.xoo-wsc-body .alina-cu-card__highlight {
	display: block;
	color: #ff5a01;
	font-size: 14px;
	line-height: 1.2;
	margin-bottom: 6px;
}

/* תמונה ימין (100×80) + פרטים שמאל */
.xoo-wsc-body .alina-cu-card__mid {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	margin: 4px 0 12px;
}

.xoo-wsc-body .alina-cu-card__image-wrap {
	width: 100px;
}

.xoo-wsc-body .alina-cu-card__image-wrap a {
	display: block;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__img {
	width: 100px !important;
	height: 80px !important;
	max-width: 100% !important;
	background-color: #eee;
	border: 0 !important;
	border-radius: 8px !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}

.xoo-wsc-body .alina-cu-card__details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.xoo-wsc-body .alina-cu-card__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__title a {
	color: #000 !important;
	text-decoration: none !important;
	font-weight: 400;
}

.xoo-wsc-body .alina-cu-card__subtitle {
	font-size: 14px;
	color: #a7a7a7 !important;
	line-height: 1.4;
}

/* ---- תחתית: מחיר + כפתור ---- */
.xoo-wsc-body .alina-cu-card__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

.xoo-wsc-body .alina-cu-card__price-label {
	font-size: 12px;
	margin-bottom: 3px;
	color: #000;
}

.xoo-wsc-body .alina-cu-card__prices {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__sale,
.xoo-wsc-body .alina-cu-card .alina-cu-card__sale .amount {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #000 !important;
	line-height: 1 !important;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__regular,
.xoo-wsc-body .alina-cu-card .alina-cu-card__regular .amount {
	font-size: 14px !important;
	font-weight: 400 !important;
	text-decoration: line-through !important;
	color: #999 !important;
	line-height: 1 !important;
}

.xoo-wsc-body .alina-cu-card__regular .woocommerce-Price-currencySymbol {
	text-decoration: none;
	display: inline-block;
}

/* כפתור הוספה — טורקיז עם טקסט (גובר על סגנון כפתורי התבנית) */
.xoo-wsc-body .alina-cu-card .alina-cu-card__add {
	flex: 0 0 auto;
	width: auto !important;
	appearance: none;
	-webkit-appearance: none;
	background: #687b7b !important;
	background-color: #687b7b !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	height: 30px !important;
	min-height: 0 !important;
	padding: 0 16px !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	letter-spacing: normal !important;
	white-space: nowrap;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	transition: opacity .15s ease;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__add:hover {
	background: #5a6b6b !important;
	color: #fff !important;
	opacity: 1;
}

.xoo-wsc-body .alina-cu-card .alina-cu-card__add.is-loading {
	opacity: .7;
	cursor: not-allowed;
	pointer-events: none;
}
