/*
 * Dutchfietsen Combideals: de etalage in de COMBIDEALS-sectie.
 *
 * De vormgeving volgt de huisstijl van dutchfietsen.nl, opgemeten aan de
 * echte winkel en niet geraden:
 *
 *   Koppen    Saira Condensed, cursief, hoofdletters, 600, #0B1424
 *   Knoppen   #FD5000, wit, Inter 700, radius 3px (strak, niet rond)
 *   Prijzen   Saira Condensed 600, #0B1424
 *   Badges    #FD5000, wit, 11px, 700, hoofdletters, pil-vorm
 *
 * Het thema schildert knoppen met !important roze. Alleen daar waar dat
 * gevecht speelt gebruiken we zelf !important; nergens anders.
 *
 * Mobiel eerst, alles gescopet onder .df-combideals.
 */

.df-combideals {
	--dfc-inkt: #0b1424;
	--dfc-oranje: #fd5000;
	--dfc-oranje-diep: #d94500;
	--dfc-lijn: #e3e6ea;
	--dfc-grijs: #6b7280;
	--dfc-vlak: #ffffff;
	--dfc-tint: #fff5f0;
	--dfc-kop: "Saira Condensed", "Arial Narrow", sans-serif;
	--dfc-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	position: relative;
	margin: 0;
	padding: 20px 16px 16px;
	background: var(--dfc-vlak);
	border: 1px solid var(--dfc-lijn);
	border-radius: 3px;
	font-family: var(--dfc-ui);
	color: var(--dfc-inkt);
	text-align: left;
	overflow: hidden;
}

/* Oranje accentbalk bovenaan: het signaal "hier valt iets te halen". */
.df-combideals::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--dfc-oranje);
}

/* ---- Kop ---------------------------------------------------------------- */

.df-combideals__kop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.df-combideals__titel {
	margin: 0;
	padding: 0;
	font-family: var(--dfc-kop);
	font-style: italic;
	font-weight: 600;
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--dfc-inkt);
}

.df-combideals__lokker {
	display: inline-block;
	background: var(--dfc-oranje);
	color: #ffffff;
	font-family: var(--dfc-ui);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 100px;
	padding: 3px 12px;
	white-space: nowrap;
}

/* ---- Staffel als losse blokjes ------------------------------------------ */

.df-combideals__staffel {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 14px;
	padding: 0;
	list-style: none;
}

.df-combideals__trede {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	border: 1px solid var(--dfc-lijn);
	border-radius: 3px;
	padding: 4px 9px;
	font-size: 12px;
	color: var(--dfc-grijs);
	background: #fafbfc;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.df-combideals__trede b {
	font-family: var(--dfc-kop);
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	color: var(--dfc-inkt);
}

/* De trede die de klant nu haalt, springt eruit. */
.df-combideals__trede--actief {
	border-color: var(--dfc-oranje);
	background: var(--dfc-tint);
	color: var(--dfc-inkt);
}

.df-combideals__trede--actief b {
	color: var(--dfc-oranje);
}

/* ---- Accessoirekaarten -------------------------------------------------- */

