/*
 * Eigenlijk Mooi — algemene verfijning bovenop theme.json.
 * Palet: lichtroze #F9EAEA · zacht roze #EFC9C6 · salie #45797B (knoppen)
 * · bes #8E3B54 (tekst) · bes-licht #A94F6E (links) · fout #9C2B2B.
 */

/* Tekstselectie in zacht roze (brandboek). */
::selection {
	background: var(--wp--preset--color--zacht-roze);
	color: var(--wp--preset--color--contrast);
}

/* Zachte roze sectie — de class uit het brandboek blijft werken. */
.em-sectie {
	background: var(--wp--preset--color--lichtroze);
}

/* Witte kaart met zachte schaduw. */
.em-kaart {
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius-groot, 16px);
	box-shadow: var(--wp--preset--shadow--kaart);
}

/* Soepele overgangen op knoppen en kaarten. */
.wp-block-button__button,
.em-kaart {
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Zichtbare focus in salie — overal hetzelfde. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--salie);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Op donkere (bes) vlakken is salie onzichtbaar — daar lichtroze focus. */
.has-contrast-background-color :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--lichtroze);
}

.wp-block-button__button:focus-visible {
	border-radius: var(--wp--custom--radius, 8px);
}

/* Formuliervelden: rustige randen, salie focus (brandboek). */
:where(.wp-site-blocks, .editor-styles-wrapper) :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select) {
	border: 1px solid var(--wp--preset--color--zacht-roze);
	border-radius: var(--wp--custom--radius, 8px);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	padding: 0.65rem 0.9rem;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :where(input, textarea, select):focus {
	border-color: var(--wp--preset--color--salie);
	box-shadow: 0 0 0 3px rgba(69, 121, 123, 0.18);
	outline: none;
}

::placeholder {
	color: var(--wp--preset--color--bes-licht);
	opacity: 0.6;
}

/* Zoekblok: knop in salie. */
.wp-block-search__button {
	background: var(--wp--preset--color--salie);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: var(--wp--custom--radius, 8px);
	font-weight: 700;
}

.wp-block-search__button:hover {
	background: var(--wp--preset--color--salie-donker);
}

/* Navigatie: rustig, zonder onderstreping; hover in bes-licht. */
.wp-block-navigation a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

/* Paginalijst (footer): zonder opsommingstekens. */
.wp-block-page-list,
.wp-block-page-list li {
	list-style: none;
	padding-left: 0;
}

.wp-block-page-list li {
	margin-bottom: 0.35rem;
}

/* Details/summary en kleine typografische verfijning. */
.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

/* Koppen nooit vet of cursief — Marcellus heeft één gewicht (brandboek). */
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong,
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
	font-weight: 400;
	font-style: normal;
}

/* ------------------------------------------------------------------
 * De herroepingsknop: het formulier om de koop te ontbinden.
 * ------------------------------------------------------------------ */
.em-ontbinden {
	max-width: 34rem;
}

.em-ontbinden__veld {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: var(--wp--preset--spacing--30, 1.25rem);
}

.em-ontbinden__veld label {
	font-weight: 600;
}

.em-ontbinden__veld input,
.em-ontbinden__veld textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font: inherit;
	color: inherit;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--zacht-roze);
	border-radius: 6px;
}

.em-ontbinden__veld textarea {
	resize: vertical;
}

.em-ontbinden__hulp {
	font-size: 0.85em;
	opacity: 0.75;
}

/* De strik voor automatische invullers: onzichtbaar, maar wel in de code. */
.em-ontbinden__strik {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.em-ontbinden__fout,
.em-ontbinden__gelukt {
	padding: 0.75rem 1rem;
	border-left: 4px solid currentColor;
	border-radius: 4px;
}

.em-ontbinden__fout {
	color: var(--wp--preset--color--fout, #9c2b2b);
	background: rgba(156, 43, 43, 0.08);
}

.em-ontbinden__gelukt {
	font-weight: 600;
	background: rgba(0, 0, 0, 0.04);
}

.em-ontbinden__overzicht {
	display: grid;
	grid-template-columns: minmax(8rem, auto) 1fr;
	gap: 0.35rem 1rem;
}

.em-ontbinden__overzicht dt {
	font-weight: 600;
}

.em-ontbinden__overzicht dd {
	margin: 0;
}
