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

.i365-consent,
.i365-consent-settings {
	box-sizing: border-box;
	font-family: inherit;
}

.i365-consent {
	position: fixed;
	z-index: 100000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	width: min(640px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	margin: 0 auto;
	padding: 20px;
	overflow: auto;
	border: 1px solid #b9c6c0;
	border-radius: 14px;
	background: #fffefb;
	box-shadow: 0 18px 60px rgba(13, 35, 32, .24);
	color: #122724;
}

.i365-consent h2 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.2;
}

.i365-consent p {
	margin: 8px 0;
	font-size: 15px;
	line-height: 1.5;
}

.i365-consent a {
	color: #225f54;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.i365-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.i365-consent__action {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #56736d;
	border-radius: 9px;
	background: #f4f1e9;
	color: #16322d;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
}

.i365-consent__action:hover,
.i365-consent__action:focus-visible {
	border-color: #1f5a4f;
	background: #e9efe9;
	outline: 2px solid transparent;
}

.i365-consent__action:disabled {
	cursor: wait;
	opacity: .65;
}

[data-consent-open-settings] {
	grid-column: 1 / -1;
	min-height: 32px;
	padding-block: 3px;
	border-color: transparent;
	background: transparent;
	font-size: 13px;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 3px;
}

[data-consent-open-settings]:hover,
[data-consent-open-settings]:focus-visible {
	border-color: transparent;
	background: transparent;
}

.i365-consent__preferences .i365-consent__actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.i365-consent__category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #d2dbd6;
	border-radius: 10px;
}

.i365-consent__category span,
.i365-consent__category small {
	display: block;
}

.i365-consent__category small {
	margin-top: 4px;
	color: #52635f;
	font-size: 13px;
	line-height: 1.4;
}

.i365-consent__category input {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.i365-consent__status {
	min-height: 1.4em;
	color: #8d2b24;
	font-weight: 700;
}

.i365-consent-settings {
	position: fixed;
	z-index: 99990;
	right: 14px;
	bottom: 14px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #56736d;
	border-radius: 999px;
	background: #fffefb;
	box-shadow: 0 5px 18px rgba(13, 35, 32, .16);
	color: #16322d;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 760px) {
	.i365-consent {
		bottom: 72px;
		max-height: calc(100dvh - 88px);
		padding: 14px;
	}

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

	.i365-consent h2 {
		margin-bottom: 6px;
		font-size: 19px;
	}

	.i365-consent p {
		margin: 6px 0;
		font-size: 14px;
		line-height: 1.4;
	}

	.i365-consent-settings {
		bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.i365-consent__action {
		scroll-behavior: auto;
	}
}
