/* =========================================================
   MB Cart – flyout panel (slides in from the right)
   ========================================================= */
.mb-cart-flyout {
	--mb-flyout-width: 380px;
	position: fixed;
	inset: 0 0 0 auto;
	width: min(var(--mb-flyout-width), 100vw);
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--main, #1e1e26);
	box-shadow: -8px 0 32px rgb(0 0 0 / .15);
}
.mb-cart-flyout::backdrop {
	background: rgb(0 0 0 / .4);
}
.mb-cart-flyout[open] {
	animation: mb-cart-flyout-in .3s ease-out both;
}
.mb-cart-flyout[open]::backdrop {
	animation: mb-cart-backdrop-in .3s ease-out both;
}
@keyframes mb-cart-flyout-in {
	from { translate: 100% 0; }
	to   { translate: 0 0; }
}
@keyframes mb-cart-backdrop-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.mb-cart-flyout[open],
	.mb-cart-flyout[open]::backdrop {
		animation: none;
	}
}

.mb-cart-flyout__panel {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--small, 1rem);
	box-sizing: border-box;
	height: 100%;
	padding: var(--wp--preset--spacing--medium, 1.5rem);
	overflow-y: auto;
}

.mb-cart-flyout__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mb-cart-flyout__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small, .85rem);
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.mb-cart-flyout__close {
	display: inline-flex;
	padding: .25rem;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.mb-cart-flyout__close:hover {
	color: var(--wp--preset--color--primary, currentColor);
}

.mb-cart-flyout__button {
	display: block;
	padding: .75em 1em;
	border-radius: var(--wp--preset--border-radius--xs, 4px);
	background: var(--wp--preset--color--main, #1e1e26);
	color: var(--wp--preset--color--base, #fff) !important;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .2s ease;
}
.mb-cart-flyout__button:hover {
	background: var(--wp--preset--color--primary, #5344f4);
}

.mb-cart-flyout__status {
	margin: 0;
	color: var(--wp--preset--color--secondary, #545473);
	font-size: .85em;
	text-align: center;
}

/* The selections table (generated by generate_cart_flyout_html) */
.mb-cart-flyout .gf-cart-table {
	width: 100%;
	margin: 0 !important;
	border-collapse: separate;
	border-spacing: 0 .5rem;
	background: none;
}
.mb-cart-flyout .gf-cart-table td {
	padding: .5rem;
	border: 0;
	background: var(--wp--preset--color--tertiary, #f8f7fc);
	vertical-align: top;
}
.mb-cart-flyout .gf-cart-table td.col-image {
	width: 80px;
	padding-right: 0;
}
.mb-cart-flyout .gf-cart-table td.col-image img {
	display: block;
	width: 80px;
	height: 60px;
	border-radius: var(--wp--preset--border-radius--xs, 4px);
	object-fit: cover;
	object-position: center 10%;
}
.mb-cart-flyout .gf-cart-table .col-details p {
	margin: 0;
}
.mb-cart-flyout .gf-cart-table .col-details .name {
	padding-bottom: 4px;
	font-size: .85em;
	font-weight: 600;
	line-height: 1.3;
}
.mb-cart-flyout .gf-cart-table .col-details .item-price {
	font-size: .8em;
}
.mb-cart-flyout .gf-cart-table tfoot td {
	background: none;
	text-align: center;
}
.mb-cart-flyout .gf-cart-table tfoot .footer-subtot {
	padding-bottom: 0;
	font-size: .8em;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.mb-cart-flyout .gf-cart-table tfoot .footer-euro {
	padding-top: 0;
	font-weight: 300;
}
