/* ITK Cookie Consent */
.itkcc, .itkcc * { box-sizing: border-box; }
.itkcc { --itkcc-radius: 10px; font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--itkcc-text, #1f1f1f); }
.itkcc[hidden], .itkcc [hidden] { display: none !important; }
.itkcc p { margin: 0 0 .5em; }
.itkcc a.itkcc-link { color: inherit; text-decoration: underline; }

/* Banner */
.itkcc-banner { position: fixed; z-index: 2147483000; }
.itkcc-banner-box { background: var(--itkcc-bg, #fff); color: var(--itkcc-text, #1f1f1f); box-shadow: 0 -2px 24px rgba(0,0,0,.18); padding: 18px 22px; display: flex; gap: 20px; align-items: center; }
.itkcc-title { font-weight: 700; font-size: 1.05em; margin-bottom: .25em !important; }
.itkcc-banner-text { flex: 1 1 auto; min-width: 0; }
.itkcc-banner-text p:last-child { margin-bottom: 0; }

.itkcc-pos-bottom { left: 0; right: 0; bottom: 0; }
.itkcc-pos-bottom .itkcc-banner-box { max-width: 1200px; margin: 0 auto 12px; border-radius: var(--itkcc-radius); width: calc(100% - 24px); }

.itkcc-pos-bottom-left { left: 16px; bottom: 16px; max-width: 420px; width: calc(100% - 32px); }
.itkcc-pos-bottom-left .itkcc-banner-box { flex-direction: column; align-items: stretch; border-radius: var(--itkcc-radius); }

.itkcc-pos-center { inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.itkcc-pos-center[hidden] { display: none !important; }
.itkcc-pos-center .itkcc-banner-box { flex-direction: column; align-items: stretch; max-width: 560px; border-radius: var(--itkcc-radius); }

/* Buttons – accept and reject are equally prominent (AP-richtlijn) */
.itkcc-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.itkcc-btn { appearance: none; border: 2px solid var(--itkcc-primary, #b8902a); border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; min-height: 44px; transition: filter .15s, background .15s; }
.itkcc-btn:focus-visible, .itkcc-close:focus-visible, .itkcc-reopen:focus-visible, .itkcc-switch input:focus-visible + .itkcc-slider { outline: 3px solid #1a73e8; outline-offset: 2px; }
.itkcc-btn-primary { background: var(--itkcc-primary, #b8902a); color: #fff; }
.itkcc-btn-primary:hover { filter: brightness(.92); }
.itkcc-btn-secondary { background: var(--itkcc-primary, #b8902a); color: #fff; }
.itkcc-btn-secondary:hover { filter: brightness(.92); }
.itkcc-btn-link { background: transparent; color: var(--itkcc-text, #1f1f1f); border-color: transparent; text-decoration: underline; padding-left: 8px; padding-right: 8px; }

/* Modal */
.itkcc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.itkcc-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.itkcc-modal-box { position: relative; background: var(--itkcc-bg, #fff); color: var(--itkcc-text, #1f1f1f); border-radius: var(--itkcc-radius); width: 100%; max-width: 680px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.itkcc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,.1); }
.itkcc-modal-head h2 { margin: 0; font-size: 1.25em; line-height: 1.3; color: inherit; }
.itkcc-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; border-radius: 4px; }
.itkcc-modal-body { padding: 16px 22px; overflow-y: auto; }
.itkcc-modal-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid rgba(0,0,0,.1); }
.itkcc-cat { border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: 12px 14px; margin-top: 12px; }
.itkcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.itkcc-cat-desc { font-size: .93em; opacity: .85; margin-top: 4px; }
.itkcc-cat-desc p { margin: 0; }
.itkcc-always { font-size: .85em; font-weight: 600; color: #2e7d32; white-space: nowrap; }
html.itkcc-lock, html.itkcc-lock body { overflow: hidden; }

/* Toggle */
.itkcc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.itkcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.itkcc-slider { position: absolute; inset: 0; background: #b5b5b5; border-radius: 26px; transition: background .2s; }
.itkcc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.itkcc-switch input:checked + .itkcc-slider { background: var(--itkcc-primary, #b8902a); }
.itkcc-switch input:checked + .itkcc-slider::before { transform: translateX(20px); }
.itkcc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cookie tables */
.itkcc-details { margin-top: 8px; font-size: .9em; }
.itkcc-details summary { cursor: pointer; text-decoration: underline; }
.itkcc-table-wrap { overflow-x: auto; }
.itkcc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .92em; }
.itkcc-table th, .itkcc-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; }
.itkcc-table code { font-size: .95em; word-break: break-all; }

/* Reopen button */
.itkcc-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--itkcc-primary, #b8902a); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); padding: 0; }

/* Blocked embed placeholder */
.itkcc-placeholder, .itkcc-placeholder * { box-sizing: border-box; }
.itkcc-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: #f3f3f3; border: 1px dashed #bbb; border-radius: 8px; padding: 24px; width: 100%; min-height: 200px; }

/* Declaration (shortcode) */
.itkcc-declaration .itkcc-table { font-size: .95em; }

@media (max-width: 760px) {
	.itkcc-banner-box { flex-direction: column; align-items: stretch; padding: 16px; }
	.itkcc-pos-bottom .itkcc-banner-box { margin-bottom: 8px; width: calc(100% - 16px); }
	.itkcc-buttons, .itkcc-modal-foot { flex-direction: column-reverse; }
	.itkcc-btn { width: 100%; }
	.itkcc-btn-link { order: -1; }
	.itkcc-modal { padding: 0; align-items: flex-end; }
	.itkcc-modal-box { max-height: 92vh; border-radius: var(--itkcc-radius) var(--itkcc-radius) 0 0; }
	.itkcc-modal-foot { gap: 8px; padding: 12px 16px; }
	.itkcc-modal-foot .itkcc-btn { min-height: 42px; padding: 8px 14px; }
	.itkcc-modal-head, .itkcc-modal-body { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .itkcc * { transition: none !important; } }
