.ccs-wrap {
	--ccs-accent: #82bbc5;
	--ccs-accent-text: #242434;
	--ccs-border: rgba(0, 0, 0, 0.12);
	--ccs-muted: rgba(0, 0, 0, 0.6);
	grid-column: 1 / -1;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 16px 0 4px;
	text-align: right;
	direction: rtl;
	font-size: 14px;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}
.ccs-wrap button,
.ccs-wrap select,
.ccs-wrap a {
	letter-spacing: 0;
	text-transform: none;
	font-family: inherit;
	box-shadow: none;
}
.ccs-wrap *,
.ccs-wrap *::before,
.ccs-wrap *::after {
	box-sizing: border-box;
}
.ccs-block {
	border-top: 1px solid var(--ccs-border);
	padding: 14px 0 6px;
}
.ccs-head {
	margin-bottom: 10px;
}
.ccs-title {
	font-weight: 700;
	font-size: 15px;
}
.ccs-sub {
	margin-top: 2px;
	font-size: 13px;
	color: var(--ccs-muted);
}
.ccs-rail {
	position: relative;
}
.ccs-wrap .ccs-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0 0 3px;
	margin: 0;
	border: 1px solid var(--ccs-border);
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.ccs-wrap .ccs-arrow[hidden] {
	display: none;
}
.ccs-wrap .ccs-prev {
	right: -4px;
}
.ccs-wrap .ccs-next {
	left: -4px;
}
.ccs-ctx-cart .ccs-prev {
	right: -17px;
}
.ccs-ctx-cart .ccs-next {
	left: -17px;
}
.ccs-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	padding: 2px 0 10px;
	scrollbar-width: none;
}
.ccs-track::-webkit-scrollbar {
	display: none;
}
.ccs-card {
	flex: 0 0 126px;
	width: 126px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--ccs-border);
	border-radius: 10px;
	padding: 8px;
}
.ccs-ctx-cart .ccs-card {
	flex-basis: 170px;
	width: 170px;
}
.ccs-img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	background: #f4f4f4;
}
.ccs-wrap .ccs-img img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	margin: 0;
}
.ccs-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 999px;
	direction: ltr;
}
.ccs-wrap .ccs-name {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.ccs-wrap .ccs-spec {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--ccs-muted);
	font-size: 12px;
	text-align: right;
	cursor: pointer;
	min-height: 0;
	line-height: 1.3;
	white-space: normal;
}
.ccs-spec-edit {
	text-decoration: underline;
	white-space: nowrap;
}
.ccs-options[hidden] {
	display: none;
}
.ccs-options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ccs-field {
	display: block;
	margin: 0;
	font-size: 11px;
	color: var(--ccs-muted);
}
.ccs-wrap .ccs-attr {
	display: block;
	width: 100%;
	height: 30px;
	min-height: 0;
	padding: 2px 6px;
	margin: 2px 0 0;
	font-size: 12px;
	border: 1px solid var(--ccs-border);
	border-radius: 6px;
	background-color: #fff;
}
.ccs-price {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
}
.ccs-price del {
	font-weight: 400;
	color: var(--ccs-muted);
	margin-left: 4px;
}
.ccs-price ins {
	text-decoration: none;
	color: #c0392b;
	background: none;
}
.ccs-wrap .ccs-add {
	display: block;
	width: 100%;
	min-height: 34px;
	padding: 6px 8px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: var(--ccs-accent);
	color: var(--ccs-accent-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s;
}
.ccs-wrap .ccs-add:hover {
	opacity: 0.85;
}
.ccs-wrap .ccs-add.ccs-loading,
.ccs-wrap .ccs-add:disabled {
	opacity: 0.5;
	cursor: default;
}
/* Side cart fixes: the theme's cart-page rules leak into the side cart, and the two footer buttons differ in height. */
.elementor-menu-cart__product .product-thumbnail,
.elementor-menu-cart__product .elementor-menu-cart__product-image {
	width: 100% !important;
}
.elementor-menu-cart__footer-buttons {
	align-items: stretch;
}
.elementor-menu-cart__footer-buttons .elementor-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: auto !important;
	align-self: stretch !important;
	box-sizing: border-box;
	text-align: center;
}

/* Editing an item inside the side cart */
.elementor-menu-cart__product-name:has(.ccs-edit) dl.variation {
	display: none !important;
}
.ccs-edit {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px;
	margin-top: 6px;
	direction: rtl;
	letter-spacing: 0;
	text-transform: none;
}
.ccs-edit.ccs-busy {
	opacity: 0.5;
	pointer-events: none;
}
.ccs-edit-field {
	display: block;
	flex: 1 1 84px;
	min-width: 0;
	margin: 0;
	font-size: 11px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.6);
}
.ccs-edit .ccs-item-attr {
	display: block;
	width: 100%;
	height: 30px;
	min-height: 0;
	margin: 2px 0 0;
	padding: 2px 6px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	background-color: #fff;
	color: #222;
	font-size: 12px;
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
}
.ccs-qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 30px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.ccs-edit .ccs-qty-btn {
	width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #222;
	font-size: 16px;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
}
.ccs-edit .ccs-qty-btn:disabled {
	opacity: 0.3;
	cursor: default;
}
.ccs-qty-val {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #222;
}

