.ely-consent {
	--ely-consent-ink: #251b0e;
	--ely-consent-paper: #fffaf1;
	--ely-consent-border: #8b744a;
	position: fixed;
	z-index: 2147483000;
	inset: auto 16px 16px auto;
	max-width: calc(100vw - 32px);
	color: var(--ely-consent-ink);
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	text-align: start;
}

.ely-consent[dir="rtl"] {
	inset: auto auto 16px 16px;
}

.ely-consent [hidden] {
	display: none !important;
}

.ely-consent__panel {
	box-sizing: border-box;
	width: min(460px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px;
	border: 1px solid var(--ely-consent-border);
	border-radius: 12px;
	background: var(--ely-consent-paper);
	box-shadow: 0 8px 32px #0003;
}

.ely-consent__title {
	margin: 0 0 8px;
	color: inherit;
	font: 700 18px / 1.4 Arial, sans-serif;
}

.ely-consent__description,
.ely-consent__status {
	margin: 0 0 12px;
}

.ely-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-block: 16px 8px;
}

.ely-consent button {
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--ely-consent-border);
	border-radius: 6px;
	background: var(--ely-consent-paper);
	color: var(--ely-consent-ink);
	font: 600 14px / 1.45 Arial, sans-serif;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ely-consent button:hover {
	background: #ede3d2;
}

.ely-consent a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ely-consent :focus-visible {
	outline: 3px solid #144e8b;
	outline-offset: 3px;
}

.ely-consent__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ely-consent .ely-consent__reopen {
	max-width: min(260px, calc(100vw - 32px));
	box-shadow: 0 2px 12px #0002;
}

@media (max-width: 360px) {
	.ely-consent__panel {
		padding: 16px;
	}

	.ely-consent__actions {
		grid-template-columns: 1fr;
	}
}
