.se-cmp,
.se-cmp-modal {
	--se-cmp-surface: var(--surface-elevated, #ffffff);
	--se-cmp-muted: var(--surface-muted, #f7f4ef);
	--se-cmp-text: var(--text-body, #2a2621);
	--se-cmp-heading: var(--text-heading, #17130f);
	--se-cmp-border: var(--border-subtle, rgba(31, 26, 20, 0.14));
	--se-cmp-shadow: var(--shadow-soft, 0 20px 60px rgba(20, 16, 12, 0.16));
	--se-cmp-focus: var(--focus_ring, 0 0 0 3px rgba(185, 151, 105, 0.35));
	color: var(--se-cmp-text);
	font-family: inherit;
}

.se-cmp,
.se-cmp *,
.se-cmp *::before,
.se-cmp *::after,
.se-cmp-modal,
.se-cmp-modal *,
.se-cmp-modal *::before,
.se-cmp-modal *::after {
	box-sizing: border-box;
}

.se-cmp[hidden],
.se-cmp-modal[hidden] {
	display: none !important;
}

.se-cmp {
	position: fixed;
	z-index: 99990;
	right: clamp(16px, 3vw, 40px);
	bottom: clamp(16px, 3vw, 40px);
	left: clamp(16px, 3vw, 40px);
	pointer-events: none;
}

.se-cmp--top {
	top: clamp(16px, 3vw, 40px);
	bottom: auto;
}

.se-cmp__banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(18px, 3vw, 40px);
	align-items: center;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px);
	background: var(--se-cmp-surface);
	border: 1px solid var(--se-cmp-border);
	box-shadow: var(--se-cmp-shadow);
	pointer-events: auto;
}

.se-cmp__title,
.se-cmp-modal__title,
.se-cmp-category__title {
	margin: 0;
	color: var(--se-cmp-heading);
	font-family: "Lexend Exa", inherit;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.se-cmp__title {
	font-size: clamp(18px, 1.5vw, 24px);
}

.se-cmp__text,
.se-cmp-modal__intro,
.se-cmp-category__description {
	margin: 10px 0 0;
	line-height: 1.6;
}

.se-cmp__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0 0;
}

.se-cmp__links a,
.se-cmp-settings-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.se-cmp__actions,
.se-cmp-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	min-width: 0;
}

.se-cmp__button,
.se-cmp-settings-link {
	appearance: none;
	border: 1px solid var(--se-cmp-heading);
	border-radius: 0;
	cursor: pointer;
	font-family: "Lexend Exa", inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 14px 18px;
	text-transform: uppercase;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.se-cmp__button--primary {
	background: var(--se-cmp-heading);
	color: var(--se-cmp-surface);
}

.se-cmp__button--secondary,
.se-cmp__button--ghost,
.se-cmp-settings-link {
	background: transparent;
	color: var(--se-cmp-heading);
}

.se-cmp__button:hover,
.se-cmp-settings-link:hover {
	background: var(--se-cmp-heading);
	color: var(--se-cmp-surface);
}

.se-cmp__button:focus-visible,
.se-cmp-settings-link:focus-visible,
.se-cmp-modal__close:focus-visible,
.se-cmp-switch input:focus-visible + .se-cmp-switch__track {
	box-shadow: var(--se-cmp-focus);
	outline: none;
}

.se-cmp-modal {
	position: fixed;
	z-index: 99991;
	inset: 0;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 40px);
}

.se-cmp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 8, 6, 0.46);
}

.se-cmp-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: min(760px, 92vh);
	overflow: auto;
	background: var(--se-cmp-surface);
	border: 1px solid var(--se-cmp-border);
	box-shadow: var(--se-cmp-shadow);
}

.se-cmp-modal__header,
.se-cmp-modal__body,
.se-cmp-modal__footer {
	padding: clamp(20px, 3vw, 32px);
}

.se-cmp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--se-cmp-border);
}

.se-cmp-modal__title {
	flex: 1 1 auto;
	font-size: clamp(18px, 2vw, 26px);
	line-height: 1.25;
}

.se-cmp-modal__close {
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--se-cmp-border);
	background: transparent;
	color: var(--se-cmp-heading);
	cursor: pointer;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
}

.se-cmp-modal__close::before {
	content: "×";
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
}

.se-cmp-categories {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}

.se-cmp-category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 18px;
	background: var(--se-cmp-muted);
	border: 1px solid var(--se-cmp-border);
}

.se-cmp-category__title {
	font-size: 14px;
}

.se-cmp-switch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.se-cmp-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.se-cmp-switch__track {
	position: relative;
	display: block;
	width: 54px;
	height: 30px;
	background: rgba(44, 37, 29, 0.28);
	border: 1px solid var(--se-cmp-border);
	transition: background-color 0.18s ease;
}

.se-cmp-switch__track::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	background: var(--se-cmp-surface);
	transition: transform 0.18s ease;
}

.se-cmp-switch input:checked + .se-cmp-switch__track {
	background: var(--se-cmp-heading);
}

.se-cmp-switch input:checked + .se-cmp-switch__track::after {
	transform: translateX(24px);
}

.se-cmp-switch input:disabled + .se-cmp-switch__track {
	opacity: 0.72;
	cursor: not-allowed;
}

.se-cmp-footer-link {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99980;
}

body.se-cmp-modal-open {
	overflow: hidden;
}

@media (max-width: 820px) {
	.se-cmp__banner {
		grid-template-columns: 1fr;
	}

	.se-cmp__actions,
	.se-cmp-modal__footer {
		justify-content: stretch;
	}

	.se-cmp__button {
		flex: 1 1 100%;
	}
}

@media (max-width: 1100px) {
	.se-cmp__banner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.se-cmp {
		right: 10px;
		bottom: 10px;
		left: 10px;
	}

	.se-cmp__banner,
	.se-cmp-modal__header,
	.se-cmp-modal__body,
	.se-cmp-modal__footer {
		padding: 18px;
	}

	.se-cmp-category {
		grid-template-columns: 1fr;
	}
}
