/*
 * DreamFast Studio — cookie-consent banner + preferences dialog.
 * Matches the near-black / lime system. RTL by default; LTR handled by the
 * document dir. Accept and Reject have comparable visibility (no dark pattern).
 */

.dfs-consent-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 200;
	color: rgb(230, 233, 226);
	background: rgba(16, 18, 15, 0.94);
	backdrop-filter: blur(14px) saturate(140%);
	border-top: 1px solid rgb(52, 55, 48);
	box-shadow: rgba(0, 0, 0, 0.35) 0 -18px 50px;
}
.dfs-consent-banner.is-hidden {
	display: none;
}
.dfs-consent-inner {
	width: min(1180px, calc(100% - 48px));
	align-items: center;
	gap: 40px;
	margin-inline: auto;
	padding-block: 20px;
	display: flex;
}
.dfs-consent-copy {
	flex: 1;
	min-width: 0;
}
.dfs-consent-title {
	color: #fff;
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
}
.dfs-consent-text {
	color: rgb(196, 201, 191);
	max-width: 720px;
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
}
.dfs-consent-text a {
	color: var(--lime);
	border-bottom: 1px solid rgba(202, 255, 61, 0.4);
}
.dfs-consent-actions {
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	display: flex;
}

/* Buttons — Accept (lime) and Reject (bordered) share size; Prefs is tertiary. */
.dfs-c-btn {
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 11px;
	min-height: 46px;
	padding: 0 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.dfs-c-btn:hover {
	transform: translateY(-1px);
}
.dfs-c-accept,
.dfs-c-save {
	color: rgb(16, 18, 14);
	background: var(--lime);
}
.dfs-c-reject,
.dfs-c-reject2 {
	color: #fff;
	background: rgb(26, 29, 23);
	border-color: rgb(74, 78, 68);
}
.dfs-c-prefs {
	color: rgb(206, 211, 202);
	background: none;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 0 12px;
}

/* Preferences modal */
.dfs-consent-modal[hidden] {
	display: none;
}
.dfs-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: grid;
	place-items: center;
	padding: 20px;
}
.dfs-consent-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 7, 6, 0.72);
	backdrop-filter: blur(2px);
}
.dfs-consent-dialog {
	position: relative;
	color: rgb(230, 233, 226);
	background: rgb(20, 23, 18);
	border: 1px solid rgb(52, 55, 48);
	border-radius: 22px;
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	padding: 30px 30px 26px;
	overflow-y: auto;
	box-shadow: rgba(0, 0, 0, 0.5) 0 30px 80px;
}
.dfs-consent-dtitle {
	color: #fff;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}
.dfs-consent-dintro {
	color: rgb(196, 201, 191);
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.65;
}
.dfs-consent-cat {
	border: 1px solid rgb(48, 51, 45);
	border-radius: 14px;
	margin-bottom: 12px;
	padding: 16px 18px;
}
.dfs-consent-cat-head {
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	display: flex;
}
.dfs-consent-cat-name {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
.dfs-consent-cat-state {
	color: rgb(150, 155, 146);
	font-size: 12px;
	font-weight: 600;
}
.dfs-consent-cat-desc {
	color: rgb(184, 189, 179);
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
}

/* Analytics toggle — native checkbox styled as a switch, stays keyboard-usable. */
.dfs-consent-switch {
	appearance: none;
	cursor: pointer;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	background: rgb(45, 48, 43);
	border: 1px solid rgb(74, 78, 68);
	border-radius: 999px;
	transition: background 0.2s;
	position: relative;
}
.dfs-consent-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	inset-inline-start: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.dfs-consent-switch:checked {
	background: var(--lime);
}
.dfs-consent-switch:checked::after {
	background: rgb(16, 18, 14);
	transform: translateX(20px);
}
html[dir="rtl"] .dfs-consent-switch:checked::after {
	transform: translateX(-20px);
}
.dfs-consent-dactions {
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
	display: flex;
}

/* Footer "privacy settings" link */
.dfs-privacy-settings {
	cursor: pointer;
}

@media (width <= 760px) {
	.dfs-consent-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		width: calc(100% - 32px);
		padding-block: 18px;
	}
	.dfs-consent-actions {
		flex-wrap: wrap;
	}
	.dfs-c-accept,
	.dfs-c-reject {
		flex: 1;
		min-width: 120px;
		justify-content: center;
		display: inline-flex;
		align-items: center;
	}
	.dfs-c-prefs {
		flex-basis: 100%;
		text-align: center;
	}
	.dfs-consent-dialog {
		padding: 24px 20px 22px;
	}
}

/* Footer trigger styled as an inline link (semantic button). */
.footer-bottom .dfs-privacy-settings {
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.footer-bottom .dfs-privacy-settings:hover {
	color: var(--lime);
}
