.ff-consent-banner,
.ff-consent-banner *,
.ff-consent-modal,
.ff-consent-modal *,
.ff-consent-settings-button {
	box-sizing: border-box;
}

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

.ff-consent-banner {
	position: fixed;
	z-index: 100000;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 25px;
	background: rgba(26, 26, 26, 0.98);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ff-consent-inner {
	display: flex;
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.ff-consent-copy {
	max-width: 760px;
}

.ff-consent-copy h2 {
	display: flex;
	margin: 0 0 12px;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.ff-consent-copy p {
	margin: 0 0 9px;
	color: #dddddd;
	font-size: 15px;
	line-height: 1.6;
}

.ff-consent-copy p:last-child {
	margin-bottom: 0;
}

.ff-consent-copy a {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ff-consent-actions {
	display: grid;
	min-width: 230px;
	gap: 10px;
}

.ff-consent-actions button,
.ff-consent-modal-actions button {
	min-height: 46px;
	padding: 11px 20px;
	border: 2px solid #961981;
	border-radius: 8px;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	font: 600 14px/1.3 Arial, sans-serif;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ff-consent-actions button[data-ff-consent="essential"] {
	border-color: #777777;
}

.ff-consent-actions button[data-ff-consent="all"],
.ff-consent-modal-actions button[data-ff-consent="save"] {
	background: #961981;
	border-color: #961981;
	color: #ffffff;
}

.ff-consent-actions button:hover,
.ff-consent-actions button:focus-visible,
.ff-consent-modal-actions button:hover,
.ff-consent-modal-actions button:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: #961981;
	outline: none;
}

.ff-consent-modal {
	position: fixed;
	z-index: 100002;
	inset: 0;
	display: grid;
	padding: 20px;
	place-items: center;
	background: rgba(0, 0, 0, 0.62);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ff-consent-modal-card {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 34px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	color: #333333;
}

.ff-consent-modal-card h2 {
	margin: 0 40px 8px 0;
	color: #333333;
	font-size: 27px;
	line-height: 1.25;
}

.ff-consent-modal-card > p {
	margin: 0 0 24px;
	color: #666666;
	font-size: 15px;
	line-height: 1.6;
}

.ff-consent-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f2f2f2;
	color: #333333;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
}

.ff-consent-modal-close:hover,
.ff-consent-modal-close:focus-visible {
	background: #961981;
	color: #ffffff;
	outline: none;
}

.ff-consent-option {
	display: flex;
	margin-top: 12px;
	padding: 18px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #f8f9fa;
}

.ff-consent-option strong,
.ff-consent-option span {
	display: block;
}

.ff-consent-option strong {
	margin-bottom: 4px;
	color: #333333;
	font-size: 16px;
}

.ff-consent-option div span {
	color: #666666;
	font-size: 14px;
	line-height: 1.45;
}

.ff-consent-always-on {
	flex: 0 0 auto;
	color: #961981;
	font-size: 13px;
	font-weight: 700;
}

.ff-consent-option input[type="checkbox"] {
	width: 23px;
	height: 23px;
	margin: 0;
	accent-color: #961981;
	cursor: pointer;
}

.ff-consent-modal-actions {
	display: flex;
	margin-top: 24px;
	justify-content: flex-end;
	gap: 12px;
}

.ff-consent-modal-actions button[data-ff-consent="essential"] {
	border-color: #961981;
	color: #961981;
}

.ff-consent-settings-button {
	position: fixed;
	z-index: 99998;
	left: 12px;
	bottom: 12px;
	padding: 8px 12px;
	border: 1px solid #961981;
	border-radius: 7px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
	color: #961981;
	cursor: pointer;
	font: 600 12px/1.3 Arial, sans-serif;
}

.ff-consent-settings-button:hover,
.ff-consent-settings-button:focus-visible {
	background: #961981;
	color: #ffffff;
	outline: none;
}

.ff-consent-modal-open {
	overflow: hidden;
}

@media (max-width: 800px) {
	.ff-consent-banner {
		padding: 20px 15px;
	}

	.ff-consent-inner {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.ff-consent-actions {
		grid-template-columns: 1fr;
		min-width: 0;
	}
}

@media (max-width: 520px) {
	.ff-consent-copy h2 {
		font-size: 18px;
	}

	.ff-consent-copy p {
		font-size: 14px;
	}

	.ff-consent-modal-card {
		padding: 28px 20px 22px;
	}

	.ff-consent-modal-card h2 {
		font-size: 23px;
	}

	.ff-consent-option {
		align-items: flex-start;
	}

	.ff-consent-modal-actions {
		flex-direction: column-reverse;
	}

	.ff-consent-modal-actions button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ff-consent-actions button,
	.ff-consent-modal-actions button {
		transition: none;
	}
}
