/* HOST4DK Cookie Consent 1.0.1 — ID-scoped buttons so theme/Elementor button styles cannot override them. Matches host4dk.com (IBM Plex Sans, #2D328D). */
.h4dk-cc,
.h4dk-cc-reopen {
	--h4cc-ink: #14173d;
	--h4cc-muted: #555a7a;
	--h4cc-bg: #ffffff;
	--h4cc-line: #e3e5f0;
	--h4cc-brand: #2d328d;
	--h4cc-brand-ink: #ffffff;
	--h4cc-soft: #f5f6fb;
}

.h4dk-cc[hidden],
.h4dk-cc-reopen[hidden],
.h4dk-cc [hidden] { display: none !important; }

.h4dk-cc {
	position: fixed;
	inset-block-end: 16px;
	inset-inline-start: 16px;
	z-index: 2147483000;
	width: min(460px, calc(100vw - 32px));
	font-family: "IBM Plex Sans", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--h4cc-ink);
}

.h4dk-cc__box {
	background: var(--h4cc-bg);
	border: 1px solid var(--h4cc-line);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(20, 23, 61, .18);
	padding: 20px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}
.h4dk-cc__box:focus { outline: none; }

.h4dk-cc__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.h4dk-cc__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--h4cc-muted);
}

.h4dk-cc__link {
	color: var(--h4cc-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.h4dk-cc__prefs {
	margin-top: 14px;
	border-top: 1px solid var(--h4cc-line);
}

.h4dk-cc__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--h4cc-line);
}

.h4dk-cc__cat-text { display: flex; flex-direction: column; gap: 2px; }
.h4dk-cc__cat-name { font-size: 14px; font-weight: 600; }
.h4dk-cc__cat-desc { font-size: 13px; line-height: 1.45; color: var(--h4cc-muted); }
.h4dk-cc__always { font-size: 12px; font-weight: 600; color: var(--h4cc-brand); white-space: nowrap; }

/* Toggle switch */
.h4dk-cc__switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; cursor: pointer; }
.h4dk-cc__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.h4dk-cc__slider {
	position: absolute; inset: 0;
	background: #c9ccdc; border-radius: 999px;
	transition: background .15s ease;
}
.h4dk-cc__slider::after {
	content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
	width: 18px; height: 18px; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform .15s ease;
}
.h4dk-cc__switch input:checked + .h4dk-cc__slider { background: var(--h4cc-brand); }
.h4dk-cc__switch input:checked + .h4dk-cc__slider::after { transform: translateX(20px); }
[dir="rtl"] .h4dk-cc__switch input:checked + .h4dk-cc__slider::after { transform: translateX(-20px); }
.h4dk-cc__switch input:focus-visible + .h4dk-cc__slider { outline: 2px solid var(--h4cc-brand); outline-offset: 2px; }

/* Buttons: "Accept all" and "Reject all" look the same on purpose (equal choice). */
.h4dk-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

#h4dk-cc .h4dk-cc__btn {
	flex: 1 1 0;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--h4cc-brand);
	border-radius: 8px;
	background: var(--h4cc-brand);
	color: var(--h4cc-brand-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease;
}
#h4dk-cc .h4dk-cc__btn:hover { background: var(--h4cc-brand); color: var(--h4cc-brand-ink); filter: brightness(1.12); }
#h4dk-cc .h4dk-cc__btn:focus-visible { outline: 2px solid var(--h4cc-brand); outline-offset: 2px; }

#h4dk-cc .h4dk-cc__btn.h4dk-cc__btn--ghost {
	background: transparent;
	color: var(--h4cc-brand);
}
#h4dk-cc .h4dk-cc__btn.h4dk-cc__btn--ghost:hover { background: var(--h4cc-soft); color: var(--h4cc-brand); filter: none; }

/* Settings button on its own row, the two equal choices below it. */
.h4dk-cc__actions [data-act="settings"],
.h4dk-cc__actions [data-act="save"] { flex-basis: 100%; order: 3; }

/* Reopen button */
#h4dk-cc-reopen.h4dk-cc-reopen {
	position: fixed;
	inset-block-end: 16px;
	inset-inline-start: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--h4cc-line);
	border-radius: 50%;
	background: var(--h4cc-bg);
	color: var(--h4cc-brand);
	box-shadow: 0 4px 14px rgba(20, 23, 61, .15);
	cursor: pointer;
	opacity: .85;
}
#h4dk-cc-reopen.h4dk-cc-reopen:hover,
#h4dk-cc-reopen.h4dk-cc-reopen:focus-visible { background: var(--h4cc-bg); color: var(--h4cc-brand); opacity: 1; outline: 2px solid var(--h4cc-brand); outline-offset: 2px; }

@media (max-width: 520px) {
	.h4dk-cc { inset-inline: 12px; inset-block-end: 12px; width: auto; }
	.h4dk-cc__box { padding: 16px; }
	#h4dk-cc-reopen.h4dk-cc-reopen { inset-block-end: 12px; inset-inline-start: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.h4dk-cc__slider, .h4dk-cc__slider::after { transition: none; }
}

@media print {
	.h4dk-cc, .h4dk-cc-reopen { display: none !important; }
}
