/* Kassadeal in zijwagen en winkelwagen (zz-umbau-winkelwagen-deal.php).
   Zelfde look als de kaart .lc-bump in de checkout (checkout/assets/checkout.css); lettertype erft van de site.
   Flatsome stijlt elk button-element, daarom staan de knoppen hier met specifieke selectors en alles expliciet. */

.umbw-deal {
	position: relative;
	box-sizing: border-box;
	border: 1px solid #ffbc8c;
	box-shadow: 0 0 0 3px #fff0e6;
	background: var(--umbw-kaart, #eef4ff);
	border-radius: 12px;
	padding: 16px;
	margin: 12px 0 16px;
	font-size: 14px;
	line-height: 1.4;
	color: #000;
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}

.umbw-deal.is-added {
	border-color: #1a56db;
	background: #f0f5ff;
}

.umbw-deal.is-busy {
	opacity: .6;
	pointer-events: none;
}

.umbw-deal [hidden] {
	display: none !important;
}

.umbw-deal svg {
	display: block;
	flex: 0 0 auto;
}

.umbw-deal__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	background: var(--umbw-badge, #ff6a00);
	border-radius: 999px;
	padding: 5px 11px;
	margin-bottom: 12px;
	line-height: 1.2;
}

.umbw-deal__body {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.umbw-deal__foto {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	border: 1px solid #dedede;
	background: #fff;
	overflow: hidden;
}

.umbw-deal .umbw-deal__foto img {
	position: static;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	display: block;
	margin: 0;
}

.umbw-deal__tekst {
	flex: 1;
	min-width: 0;
}

.umbw-deal__titel {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #000;
}

.umbw-deal__desc {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #737373;
}

.umbw-deal__prijs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.umbw-deal__oud {
	color: #737373;
	text-decoration: line-through;
	font-size: 13px;
}

.umbw-deal__nieuw {
	font-size: 17px;
	font-weight: 700;
	color: #000;
}

.umbw-deal__bespaar {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	color: #008060;
	background: #e0f0ec;
	border-radius: 999px;
	padding: 3px 9px;
	line-height: 1.3;
}

/* Woo zet .woocommerce-Price-amount (met bdi) binnen de prijsvelden: kleur, gewicht, grootte en doorhalen erven. */
.umbw-deal .umbw-deal__prijs .amount,
.umbw-deal .umbw-deal__prijs bdi {
	color: inherit;
	font-weight: inherit;
	font-size: inherit;
	white-space: nowrap;
}

.umbw-deal .umbw-deal__oud .amount {
	text-decoration: line-through;
}

.umbw-deal__levertijd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #000;
	background: #fff;
	border-radius: 8px;
	padding: 5px 9px;
	line-height: 1.2;
}

.umbw-deal__acties {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin-top: 14px;
}

/* Knop "In winkelwagen" / "Toegevoegd" */
.umbw-deal button.umbw-deal__knop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: none;
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	background: var(--umbw-knop, #1a56db);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-decoration: none;
	box-shadow: none;
	opacity: 1;
	cursor: pointer;
	transition: filter .15s ease, transform .1s ease;
}

.umbw-deal button.umbw-deal__knop:hover,
.umbw-deal button.umbw-deal__knop:focus {
	background: var(--umbw-knop, #1a56db);
	color: #fff;
	box-shadow: none;
}

.umbw-deal button.umbw-deal__knop:hover {
	filter: brightness(.94);
}

.umbw-deal button.umbw-deal__knop:active {
	transform: scale(.99);
}

.umbw-deal.is-added button.umbw-deal__knop,
.umbw-deal.is-added button.umbw-deal__knop:hover,
.umbw-deal.is-added button.umbw-deal__knop:focus {
	background: #008060;
	cursor: default;
	filter: none;
}

.umbw-deal.is-added button.umbw-deal__knop:active {
	transform: none;
}

/* Link "Verwijderen" */
.umbw-deal button.umbw-deal__weg {
	align-self: center;
	display: inline-block;
	width: auto;
	max-width: none;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 4px 2px;
	border: 0;
	border-radius: 0;
	background: none;
	color: #595959;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-decoration: underline;
	text-underline-offset: 2px;
	box-shadow: none;
	opacity: 1;
	cursor: pointer;
}

.umbw-deal button.umbw-deal__weg:hover,
.umbw-deal button.umbw-deal__weg:focus {
	background: none;
	color: #000;
	box-shadow: none;
}

.umbw-deal__fout {
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: #b42318;
}

/* Winkelwagenpagina: groter, zoals de checkout */
.umbw-deal--winkelwagen {
	padding: 20px;
	margin: 24px 0 8px;
}

.umbw-deal--winkelwagen .umbw-deal__badge {
	font-size: 12px;
	margin-bottom: 14px;
}

.umbw-deal--winkelwagen .umbw-deal__body {
	gap: 16px;
}

.umbw-deal--winkelwagen .umbw-deal__foto {
	flex-basis: 72px;
	width: 72px;
	height: 72px;
}

.umbw-deal--winkelwagen .umbw-deal__titel {
	font-size: 16px;
}

.umbw-deal--winkelwagen .umbw-deal__desc {
	font-size: 14px;
}

.umbw-deal--winkelwagen .umbw-deal__prijs {
	gap: 10px;
}

.umbw-deal--winkelwagen .umbw-deal__oud {
	font-size: 14px;
}

.umbw-deal--winkelwagen .umbw-deal__nieuw {
	font-size: 18px;
}

.umbw-deal--winkelwagen .umbw-deal__bespaar {
	font-size: 12px;
}

.umbw-deal--winkelwagen .umbw-deal__levertijd {
	font-size: 13px;
}

.umbw-deal--winkelwagen .umbw-deal__acties {
	margin-top: 16px;
}

/* Nooit twee kaarten tegelijk: op winkelwagen en checkout geen kaart in de zijwagen */
body.woocommerce-cart .umbw-deal--zijwagen,
body.woocommerce-checkout .umbw-deal--zijwagen {
	display: none;
}

/* Label "Kassakoopje: Ja" onder de dealregel verbergen */
.woocommerce-mini-cart .variation-Kassakoopje,
.woocommerce-cart-form .variation-Kassakoopje {
	display: none !important;
}

/* Mobiel: in zijwagen en winkelwagen geen beschrijving (in de checkout blijft hij staan) */
@media (max-width: 849px) {
	.umbw-deal .umbw-deal__desc {
		display: none;
	}
}
