/*
 * ZZP OK! Keurmerk: één knopstijl voor de eigen plugins (07-11-2026).
 *
 * Wordt alleen geladen op de pagina's van zzp'ers en opdrachtgevers (zie functions.php, zzpok_knoppen_doelgroep()).
 * Beheerpagina's houden hun eigen knoppen.
 *
 * Huisstijl (AGENTS.md): vlak, geen schaduw, geen verticale hoverbeweging, minimaal 52px hoog,
 * 17px vet, padding 16px 28px, hoek 10px, paarse focusrand, op mobiel de volle breedte.
 * Zzp-pagina's: hoofdknop blauw, tweede knop lichtblauw.
 * Opdrachtgeverspagina's: hoofdknop paars, tweede knop blauw.
 *
 * !important is hier bewust gebruikt: de plugins zetten hun knopkleuren zelf met !important
 * of laden hun opmaak later in de pagina. Dit bestand is de laag die daar overheen gaat.
 */

html body.zzpok-knoppen.zzpok-knoppen {
	--zk-hoofd: #146B87;
	--zk-hoofd-hover: #104E63;
	--zk-tweede-achtergrond: #EEF7FA;
	--zk-tweede-rand: #DCEAF0;
	--zk-tweede-tekst: #146B87;
	--zk-tweede-hover-achtergrond: #DCEAF0;
	--zk-tweede-hover-rand: #DCEAF0;
	--zk-tweede-hover-tekst: #104E63;
}

html body.zzpok-knoppen.zzpok-knoppen--opdrachtgever {
	--zk-hoofd: #9650EB;
	--zk-hoofd-hover: #7832C9;
	--zk-tweede-achtergrond: #146B87;
	--zk-tweede-rand: #146B87;
	--zk-tweede-tekst: #FFFFFF;
	--zk-tweede-hover-achtergrond: #104E63;
	--zk-tweede-hover-rand: #104E63;
	--zk-tweede-hover-tekst: #FFFFFF;
}

/* 1. Vorm: voor alle knoppen gelijk */
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn,
html body.zzpok-knoppen.zzpok-knoppen .aod-submit,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button,
html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button,
html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:not(.is-betalen),
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"],
html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	box-sizing: border-box !important;
	width: auto;
	min-width: 0;
	height: auto !important;
	min-height: 52px !important;
	padding: 16px 28px !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: normal !important;
	box-shadow: none !important;
	transform: none !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-submit:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button:hover,
html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:not(.is-betalen):hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel:hover,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"]:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button:hover,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button:hover {
	text-decoration: none !important;
	box-shadow: none !important;
	transform: none !important;
}

/* 2. Hoofdknop: blauw voor zzp'ers, paars voor opdrachtgevers */
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-primary,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn:not(.zzpok-btn-secondary),
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn:not(.zzpok-admin-btn-secondary, .zzpok-admin-btn-danger, [aria-disabled="true"], .is-disabled),
html body.zzpok-knoppen.zzpok-knoppen .aod-submit,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button:not(.aod-status-button--terug),
html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:not(.is-betalen),
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button:not(.is-secondary),
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"],
html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button {
	border-color: var(--zk-hoofd) !important;
	background: var(--zk-hoofd) !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
}

html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-primary:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn:not(.zzpok-btn-secondary):hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn:not(.zzpok-admin-btn-secondary, .zzpok-admin-btn-danger, [aria-disabled="true"], .is-disabled):hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-submit:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button:not(.aod-status-button--terug):hover,
html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:not(.is-betalen):hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button:not(.is-secondary):hover,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"]:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button:hover,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button:hover {
	border-color: var(--zk-hoofd-hover) !important;
	background: var(--zk-hoofd-hover) !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
}

