/* Container inside the menu item */
.bc-mini-cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 100%;
	border-radius: 50%;
}

/* Trigger */
.bc-mini-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 100%;
	width: 42px;
	position: relative;
}

.bc-mini-icon {
	width: 30px;
	height: 30px;
	display: block;
	background: currentColor;
	margin: auto;
	/* mask: url('data:image/svg+xml;utf8,<svg class="cart-icon--bc" viewBox="0 0 122.9 107.5" xmlns="http://www.w3.org/2000/svg"><g><path d="M3.9,7.9C1.8,7.9,0,6.1,0,3.9C0,1.8,1.8,0,3.9,0h10.2c0.1,0,0.3,0,0.4,0c3.6,0.1,6.8,0.8,9.5,2.5c3,1.9,5.2,4.8,6.4,9.1 c0,0.1,0,0.2,0.1,0.3l1,4H119c2.2,0,3.9,1.8,3.9,3.9c0,0.4-0.1,0.8-0.2,1.2l-10.2,41.1c-0.4,1.8-2,3-3.8,3v0H44.7 c1.4,5.2,2.8,8,4.7,9.3c2.3,1.5,6.3,1.6,13,1.5h0.1v0h45.2c2.2,0,3.9,1.8,3.9,3.9c0,2.2-1.8,3.9-3.9,3.9H62.5v0 c-8.3,0.1-13.4-0.1-17.5-2.8c-4.2-2.8-6.4-7.6-8.6-16.3l0,0L23,13.9c0-0.1,0-0.1-0.1-0.2c-0.6-2.2-1.6-3.7-3-4.5 c-1.4-0.9-3.3-1.3-5.5-1.3c-0.1,0-0.2,0-0.3,0H3.9L3.9,7.9z M96,88.3c5.3,0,9.6,4.3,9.6,9.6c0,5.3-4.3,9.6-9.6,9.6 c-5.3,0-9.6-4.3-9.6-9.6C86.4,92.6,90.7,88.3,96,88.3L96,88.3z M53.9,88.3c5.3,0,9.6,4.3,9.6,9.6c0,5.3-4.3,9.6-9.6,9.6 c-5.3,0-9.6-4.3-9.6-9.6C44.3,92.6,48.6,88.3,53.9,88.3L53.9,88.3z M33.7,23.7l8.9,33.5h63.1l8.3-33.5H33.7L33.7,23.7z"/></g></svg>'); */


	/* mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="none" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="none" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/></svg>') no-repeat center / contain; */

	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="none"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/><circle cx="17" cy="26" r="2" fill="black"/><circle cx="31" cy="26" r="2" fill="black"/></g></svg>') no-repeat center / contain;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="none"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/><circle cx="17" cy="26" r="2" fill="black"/><circle cx="31" cy="26" r="2" fill="black"/></g></svg>') no-repeat center / contain;
}

.has-items .bc-mini-icon {
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="none"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/><circle cx="17" cy="26" r="2" fill="black"/><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M18 33s2 3 6 3s6-3 6-3"/><circle cx="31" cy="26" r="2" fill="black"/></g></svg>') no-repeat center / contain;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="none"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 17h38l-4.2 26H9.2L5 17Zm30 0c0-6.627-4.925-12-11-12s-11 5.373-11 12"/><circle cx="17" cy="26" r="2" fill="black"/><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M18 33s2 3 6 3s6-3 6-3"/><circle cx="31" cy="26" r="2" fill="black"/></g></svg>') no-repeat center / contain;
}

/* Badge */
.bc-mini-badge {
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #e11d48;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.25rem;
	text-align: center;
	position: absolute;
	top: 0.1rem;
	right: -0.25rem;
}

.bc-mini-badge[data-count="0"] {
	opacity: 0;
	background: #eee;
	color: #eee;
}

/* Panel */
.bc-mini-panel[hidden] {
	display: none;
}

.bc-mini-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: 360px;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 1000;
}

/* Header */
.bc-mini-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid #ddd;
}

.bc-mini-title {
	font-weight: 600;
}

.bc-mini-close {
	background: transparent;
	border: 0;
	font-size: 20px;
	cursor: pointer;
}

