/**
 * Custom Side Cart (ported from Custom Side Cart plugin — same markup / behaviour).
 *
 * Stacking: do NOT use z-index:0 on the wrapper — it traps fixed overlay/panel UNDER
 * Elementor headers (often z-index 99–999999). When open, lift the whole subtree above
 * header + chat widgets; overlay/panel stay ordered inside that context.
 */
.custom-side-cart {
	position: relative;
	z-index: auto;
}

.custom-side-cart.open {
	position: relative;
	z-index: 2147483000;
}

.csc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 2147483001;
}

.csc-panel {
	position: fixed;
	top: 0;
	right: -420px;
	width: 380px;
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
	transition: right 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
	background-color: #f1e1cf;
	display: flex;
	flex-direction: column;
	padding: 20px;
	z-index: 2147483010;
	/* Do not set font-family here — it cascades into Elementor template (recommendations) and breaks layout/typography */
}

.custom-side-cart.open .csc-overlay {
	opacity: 1;
	visibility: visible;
}

.custom-side-cart.open .csc-panel {
	right: 0;
}

.csc-close {
	cursor: pointer;
}

.csc-items {
	overflow: scroll;
	max-height: calc(100vh - 580px);
	padding: 0 10px;
	margin: 0 -10px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cart-min {
	background: #fff;
	border-radius: 5px;
	padding: 20px 10px;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	font-family: "Inter", sans-serif;
}

.csc-empty-cart {
	display: flex;
	flex-direction: column;
	gap: 13px;
	align-items: stretch;
	justify-content: center;
}

.csc-empty-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 25px;
}

.csc-empty-text p {
	margin: auto;
	text-align: center;
	color: #000;
	font-size: 18px;
}

.cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.csc-footer {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 20px 0 0;
	border-top: 1px solid #000;
	margin-top: 20px;
}

.csc-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	color: #000;
	font-size: 18px;
}

