.cvrt-consent {
	position: fixed;
	inset-inline: 1rem;
	inset-block-end: 1rem;
	z-index: 99999;
	max-width: 32rem;
	margin-inline: auto;
	padding: 1rem 1.25rem;
	background: var( --cvrt-consent-bg );
	color: var( --cvrt-consent-fg );
	border-radius: var( --cvrt-consent-radius );
	box-shadow: var( --cvrt-consent-shadow );
	font-family: var( --cvrt-consent-font );
}

.cvrt-consent[hidden] {
	display: none;
}

.cvrt-consent__text {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.cvrt-consent__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.cvrt-consent__btn {
	flex: 1 1 auto;
	padding: 0.6rem 1rem;
	border: 1px solid var( --cvrt-consent-accent );
	border-radius: var( --cvrt-consent-radius );
	background: transparent;
	color: var( --cvrt-consent-fg );
	font: inherit;
	cursor: pointer;
}

.cvrt-consent__btn--accept {
	background: var( --cvrt-consent-accent );
	color: var( --cvrt-consent-bg );
}

.cvrt-consent__title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.cvrt-consent__btn--save {
	background: var( --cvrt-consent-accent );
	color: var( --cvrt-consent-bg );
}

.cvrt-consent__options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0 0 0.9rem;
	padding: 0.75rem;
	border: 1px solid var( --cvrt-consent-accent );
	border-radius: var( --cvrt-consent-radius );
}

.cvrt-consent__options[hidden] {
	display: none;
}

.cvrt-consent__option {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.85rem;
	line-height: 1.45;
	cursor: pointer;
}

.cvrt-consent__option input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.cvrt-consent__option strong {
	display: block;
}

.cvrt-consent__links {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
}

.cvrt-consent__links a {
	color: inherit;
	margin-right: 1rem;
}

/* Shown where a blocked embed would be, so a held-back video reads as a
   choice rather than a broken page. Without it people accept everything
   just to make the page work. */
.cvrt-consent-placeholder {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: flex-start;
	padding: 1.25rem;
	border: 1px dashed currentColor;
	border-radius: var( --cvrt-consent-radius );
	font-size: 0.85rem;
	line-height: 1.5;
}

.cvrt-consent-placeholder p {
	margin: 0;
}

.cvrt-consent-placeholder__btn {
	padding: 0.5rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: var( --cvrt-consent-radius );
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