/* The theme gives every select a 51px line-height and a custom arrow, which hides the text in small selects. */
.ccs-edit .ccs-item-attr,
.ccs-wrap .ccs-attr {
	height: 30px !important;
	padding: 0 8px !important;
	line-height: 1.2 !important;
	font-size: 13px !important;
	color: #222 !important;
	text-indent: 0 !important;
	-webkit-appearance: menulist !important;
	appearance: menulist !important;
	background-image: none !important;
}
.ccs-edit-field {
	flex: 1 1 40%;
}
.ccs-edit-field span,
.ccs-field span {
	display: block;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
}

/* Chevrons are mirrored by the browser in RTL text: force LTR so the left arrow points left. */
.ccs-wrap .ccs-arrow {
	direction: ltr;
	unicode-bidi: bidi-override;
}

/* Side cart layout: use the full height of the panel, keep the subtotal and buttons pinned to the bottom. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main {
	display: flex !important;
	flex-direction: column;
}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main .elementor-menu-cart__products {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none !important;
	overflow-y: auto;
}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main .elementor-menu-cart__subtotal,
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main .elementor-menu-cart__footer-buttons {
	flex: 0 0 auto;
}

/* Side cart carousels: one large product and a peek of the next one. */
.ccs-ctx-mini .ccs-block {
	padding: 18px 0 8px;
}
.ccs-ctx-mini .ccs-title {
	font-size: 17px;
}
.ccs-ctx-mini .ccs-sub {
	font-size: 14px;
}
.ccs-ctx-mini .ccs-card {
	flex: 0 0 74%;
	width: 74%;
	padding: 10px;
	gap: 8px;
}
.ccs-ctx-mini .ccs-name {
	font-size: 16px;
	min-height: 0;
}
.ccs-ctx-mini .ccs-spec {
	font-size: 13px;
}
.ccs-ctx-mini .ccs-price {
	font-size: 16px;
}
.ccs-ctx-mini .ccs-add {
	min-height: 42px;
	font-size: 15px;
}
.ccs-ctx-mini .ccs-badge {
	font-size: 13px;
	padding: 3px 8px;
}
/* Short screens: keep one product and a peek, with a lower image so both carousels stay reachable. */
@media (max-height: 820px) {
	.ccs-ctx-mini .ccs-img {
		aspect-ratio: 4 / 3;
	}
}

/* Side cart items: larger image and name, with weight, grind and quantity in one full-width row below. */
.elementor-menu-cart__main .elementor-menu-cart__product {
	grid-template-columns: 40% minmax(0, 1fr) !important;
	column-gap: 14px;
	row-gap: 6px;
	padding-bottom: 18px !important;
	align-items: start;
}
.elementor-menu-cart__main .elementor-menu-cart__product-image {
	grid-column: 1;
	grid-row: 1 / span 2 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.elementor-menu-cart__main .elementor-menu-cart__product-name:has(.ccs-edit) {
	display: contents;
}
.elementor-menu-cart__main .elementor-menu-cart__product-name > a {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	padding-left: 26px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.elementor-menu-cart__main .elementor-menu-cart__product-price {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	font-size: 16px !important;
	font-weight: 600;
	color: #333 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-remove {
	top: 2px !important;
	bottom: auto !important;
}
.elementor-menu-cart__main .ccs-edit {
	grid-column: 1 / -1;
	grid-row: 3;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 10px;
}
.elementor-menu-cart__main .ccs-edit-field {
	flex: 1 1 0;
	font-size: 13px;
}
.elementor-menu-cart__main .ccs-edit .ccs-item-attr {
	height: 42px !important;
	margin-top: 3px;
	font-size: 15px !important;
}
.elementor-menu-cart__main .ccs-qty {
	height: 42px;
}
.elementor-menu-cart__main .ccs-edit .ccs-qty-btn {
	width: 34px;
	height: 40px;
	font-size: 19px;
}
.elementor-menu-cart__main .ccs-qty-val {
	min-width: 26px;
	font-size: 16px;
}

/* Side cart selects: a slim custom arrow leaves room for the full option text. */
.elementor-menu-cart__main .ccs-edit {
	gap: 6px;
}
.elementor-menu-cart__main .ccs-edit .ccs-item-attr {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 8px center !important;
	background-size: 10px 6px !important;
	padding: 0 8px 0 22px !important;
	font-size: 14px !important;
	text-overflow: ellipsis;
}
.elementor-menu-cart__main .ccs-edit .ccs-qty-btn {
	width: 28px;
}
.elementor-menu-cart__main .ccs-qty-val {
	min-width: 24px;
}

/* The header sits in a low stacking layer (z-index 3) and the footer in a higher one (9), so the footer
   covered the open side cart at the bottom of the page. Lift the header's layers while the cart is open. */
.elementor-element:has(.elementor-menu-cart--shown),
.elementor-location-header:has(.elementor-menu-cart--shown) {
	z-index: 99990 !important;
}

/* Side cart while a product is being added from the product page. */
.elementor-menu-cart__main.ccs-cart-loading .widget_shopping_cart_content {
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.15s;
}
.elementor-menu-cart__main.ccs-cart-loading::after {
	content: attr(data-ccs-adding);
	position: absolute;
	top: 84px;
	left: 0;
	right: 0;
	z-index: 5;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: #222;
	direction: rtl;
}
.single_add_to_cart_button.ccs-loading {
	opacity: 0.6;
	pointer-events: none;
}
