/* Globeview Winkelmand. Colours via custom properties so a site can override them. */
.gw-winkelmand {
	--gw-wm-tekst: #3b2314;
	--gw-wm-accent: #b84f0d;
	--gw-wm-vlak: #fff;
	position: relative;
	display: inline-block;
	font-size: 11px;
	line-height: 1.6;
}

.gw-winkelmand__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--gw-wm-tekst);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.gw-winkelmand__link:hover,
.gw-winkelmand__link:focus {
	color: var(--gw-wm-accent);
}

.gw-winkelmand__teller {
	min-width: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--gw-wm-accent);
	color: #fff;
	font-weight: 700;
	text-align: center;
	line-height: 16px;
}

.gw-winkelmand__totaal {
	text-transform: none;
}

.gw-winkelmand__paneel {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 9999;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 12px;
	background: var(--gw-wm-vlak);
	border: 1px solid rgba(59, 35, 20, 0.15);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	font-size: 13px;
	text-transform: none;
	text-align: left;
}

@media (hover: hover) {
	.gw-winkelmand:hover .gw-winkelmand__paneel,
	.gw-winkelmand:focus-within .gw-winkelmand__paneel {
		display: block;
	}
}

.gw-winkelmand.is-open .gw-winkelmand__paneel {
	display: block;
}

/* Small screens: full width with a 16px gutter, wherever the cart link sits. */
@media (max-width: 600px) {
	.gw-winkelmand__paneel {
		position: fixed;
		top: auto;
		left: 16px;
		right: 16px;
		width: auto;
		max-width: none;
	}
}

.gw-winkelmand__paneel .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 320px;
	overflow-y: auto;
}

.gw-winkelmand__paneel .woocommerce-mini-cart-item {
	position: relative;
	padding: 6px 20px 6px 0;
	border-bottom: 1px solid rgba(59, 35, 20, 0.1);
	overflow: hidden;
}

.gw-winkelmand__paneel .woocommerce-mini-cart-item img {
	float: left;
	width: 40px;
	height: auto;
	margin-right: 8px;
}

.gw-winkelmand__paneel .remove_from_cart_button {
	position: absolute;
	right: 0;
	top: 6px;
	color: var(--gw-wm-accent);
	text-decoration: none;
}

.gw-winkelmand__paneel .woocommerce-mini-cart__total {
	margin: 10px 0;
}

.gw-winkelmand__paneel .woocommerce-mini-cart__buttons {
	display: flex;
	gap: 6px;
	margin: 0;
}

.gw-winkelmand__paneel .woocommerce-mini-cart__buttons .button {
	flex: 1;
	padding: 6px 8px;
	background: var(--gw-wm-tekst);
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.gw-winkelmand__paneel .woocommerce-mini-cart__buttons .checkout {
	background: var(--gw-wm-accent);
}

.gw-winkelmand__paneel .woocommerce-mini-cart__empty-message {
	margin: 0;
}

/* Popup after AJAX add to cart */
.gw-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.gw-popup__achtergrond {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.gw-popup__venster {
	position: relative;
	width: 100%;
	max-width: 380px;
	padding: 24px;
	background: #fff;
	color: #3b2314;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-family: Arial, helvetica, Verdana, sans-serif;
}

.gw-popup__sluit {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: #3b2314;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.gw-popup__titel {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.gw-popup__product {
	margin: 0 0 16px;
	font-size: 14px;
}

.gw-popup__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gw-popup__verder,
.gw-popup__naar {
	flex: 1 1 140px;
	padding: 10px 12px;
	border: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.gw-popup__verder {
	background: #eee;
	color: #3b2314;
}

.gw-popup__naar {
	background: #b84f0d;
	color: #fff;
}