.footer_link {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer_link p {
	color: #000;
	font-size: 14px;
	margin: 6px 0 0;
	line-height: 100%;
}

.footer_link a {
	color: #fff;
	background: #000;
	border-radius: 5px;
	text-align: center;
	padding: 10px 0;
	font-family: "Bebas Neue", sans-serif;
	font-size: 20px;
	line-height: 100%;
}

.footer_link .csc-cart-btn {
	background: #000;
}

.footer_link .csc-checkout-btn {
	background: #c6580d;
}

.csc-item {
	padding-right: 6px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border-bottom: 1px solid #000;
	padding-bottom: 24px;
}

.csc-items .csc-item:last-child {
	border: 0;
	padding-bottom: 0;
}

.csc-thumb {
	flex: 80px 0 0;
}

/* Scoped to WooCommerce line items only — unscoped rule broke Elementor template images (carousel). */
.csc-items .csc-thumb img,
.csc-item .csc-thumb img {
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 5px;
}

.csc-details h4,
.csc-details a {
	margin: 0;
	font-size: 18px;
	font-family: "Bebas Neue", sans-serif;
}

.csc-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.csc_product_info {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.csc_product_item_inner {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: 13px;
	align-items: self-end;
}

input.csc-qty-input {
	border-radius: 0 !important;
	padding: 0 !important;
	height: 22px;
	max-width: 40px;
	font-size: 13px;
}

span.csc-remove {
	font-size: 10px;
	cursor: pointer;
	border-bottom: 1px solid #000;
}

.cart-header h3 {
	font-family: "Bebas Neue", sans-serif;
	font-size: 20px;
	text-align: left;
	margin: 0;
}

@media (max-width: 767px) {
	/* Same stacking as desktop — no z-index:0 here (it broke under sticky headers). */
	.csc-overlay {
		z-index: 2147483001;
	}

	.csc-panel {
		width: 100vw;
		right: -100vw;
		top: auto;
		bottom: 0;
		max-height: calc(100% - 99px);
		z-index: 2147483010;
	}

	.custom-side-cart.open .csc-panel {
		right: 0;
	}

	.csc-empty-text p {
		font-size: 13px;
		max-width: 257px;
	}

	.csc-total {
		font-size: 13px;
	}

	.footer_link p {
		font-size: 12px;
	}

	.csc-items {
		max-height: calc(100vh - 640px);
	}
}

@media (max-height: 740px) {
	.recommendations_div {
		display: none;
	}

	.csc-items {
		max-height: calc(100vh - 400px);
	}
}

.cart-min:has(.csc-empty-cart) {
	min-height: auto;
}

.cart-min:has(.csc-empty-cart) .recommendations_div {
	display: none;
}

.recommendations_div {
	margin-top: 24px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	font-family: inherit;
	/* Elementor nested template + Swiper need a sane width; flex “min-width: auto” clips carousels */
	display: flex;
	flex-direction: column;
	gap: 19px;
	flex-wrap: wrap;
}

.recommendations_div .sailiz-csc-recommendations-title {
	font-family: "Bebas Neue", Sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 100%;
	color: var(--e-global-color-0f202b1);
	margin: 0;
}

.recommendations_div .sailiz-csc-recommendations-empty {
	width: 100%;
	min-height: 0;
	overflow: hidden;
}

.recommendations_div .sailiz-csc-rec-slider {
	width: 100%;
	overflow: visible;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-wrapper {
	gap: 0 !important;
	align-items: stretch;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-slide {
	max-width: 270px;
	width: 270px;
	height: auto;
	display: flex;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-slide,
.recommendations_div .sailiz-csc-rec-slider .swiper-slide > * {
	height: 100%;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-slide:nth-child(odd) {
	background: #edd3bc;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-slide:nth-child(even){
	background: #ddcdbd;
}

.recommendations_div .sailiz-csc-rec-card {
	padding: 10px;
	display: flex;
	align-items: stretch;
	align-self: auto;
	gap: 10px;
	box-sizing: border-box;
	min-width:  100%;
}

.recommendations_div .sailiz-csc-rec-img {
	aspect-ratio: 1;
	object-fit: cover;
	max-height: 80px;
	width: 80px;
	border-radius: 4px;
}

.recommendations_div .sailiz-csc-rec-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: space-between;
	align-items: stretch;
	min-width: 0;
	flex: 1;
}

.recommendations_div .sailiz-csc-rec-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.recommendations_div .sailiz-csc-rec-name {
	font-family: "Inter", Sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--e-global-color-0f202b1);
	line-height: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.recommendations_div .sailiz-csc-rec-price {
	font-family: "Inter", Sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--e-global-color-0f202b1);
	line-height: 105%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.recommendations_div .sailiz-csc-rec-price del,
.recommendations_div .sailiz-csc-rec-price ins {
	white-space: nowrap;
}

.recommendations_div .sailiz-csc-rec-btn {
	background-color: var(--e-global-color-ae2c939);
	font-family: "Bebas neue c", Sans-serif;
	font-size: 14px;
	line-height: 100%;
	color: var(--e-global-color-338dc9c);
	border-style: none;
	border-radius: 5px 5px 5px 5px;
	padding: 8px 15px 8px 15px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-button-next,
.recommendations_div .sailiz-csc-rec-slider .swiper-button-prev {
	color: #000;
	background: #fff;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	top: auto;
	bottom: 0;
	transform: none;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-button-next:after,
.recommendations_div .sailiz-csc-rec-slider .swiper-button-prev:after {
	font-size: 12px;
	font-weight: 700;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-button-prev {
	left: 0;
	right: auto;
}

.recommendations_div .sailiz-csc-rec-slider .swiper-button-next {
	right: 0;
	left: auto;
}

.recommendations_div .sailiz-csc-recommendations-btn {
	background-color: var(--e-global-color-ae2c939);
	font-family: "Bebas Neue", Sans-serif;
	font-size: 20px;
	line-height: 100%;
	fill: var(--e-global-color-338dc9c);
	color: var(--e-global-color-338dc9c);
	border-style: none;
	border-radius: 5px;
	padding: 12px 40px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: 0 auto;
}

.recommendations_div .elementor,
.recommendations_div .elementor-element,
.recommendations_div .e-con,
.recommendations_div .e-con-inner,
.recommendations_div .elementor-widget-wrap {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.recommendations_div .swiper,
.recommendations_div .swiper-container,
.recommendations_div .swiper-wrapper {
	max-width: 100%;
}

.recommendations_div .swiper-slide {
	box-sizing: border-box;
}

.csc-toggle {
	cursor: pointer;
}


@media (max-width: 767px) {
	.custom-side-cart.open .csc-overlay {
	  opacity: 0 !important;
	  visibility: hidden !important;
	}
  
	.csc-panel {
	  box-shadow: none !important;
	}
  }