.borbila-floating-cart {
	--floating-cart-primary: var(--rds-floating-cart-bg, var(--e-global-color-primary, #6044f0));
	box-sizing: border-box;
	align-items: stretch;
	background: var(--floating-cart-primary);
	border: 1px solid var(--rds-floating-cart-border, #e5e7eb);
	border-radius: var(--rds-floating-cart-radius, 5px) 0 0 var(--rds-floating-cart-radius, 5px);
	border-right: 0;
	box-shadow: 0 4px 18px rgb(0 0 0 / 10%);
	color: var(--rds-floating-cart-text, #fff);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.2;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: fixed;
	right: 0;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	top: 50%;
	transform: translate(0, -50%);
	transition: box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
	width: max-content;
	min-width: 88px;
	max-width: min(220px, calc(100vw - 32px));
	z-index: 9998;
}

.borbila-floating-cart:hover,
.borbila-floating-cart:focus,
.borbila-floating-cart:active {
	background: var(--floating-cart-primary);
	color: var(--rds-floating-cart-text, #fff);
}

.borbila-floating-cart:hover {
	box-shadow: 0 6px 22px rgb(0 0 0 / 15%);
	transform: translate(0, -50%);
}

.borbila-floating-cart:focus-visible {
	outline: 3px solid var(--floating-cart-primary);
	outline-offset: 4px;
}

.borbila-floating-cart__main {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
	min-height: 64px;
	padding: 10px 12px;
}

.borbila-floating-cart__icon,
.borbila-floating-cart__icon svg {
	display: block;
	height: 23px;
	width: 23px;
}

.borbila-floating-cart__icon svg {
	fill: currentColor;
}

.borbila-floating-cart__count {
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.borbila-floating-cart__total {
	align-items: center;
	background: var(--rds-floating-cart-price-bg, #fff);
	border-top: 1px solid var(--rds-floating-cart-border, #e5e7eb);
	color: var(--rds-floating-cart-price-text, var(--floating-cart-primary));
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	font-size: var(--rds-floating-cart-price-size, 14px);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	justify-content: center;
	line-height: 1.4;
	min-height: 34px;
	min-width: 0;
	padding: 7px 10px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.borbila-floating-cart__total .amount,
.borbila-floating-cart__total bdi {
	color: inherit;
	font: inherit;
	max-width: 100%;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}
.borbila-floating-cart__total .tax_label { display: block; font-size: .72em; width: 100%; }
.borbila-floating-cart__total .woocommerce-Price-currencySymbol { white-space: nowrap; }

.borbila-floating-cart[aria-expanded="true"] {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

/* Keep the modal cart clear of floating contact/navigation controls. */
html.borbila-cart-drawer-open,
body.borbila-cart-drawer-open {
	overflow: hidden;
	overscroll-behavior: none;
}

body.borbila-cart-drawer-open .borbila-floating-whatsapp,
body.borbila-cart-drawer-open .elementor-location-footer .elementor-element-41e5ee00 {
	visibility: hidden;
	pointer-events: none;
}

/* Give the close control a reliable touch target without enlarging the X. */
.elementor-location-header .elementor-menu-cart__close-button[role="button"] {
	border-radius: 8px;
	flex: 0 0 44px;
	height: 44px;
	margin: -10px -10px 10px 0;
	width: 44px;
}

.elementor-location-header .elementor-menu-cart__close-button[role="button"]::before,
.elementor-location-header .elementor-menu-cart__close-button[role="button"]::after {
	height: 2px;
	left: 11px;
	width: 22px;
}

.elementor-location-header .elementor-menu-cart__close-button[role="button"]:focus:not(:focus-visible) {
	outline: none;
}

.elementor-location-header .elementor-menu-cart__close-button[role="button"]:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #6044f0);
	outline-offset: 2px;
}

.elementor-location-header .elementor-menu-cart__main > .widget_shopping_cart_content {
	flex: 1;
	height: auto;
	min-height: 0;
}

.elementor-location-header .elementor-menu-cart__products {
	overscroll-behavior: contain;
}

@media (max-width: 1024px) {
	.borbila-floating-cart { min-width: 80px; }
}

@media (max-width: 767px) {
	.borbila-floating-cart {
		top: calc(50% + 80px);
		min-width: 58px;
		max-width: min(140px, calc(100vw - 24px));
	}
	.borbila-floating-cart__main {
		min-height: 40px;
		padding: 5px 6px;
		gap: 2px;
	}
	.borbila-floating-cart__icon,
	.borbila-floating-cart__icon svg {
		height: 15px;
		width: 15px;
	}
	.borbila-floating-cart__count {
		font-size: 9px;
		line-height: 1.1;
		padding-top: 2px;
	}
	.borbila-floating-cart__total {
		min-height: 22px;
		padding: 4px 6px;
		font-size: max(9.5px, calc(var(--rds-floating-cart-price-size, 14px) - 4px));
		line-height: 1.2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.borbila-floating-cart { transition: none; }
	.borbila-floating-cart:hover { transform: translate(0, -50%); }
}