/* 3. Tweede knop: lichtblauw voor zzp'ers, blauw voor opdrachtgevers */
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-secondary,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-ghost,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn.zzpok-btn-secondary,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn.zzpok-admin-btn-secondary,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button.aod-status-button--terug,
html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button.is-secondary,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel {
	border-color: var(--zk-tweede-rand) !important;
	border-style: solid !important;
	border-width: 1px !important;
	background: var(--zk-tweede-achtergrond) !important;
	color: var(--zk-tweede-tekst) !important;
	-webkit-text-fill-color: var(--zk-tweede-tekst) !important;
}

html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-secondary:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn-ghost:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn.zzpok-btn-secondary:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn.zzpok-admin-btn-secondary:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button.aod-status-button--terug:hover,
html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button.is-secondary:hover,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel:hover {
	border-color: var(--zk-tweede-hover-rand) !important;
	background: var(--zk-tweede-hover-achtergrond) !important;
	color: var(--zk-tweede-hover-tekst) !important;
	-webkit-text-fill-color: var(--zk-tweede-hover-tekst) !important;
}

/* 4. Uitgeschakeld of bezig (ook knoppen met aria-disabled, zoals "Certificaat nog niet beschikbaar") */
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn:disabled,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn.is-loading,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn:disabled,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn:disabled,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn[aria-disabled="true"],
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn.is-disabled,
html body.zzpok-knoppen.zzpok-knoppen .aod-submit:disabled,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save:disabled,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button:disabled,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"]:disabled {
	border-color: #DCEAF0 !important;
	background: #DCEAF0 !important;
	color: #536873 !important;
	-webkit-text-fill-color: #536873 !important;
	cursor: not-allowed;
	opacity: 1 !important;
}

/* 5. Toetsenbordfocus: paarse rand van 3px met 4px afstand */
html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .aod-submit:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .aod-status-button:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"]:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button:focus-visible,
html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button:focus-visible {
	outline: 3px solid #9650EB !important;
	outline-offset: 4px !important;
	box-shadow: none !important;
}

/* 6. Mobiel: knoppen gebruiken de volle breedte */
@media (max-width: 800px) {
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn,
	html body.zzpok-knoppen.zzpok-knoppen .aod-submit,
	html body.zzpok-knoppen.zzpok-knoppen .aod-status-button,
	html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button,
	html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop:not(.is-betalen),
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel,
	html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"],
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button,
	html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button {
		display: flex !important;
		width: 100% !important;
		min-width: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-screening-v2 .btn,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-btn,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-admin-btn,
	html body.zzpok-knoppen.zzpok-knoppen .aod-submit,
	html body.zzpok-knoppen.zzpok-knoppen .aod-status-button,
	html body.zzpok-knoppen.zzpok-knoppen .aod-clear-button,
	html body.zzpok-knoppen.zzpok-knoppen a.zzpok-statuskaart__knop,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-save,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-solid,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-btn-line,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-profiel .zp-actions > a,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__button,
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-og .zzpok-og__cancel,
	html body.zzpok-knoppen.zzpok-knoppen .kvk-search-submit input[type="submit"],
	html body.zzpok-knoppen.zzpok-knoppen .zzpok-client-search button,
	html body.zzpok-knoppen.zzpok-knoppen .kvk-search-results .bzo-invite-button {
		transition: none !important;
	}
}

/* 1.0.17: een verborgen knop blijft verborgen. De regels hierboven zetten display met !important,
   waardoor knoppen die een plugin verbergt (hidden of style="display: none") toch verschenen,
   bijvoorbeeld een lege "Annuleren"-knop in de meldingen van de screening. Staat onderaan, zodat
   hij ook de mobiele regel (display: flex) wint. */
html body.zzpok-knoppen.zzpok-knoppen :is(.btn, .zzpok-btn, .zzpok-admin-btn, .aod-submit, .aod-status-button, .aod-clear-button, .zzpok-statuskaart__knop, .zp-save, .zp-btn-solid, .zp-btn-line, .zzpok-og__button, .zzpok-og__cancel, .bzo-invite-button, input[type="submit"], button, a):is([hidden], [style*="display: none"], [style*="display:none"]) {
	display: none !important;
}
