.bit-consent,
.bit-consent * {
	box-sizing: border-box;
}

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

.bit-consent__banner {
	position: fixed;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 999999;
	display: flex;
	gap: 24px;
	align-items: center;
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px;
	color: #201d1b;
	background: #fffdf9;
	border: 1px solid rgba(32, 29, 27, 0.18);
	border-radius: 14px;
	box-shadow: 0 14px 45px rgba(20, 16, 13, 0.18);
}

.bit-consent__copy {
	flex: 1 1 auto;
}

.bit-consent__copy strong,
.bit-consent__dialog h2 {
	font-size: 20px;
	line-height: 1.25;
}

.bit-consent__copy p,
.bit-consent__dialog p {
	margin: 7px 0;
	font-size: 14px;
	line-height: 1.55;
}

.bit-consent__policy-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bit-consent__policy-links a {
	color: inherit;
	font-size: 13px;
	text-decoration: underline;
}

.bit-consent__actions,
.bit-consent__dialog-actions {
	display: flex;
	gap: 9px;
	flex: 0 0 auto;
	flex-wrap: wrap;
}

.bit-consent__button,
.bit-consent__reopen,
.bit-consent__close {
	min-height: 42px;
	padding: 10px 16px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #201d1b;
	background: #fff;
	border: 1px solid #201d1b;
	border-radius: 8px;
	cursor: pointer;
}

.bit-consent__button--primary {
	color: #fff;
	background: #201d1b;
}

.bit-consent__button:focus-visible,
.bit-consent__reopen:focus-visible,
.bit-consent__close:focus-visible,
.bit-consent__category input:focus-visible {
	outline: 3px solid #c9a46b;
	outline-offset: 2px;
}

.bit-consent__overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(22, 18, 15, 0.48);
}

.bit-consent__dialog {
	position: relative;
	width: min(100%, 620px);
	max-height: min(760px, calc(100vh - 40px));
	overflow: auto;
	padding: 28px;
	background: #fffdf9;
	border-radius: 14px;
	box-shadow: 0 18px 55px rgba(20, 16, 13, 0.28);
}

.bit-consent__dialog h2 {
	margin: 0 40px 8px 0;
}

.bit-consent__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	min-height: 40px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
}

.bit-consent__category {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin: 12px 0;
	padding: 14px;
	background: #fff;
	border: 1px solid rgba(32, 29, 27, 0.15);
	border-radius: 10px;
}

.bit-consent__category span {
	display: grid;
	gap: 3px;
}

.bit-consent__category small {
	font-size: 12px;
	line-height: 1.45;
}

.bit-consent__category input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: #201d1b;
}

.bit-consent__category--locked {
	background: #f3f0eb;
}

.bit-consent__dialog-actions {
	margin-top: 20px;
}

.bit-consent__reopen {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 999998;
	min-height: 36px;
	padding: 7px 11px;
	font-size: 12px;
	background: #fffdf9;
	box-shadow: 0 6px 20px rgba(20, 16, 13, 0.12);
}

html.bit-consent-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.bit-consent__banner {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
		padding: 17px;
	}

	.bit-consent__actions,
	.bit-consent__dialog-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.bit-consent__button {
		width: 100%;
	}

	.bit-consent__dialog {
		padding: 22px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bit-consent * {
		scroll-behavior: auto !important;
	}
}
