.e247c,
.e247c-float,
.e247c-ph,
.e247c-declaration {
	--e247c-navy: var(--navy, #0e2a52);
	--e247c-navy-2: var(--navy-2, #143562);
	--e247c-blue: var(--blue, #0071aa);
	--e247c-green: var(--green, #0d9a26);
	--e247c-green-dark: var(--green-dark, #097c23);
	--e247c-line: var(--line, #dde6ec);
	--e247c-paper: var(--paper, #f4f8fa);
	--e247c-body: var(--body-c, #43566b);
	--e247c-heading: var(--heading, #122238);
	--e247c-grad: var(--grad, linear-gradient(90deg, #0071aa, #0d9a26));
	--e247c-sans: var(--sans, 'IBM Plex Sans', Helvetica, Arial, sans-serif);
	--e247c-disp: var(--disp, 'Archivo', Helvetica, Arial, sans-serif);
	--e247c-mono: var(--mono, 'IBM Plex Mono', monospace);
}

.e247c {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483000;
	width: min(560px, calc(100vw - 40px));
	font-family: var(--e247c-sans);
	color: var(--e247c-body);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s ease, transform .25s ease;
}

.e247c.is-open {
	opacity: 1;
	transform: none;
}

.e247c[hidden] {
	display: none;
}

.e247c-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(4, 14, 30, .45);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
}

.e247c-head {
	position: relative;
	background: var(--e247c-navy);
	padding: 22px 24px 18px;
}

.e247c-head::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--e247c-grad);
}

.e247c-eyebrow {
	font-family: var(--e247c-mono);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9fd4ef;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
}

.e247c-eyebrow::before {
	content: "";
	width: 11px;
	height: 15px;
	flex-shrink: 0;
	background: linear-gradient(90deg, #4db8e8, #3fd06a);
	clip-path: polygon(62% 0, 10% 56%, 44% 56%, 36% 100%, 90% 40%, 55% 40%);
}

.e247c .e247c-title {
	font-family: var(--e247c-disp);
	font-variation-settings: 'wdth' 110;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.1;
	font-size: 1.3rem;
	color: #fff;
	margin: 0;
}

.e247c-body {
	padding: 18px 24px 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.e247c .e247c-text {
	font-size: .95rem;
	line-height: 1.6;
	margin: 0 0 14px;
	color: var(--e247c-body);
}

.e247c .e247c-text a {
	color: var(--e247c-blue);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.e247c-panel {
	border-top: 1px solid var(--e247c-line);
	padding-top: 6px;
	margin-bottom: 10px;
}

.e247c-panel[hidden] {
	display: none;
}

.e247c-cat {
	padding: 14px 0;
	border-bottom: 1px solid var(--e247c-line);
}

.e247c-cat:last-child {
	border-bottom: none;
}

.e247c-cat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.e247c-switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
	font-weight: normal;
}

.e247c-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.e247c-track {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 99px;
	background: #c3d6e8;
	flex-shrink: 0;
	transition: background .2s ease;
}

.e247c-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(4, 14, 30, .25);
	transition: transform .2s ease;
}

.e247c-switch input:checked + .e247c-track {
	background: var(--e247c-green);
}

.e247c-switch input:checked + .e247c-track::after {
	transform: translateX(18px);
}

.e247c-switch input:disabled + .e247c-track {
	background: #8ba3bd;
}

.e247c-switch input:focus-visible + .e247c-track {
	outline: 2px solid var(--e247c-blue);
	outline-offset: 2px;
}

.e247c-cat-name {
	font-family: var(--e247c-disp);
	font-variation-settings: 'wdth' 106;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: .9rem;
	color: var(--e247c-heading);
}

.e247c-count {
	font-family: var(--e247c-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--e247c-blue);
	white-space: nowrap;
}

.e247c .e247c-cat-desc {
	font-size: .86rem;
	line-height: 1.55;
	margin: 8px 0 0 54px;
}

.e247c-details {
	margin: 8px 0 0 54px;
}

.e247c-details summary {
	cursor: pointer;
	font-size: .8rem;
	font-weight: 600;
	color: var(--e247c-blue);
}

.e247c-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.e247c-list li {
	background: var(--e247c-paper);
	border: 1px solid var(--e247c-line);
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 6px;
	font-size: .8rem;
	line-height: 1.45;
	display: grid;
	gap: 2px;
}

.e247c-list code {
	font-family: var(--e247c-mono);
	color: var(--e247c-heading);
	background: none;
	padding: 0;
	font-size: .8rem;
}

.e247c-prov {
	color: var(--e247c-blue);
	font-size: .74rem;
}

.e247c-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 14px 24px 22px;
	border-top: 1px solid var(--e247c-line);
	background: #fff;
}

.e247c-actions [hidden] {
	display: none;
}

.e247c-btn {
	appearance: none;
	font-family: var(--e247c-disp);
	font-variation-settings: 'wdth' 108;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: .82rem;
	line-height: 1.2;
	padding: 13px 12px;
	border-radius: 6px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
	white-space: nowrap;
}

.e247c-btn:hover {
	transform: translateY(-1px);
}

.e247c-btn:focus-visible {
	outline: 2px solid var(--e247c-blue);
	outline-offset: 2px;
}

.e247c-btn-primary {
	background: var(--e247c-green);
	border-color: var(--e247c-green);
	color: #fff;
}

.e247c-btn-primary:hover {
	background: var(--e247c-green-dark);
	border-color: var(--e247c-green-dark);
}

.e247c-btn-ghost {
	background: #fff;
	border-color: var(--e247c-navy);
	color: var(--e247c-navy);
}

.e247c-btn-ghost:hover {
	background: var(--e247c-navy);
	color: #fff;
}

.e247c-float {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 2147482000;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .16);
	background: var(--e247c-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(4, 14, 30, .35);
	transition: transform .15s ease, background .2s ease;
}

.e247c-float:hover {
	background: var(--e247c-navy-2);
	transform: translateY(-2px);
}

.e247c-float:focus-visible {
	outline: 2px solid #4db8e8;
	outline-offset: 2px;
}

.e247c-active .e247c-float {
	display: none;
}

.e247c-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--e247c-navy);
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	width: 100%;
}

.e247c-ph-inner {
	max-width: 360px;
}

.e247c-ph .e247c-eyebrow {
	justify-content: center;
}

.e247c-ph p {
	color: #c3d6e8;
	font-size: .92rem;
	line-height: 1.55;
	margin: 0 0 16px;
}

.e247c-inline-btn {
	appearance: none;
	display: inline-block;
	background: var(--e247c-green);
	color: #fff;
	border: none;
	font-family: var(--e247c-disp);
	font-variation-settings: 'wdth' 108;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: .9rem;
	padding: 14px 22px;
	border-radius: 6px;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
}

.e247c-inline-btn:hover {
	background: var(--e247c-green-dark);
	transform: translateY(-1px);
}

.e247c-declaration {
	margin: 10px 0 30px;
}

.e247c-state {
	background: #fff;
	border: 1px solid var(--e247c-line);
	border-left: 3px solid var(--e247c-green);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 28px;
}

.e247c-state .e247c-state-line {
	margin: 0 0 6px;
	color: var(--e247c-heading);
	font-weight: 500;
}

.e247c-state .e247c-state-meta {
	font-size: .82rem;
	margin: 0 0 14px;
	word-break: break-all;
}

.e247c-state code {
	font-family: var(--e247c-mono);
	font-size: .8rem;
	background: var(--e247c-paper);
	padding: 2px 6px;
	border-radius: 4px;
}

.e247c-declaration h3 {
	margin: 28px 0 8px;
	font-size: 1.15rem;
}

.e247c-none {
	font-style: italic;
}

.e247c-table-wrap {
	overflow-x: auto;
	margin-bottom: 8px;
}

.e247c-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--e247c-line);
	border-radius: 12px;
	overflow: hidden;
	font-size: .88rem;
	line-height: 1.5;
}

.e247c-table th {
	background: var(--e247c-navy);
	color: #fff;
	font-family: var(--e247c-mono);
	font-weight: 500;
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: left;
	padding: 12px 14px;
}

.e247c-table td {
	padding: 12px 14px;
	border-top: 1px solid var(--e247c-line);
	vertical-align: top;
}

.e247c-table code {
	font-family: var(--e247c-mono);
	color: var(--e247c-heading);
	background: var(--e247c-paper);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .82rem;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.e247c {
		left: 0;
		bottom: 0;
		width: 100%;
	}

	.e247c-card {
		border-radius: 16px 16px 0 0;
		max-height: 88vh;
		max-height: 88dvh;
	}

	.e247c-head {
		padding: 18px 18px 14px;
	}

	.e247c .e247c-title {
		font-size: 1.1rem;
	}

	.e247c-body {
		padding: 14px 18px 4px;
	}

	.e247c .e247c-text {
		font-size: .9rem;
	}

	.e247c-actions {
		grid-template-columns: 1fr 1fr;
		padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
	}

	.e247c-actions .e247c-btn-primary {
		grid-column: 1 / -1;
		order: -1;
	}

	.e247c .e247c-cat-desc,
	.e247c-details {
		margin-left: 0;
	}

	.e247c-float {
		bottom: 84px;
		left: 12px;
		width: 42px;
		height: 42px;
	}

	.e247c-table thead {
		display: none;
	}

	.e247c-table,
	.e247c-table tbody,
	.e247c-table tr,
	.e247c-table td {
		display: block;
		width: 100%;
	}

	.e247c-table tr {
		border-top: 1px solid var(--e247c-line);
		padding: 8px 0;
	}

	.e247c-table tr:first-child {
		border-top: none;
	}

	.e247c-table td {
		border: none;
		padding: 4px 14px;
	}

	.e247c-table td::before {
		content: attr(data-label);
		display: block;
		font-family: var(--e247c-mono);
		font-size: .66rem;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--e247c-blue);
	}
}

@media (prefers-reduced-motion: reduce) {
	.e247c,
	.e247c-btn,
	.e247c-float,
	.e247c-track,
	.e247c-track::after {
		transition: none;
	}
}
