.cookielegal-banner,
.cookielegal-modal,
.cookielegal-floating,
.cookielegal-settings-button {
	box-sizing: border-box;
	font-family: inherit;
}

.cookielegal-banner[hidden],
.cookielegal-modal[hidden] {
	display: none !important;
}

.cookielegal-banner {
	position: fixed;
	z-index: 99998;
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px;
	color: var(--cookielegal-text, #111827);
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}

.cookielegal-center {
	top: 50%;
	bottom: auto;
	left: 50%;
	right: auto;
	width: min(92vw, 720px);
	transform: translate(-50%, -50%);
	flex-direction: column;
	align-items: stretch;
}

.cookielegal-bottom-left {
	right: auto;
	width: min(92vw, 520px);
	flex-direction: column;
	align-items: stretch;
}

.cookielegal-banner__content p {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.45;
}

.cookielegal-banner__content small {
	display: block;
	color: #4b5563;
	font-size: 12px;
	line-height: 1.35;
}

.cookielegal-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.35;
}

.cookielegal-legal-links a {
	color: var(--cookielegal-primary, #1f6feb);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookielegal-banner__actions,
.cookielegal-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.cookielegal-btn,
.cookielegal-settings-button,
.cookielegal-floating {
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid var(--cookielegal-primary, #1f6feb);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.2;
}

.cookielegal-btn-primary {
	color: #fff;
	background: var(--cookielegal-primary, #1f6feb);
}

.cookielegal-btn-secondary,
.cookielegal-settings-button {
	color: var(--cookielegal-primary, #1f6feb);
	background: #fff;
}

.cookielegal-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.45);
}

.cookielegal-modal__dialog {
	width: min(92vw, 620px);
	max-height: 86vh;
	overflow: auto;
	padding: 24px;
	color: var(--cookielegal-text, #111827);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cookielegal-modal__dialog h2 {
	margin-top: 0;
}

.cookielegal-categories {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.cookielegal-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.cookielegal-floating {
	position: fixed;
	z-index: 99997;
	right: 16px;
	bottom: 16px;
	color: #fff;
	background: var(--cookielegal-primary, #1f6feb);
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.cookielegal-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.cookielegal-cookie-table th,
.cookielegal-cookie-table td {
	padding: 10px;
	border: 1px solid #d1d5db;
	text-align: left;
	vertical-align: top;
}

@media (max-width: 720px) {
	.cookielegal-banner {
		flex-direction: column;
		align-items: stretch;
	}

	.cookielegal-banner__actions,
	.cookielegal-modal__actions {
		justify-content: stretch;
	}

	.cookielegal-btn {
		flex: 1 1 100%;
	}
}
