.esq-cc[hidden],
.esq-cc__trigger[hidden],
.esq-cc__panel[hidden],
.esq-cc__cat-desc[hidden] {
	display: none !important;
}

.esq-cc {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: Arial, Helvetica, sans-serif;
	color: #1d1d1d;
}

.esq-cc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.esq-cc__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	margin: 12vh auto 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	padding: 20px 24px 18px;
}

.esq-cc__brand {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0 0 6px;
}

.esq-cc__logo {
	display: block;
	height: 28px;
	width: auto;
	max-width: 100%;
}

.esq-cc__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	border-bottom: 1px solid #e6e6e6;
	margin: 0 -24px 18px;
	padding: 0 8px;
}

.esq-cc__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 12px 8px;
	font-size: 14px;
	color: #5c5c5c;
	cursor: pointer;
}

.esq-cc__tab.is-active {
	color: #319ca6;
	border-bottom-color: #319ca6;
	font-weight: 600;
}

.esq-cc__title {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #1d1d1d;
}

.esq-cc__text {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.55;
	color: #4a4a4a;
}

.esq-cc__text a {
	color: #319ca6;
}

.esq-cc__cats {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.esq-cc__cat {
	border-bottom: 1px solid #eee;
	padding: 8px 0 10px;
}

.esq-cc__cat-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.esq-cc__cat-toggle {
	appearance: none;
	background: none;
	border: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	flex: 1;
	text-align: left;
	cursor: pointer;
	color: inherit;
}

.esq-cc__chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid #5c5c5c;
	border-bottom: 2px solid #5c5c5c;
	transform: rotate(-45deg);
	margin: 0 4px 2px 2px;
}

.esq-cc__cat-toggle[aria-expanded="true"] .esq-cc__chevron {
	transform: rotate(45deg);
	margin-top: 2px;
}

.esq-cc__cat-name {
	font-size: 14px;
	font-weight: 700;
}

.esq-cc__cat-desc {
	margin: 6px 0 0 22px;
	font-size: 12px;
	line-height: 1.5;
	color: #5c5c5c;
}

.esq-cc__switch {
	position: relative;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
}

.esq-cc__switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.esq-cc__slider {
	position: absolute;
	inset: 0;
	background: #141414;
	border-radius: 22px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.esq-cc__slider::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.esq-cc__switch input:checked + .esq-cc__slider {
	background: #319ca6;
}

.esq-cc__switch input:checked + .esq-cc__slider::after {
	transform: translateX(18px);
}

.esq-cc__switch input:disabled + .esq-cc__slider {
	opacity: 0.95;
	cursor: not-allowed;
}

.esq-cc__actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-top: 18px;
}

.esq-cc__btn {
	appearance: none;
	border: 0;
	background: #319ca6;
	color: #fff;
	min-height: 44px;
	padding: 10px 8px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 2px;
	cursor: pointer;
	white-space: nowrap;
}

.esq-cc__btn:hover,
.esq-cc__btn:focus-visible {
	background: #277f87;
}

.esq-cc__trigger {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: #319ca6;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.esq-cc__inline-open {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	color: #319ca6;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.esq-cc .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 640px) {
	.esq-cc__dialog {
		margin: 24px auto 0;
		padding: 16px 16px 14px;
	}

	.esq-cc__tabs {
		margin: 0 -16px 14px;
	}

	.esq-cc__actions {
		grid-template-columns: 1fr;
	}
}
