.sf-consent {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1000;
	width: min(520px, calc(100vw - 40px));
	padding: 20px;
	border: 1px solid var(--sf-line);
	background: var(--sf-white);
	box-shadow: 0 20px 60px rgb(20 24 30 / 20%);
	color: var(--sf-ink);
}

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

.sf-consent h2 {
	margin: 0 0 8px;
	font-family: var(--sf-font-display);
	font-size: 24px;
	font-weight: 400;
}

.sf-consent p {
	margin: 0 0 12px;
	color: var(--sf-muted);
	font-size: 13px;
	line-height: 1.55;
}

.sf-consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 8px 0;
	color: var(--sf-ink);
	font-size: 12px;
	line-height: 1.45;
}

.sf-consent input {
	flex: 0 0 auto;
	margin-top: 2px;
}

.sf-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.sf-consent__actions button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--sf-blue);
	background: var(--sf-blue);
	color: var(--sf-white);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.sf-consent__actions .sf-consent__accept {
	flex: 1 0 100%;
	min-height: 48px;
	border-color: var(--sf-gold);
	background: var(--sf-gold);
	color: var(--sf-ink);
	font-size: 14px;
	font-weight: 600;
}

.sf-consent__actions .sf-consent__accept:hover,
.sf-consent__actions .sf-consent__accept:focus-visible {
	border-color: var(--sf-ink);
	background: #e7bd72;
}

.sf-consent__actions button + button {
	background: transparent;
	color: var(--sf-blue);
}

.sf-consent__actions button:focus-visible {
	outline: 2px solid var(--sf-pink);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.sf-consent {
		right: 10px;
		bottom: 10px;
		width: calc(100vw - 20px);
		padding: 16px;
	}

	.sf-consent h2 {
		font-size: 21px;
	}
}