.df-combideals__rijen {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.df-combideals__rij {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 12px 10px 10px;
	background: var(--dfc-vlak);
	border: 1px solid var(--dfc-lijn);
	border-radius: 3px;
	cursor: pointer;
	min-height: 44px;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.df-combideals__rij:hover {
	border-color: #b9bfc7;
}

.df-combideals__rij--aan {
	border-color: var(--dfc-oranje);
	background: var(--dfc-tint);
	box-shadow: inset 3px 0 0 var(--dfc-oranje);
}

/* Eigen vinkje: strak vierkant, oranje als het aanstaat. */
.df-combideals__vink {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 2px solid #c2c8d0;
	border-radius: 2px;
	background: #ffffff;
	cursor: pointer;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.df-combideals__vink:hover {
	border-color: var(--dfc-oranje);
}

.df-combideals__vink:checked {
	background: var(--dfc-oranje);
	border-color: var(--dfc-oranje);
}

.df-combideals__vink:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.df-combideals__vink:focus-visible {
	outline: 2px solid var(--dfc-inkt);
	outline-offset: 2px;
}

.df-combideals__thumb {
	width: 54px;
	height: 54px;
	flex: none;
	border-radius: 2px;
	overflow: hidden;
	background: #f4f6f8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.df-combideals__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	mix-blend-mode: multiply;
}

.df-combideals__info {
	flex: 1;
	min-width: 0;
}

.df-combideals__naam {
	display: block;
	font-family: var(--dfc-ui);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	color: var(--dfc-inkt);
}

.df-combideals__reden {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--dfc-grijs);
}

.df-combideals__prijs {
	font-family: var(--dfc-kop);
	font-size: 20px;
	font-weight: 600;
	color: var(--dfc-inkt);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---- Afrekenblok -------------------------------------------------------- */

.df-combideals__voet {
	margin-top: 14px;
}

.df-combideals__totaal[hidden] {
	display: none;
}

.df-combideals__totaal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	background: var(--dfc-inkt);
	border-radius: 3px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.df-combideals__samen {
	font-size: 12px;
	color: #aab3c0;
}

.df-combideals__som {
	font-family: var(--dfc-kop);
	font-size: 16px;
	font-weight: 600;
	color: #aab3c0;
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
}

.df-combideals__som[hidden] {
	display: none;
}

.df-combideals__nieuw {
	display: flex;
	align-items: center;
	gap: 10px;
}

.df-combideals__bedrag {
	font-family: var(--dfc-kop);
	font-style: italic;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.df-combideals__besparing {
	display: inline-block;
	background: var(--dfc-oranje);
	color: #ffffff;
	border-radius: 100px;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.df-combideals__besparing[hidden] {
	display: none;
}

/*
 * De knop. Het thema kleurt knoppen met !important roze, dus hier moet het
 * ook met !important terug; alleen op de eigenschappen die het thema pakt.
 */
.df-combideals .df-combideals__knop {
	display: block;
	width: 100%;
	background-color: var(--dfc-oranje) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 3px !important;
	font-family: var(--dfc-ui);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	padding: 13px 18px;
	cursor: pointer;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.df-combideals .df-combideals__knop:hover,
.df-combideals .df-combideals__knop:focus {
	background-color: var(--dfc-oranje-diep) !important;
	color: #ffffff !important;
}

.df-combideals .df-combideals__knop:active {
	transform: translateY(1px);
}

.df-combideals__melding {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--dfc-oranje);
}

.df-combideals__uitleg {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--dfc-grijs);
}

/*
 * Het hidden-attribuut moet altijd winnen van eigen display-regels, en de
 * wacht-klasse verbergt de vinkjes tot de JS ze overneemt (script kapot of
 * geen koopformulier = puur informatieve etalage, nooit dode vinkjes).
 */
.df-combideals__som[hidden],
.df-combideals__besparing[hidden] {
	display: none;
}

.df-combideals--wacht .df-combideals__vink {
	display: none;
}

.df-combideals--wacht .df-combideals__rij {
	cursor: default;
}

/* ---- Groter scherm ------------------------------------------------------ */

@media (min-width: 600px) {
	.df-combideals {
		padding: 24px 20px 20px;
	}

	.df-combideals__titel {
		font-size: 30px;
	}

	.df-combideals__rijen {
		grid-template-columns: 1fr 1fr;
	}

	.df-combideals__voet {
		display: flex;
		align-items: center;
		gap: 14px;
		margin-top: 16px;
	}

	.df-combideals__totaal {
		flex: 1;
		margin-bottom: 0;
	}

	.df-combideals .df-combideals__knop {
		width: auto;
		min-width: 300px;
		flex: none;
	}
}

/* ---- Donkere modus van de winkel --------------------------------------- */

body.dark .df-combideals {
	--dfc-vlak: #111a2b;
	--dfc-lijn: #26314a;
	--dfc-inkt: #f2f5f9;
	--dfc-grijs: #9aa6b8;
	--dfc-tint: #2a1a12;
}

body.dark .df-combideals__trede {
	background: #16203350;
}

body.dark .df-combideals__thumb {
	background: #ffffff;
}

body.dark .df-combideals__totaal {
	background: #050a14;
}