/* Items scroll area */
.bc-mini-scroll {
	overflow: auto;
	max-height: 50vh;
	max-height: clamp(200px, 40vh, 480px);
}

.bc-mini-empty {
	padding: 20px 12px;
	font-size: 0.95rem;
	color: #555;
}

/* Items */
.bc-mini-items {
	border-collapse: collapse;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.bc-mini-item {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: 10px;
	align-items: start;
	font-size: 16px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--separator-color);
	position: relative;
	transition: opacity 180ms ease, transform 180ms ease;
}

@media (min-width: 680px) {
	.bc-mini-item {
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

#bc-atc-items-html .bc-mini-item {
	padding-left: 0;
	padding-right: 0;
}

.bc-mini-item:last-child {
	border-bottom: none;
}

.bc-mini-thumb img {
	width: 70px;
	height: auto;
	object-fit: cover;
	border-radius: 4px;
}

.bc-mini-nameblock {
	display: block;
}

.bc-mini-name {
	color: inherit;
	font-weight: bold;
	display: block;
	text-decoration: none;
}

.bc-mini-meta {
	font-size: 0.85rem;
	color: #555;
}

.bc-mini-info,
.bc-mini-qty-price {
	text-wrap: wrap;
	text-wrap: balance;
}

.bc-mini-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bc-mini-qty-wrapper {
	display: block;
	text-align: right;
	width: 100%;
}

.bc-mini-qty-price {
	font-weight: 600;
	display: flex;
	flex-wrap: wrap;
	justify-content: end;
	max-width: 100px;
}

.bc-mini-qtyline {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 40px;
}

.bc-mini-qty {
	display: block;
	font-size: 15px;
	font-weight: normal;
	padding-top: 5px;
}

.bc-mini-remove {
	background: transparent;
	border-radius: 50%;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	padding: 0;
}

.bc-mini-remove-icon {
	width: 22px;
	height: 22px;
}

.bc-mini-remove:hover {
	background-color: #e7e7e7;
}

.bc-mini-item.is-removing td {
	filter: blur(2.2px);
	opacity: 0.6;
	pointer-events: none;
	transition: filter .25s ease, opacity .25s ease;
	will-change: filter, opacity;
	/* transform: scale(0.98); */
}

.bc-mini-item {
	position: relative;
}

.bc-mini-item td {
	min-height: 68px;
	transition: opacity .25s ease;
}

.bc-mini-item.is-updating td {
	opacity: 0.45;
	pointer-events: none;
}

.bc-mini-item.is-updating .bc-mini-qtyctrl::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 30px;
	height: 30px;
	border: 1px solid currentColor;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	animation: bc-atc-spin 0.7s linear infinite;
}

.bc-mini-updating-indicator {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 24px;
	height: 24px;

	border-radius: 50%;
	background: currentColor;
	opacity: 0;

	transform: scale(0.6);
	transition: opacity .2s ease, transform .2s ease;

	display: none;
}

.bc-mini-item.is-updating .bc-mini-updating-indicator {
	opacity: 1;
	transform: scale(1);
	animation: bc-mini-pulse 0.8s ease-in-out infinite;
}

@keyframes bc-mini-pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.5);
	}

	100% {
		transform: scale(1);
	}
}

.bc-atc__content .bc-mini-qty {
	padding-top: 0;
}

.bc-atc__content .bc-mini-nameblock {
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.bc-mini-item {
		transition: none;
	}
}

/* Footer */
.bc-mini-footer {
	padding: 10px 12px 12px;
	border-top: 1px solid #ddd;
}

.bc-mini-subtotal {
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: right;
}

.bc-mini-subtotal-label {
	color: #333;
	margin-right: 6px;
}

.bc-mini-cta {
	display: flex;
	gap: 8px;
}

.bc-mini-cta a {
	flex: 1 1 auto;
	text-align: center;
	text-decoration: none;
	padding-top: 14px;
	padding-bottom: 14px;
	padding-right: 12px;
	padding-left: 12px;
	border-radius: 50px;
}

.bc-mini-view {
	background: #111;
	color: #fff;
}

.bc-mini-checkout {
	background: #111;
	color: #fff;
}
