:root {
	--kd1691-surface: #ffffff;
	--kd1691-text: #1d2327;
	--kd1691-border: #dcdcde;
	--kd1691-accent: #0f766e;
}

html.kd1691-theme-dark,
body.kd1691-theme-dark {
	--kd1691-surface: #161a1d;
	--kd1691-text: #f4f7f8;
	--kd1691-border: #3c434a;
	--kd1691-accent: #48b7a8;
	background: #101315;
	color: var(--kd1691-text);
}

html.kd1691-theme-dark body,
body.kd1691-theme-dark .site,
body.kd1691-theme-dark .entry-content,
body.kd1691-theme-dark .woocommerce,
body.kd1691-theme-dark .woocommerce-page,
body.kd1691-theme-dark input,
body.kd1691-theme-dark select,
body.kd1691-theme-dark textarea,
html.kd1691-theme-dark input,
html.kd1691-theme-dark select,
html.kd1691-theme-dark textarea {
	background-color: var(--kd1691-surface);
	color: var(--kd1691-text);
}

html.kd1691-theme-dark a,
body.kd1691-theme-dark a {
	color: var(--kd1691-accent);
}

html.kd1691-theme-dark table,
html.kd1691-theme-dark th,
html.kd1691-theme-dark td,
html.kd1691-theme-dark input,
html.kd1691-theme-dark select,
html.kd1691-theme-dark textarea,
body.kd1691-theme-dark table,
body.kd1691-theme-dark th,
body.kd1691-theme-dark td,
body.kd1691-theme-dark input,
body.kd1691-theme-dark select,
body.kd1691-theme-dark textarea {
	border-color: var(--kd1691-border);
}

.kd1691-theme-toggle {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid var(--kd1691-border);
	border-radius: 8px;
	background: var(--kd1691-surface);
	color: var(--kd1691-text);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	font: inherit;
	cursor: pointer;
}

.kd1691-theme-toggle__icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--kd1691-accent) 0 50%, transparent 50% 100%);
	border: 1px solid currentColor;
}

.kd1691-theme-toggle:hover,
.kd1691-theme-toggle:focus {
	border-color: var(--kd1691-accent);
	outline: none;
}

@media (max-width: 600px) {
	.kd1691-theme-toggle {
		right: 12px;
		bottom: 12px;
	}
}
