/* Dio GDPR Cookie Consent Banner */
.dio-gdpr-banner {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 999999;
	max-width: 380px;
	width: calc(100% - 40px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	animation: dioGdprSlideIn 0.4s ease-out;
}

.dio-gdpr-banner__inner {
	background: #ffffff;
	color: #333333;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.dio-gdpr-banner__text {
	margin: 0 0 16px;
	color: #555555;
}

.dio-gdpr-banner__link {
	color: #00234f;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dio-gdpr-banner__link:hover {
	color: #003a80;
}

.dio-gdpr-banner__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dio-gdpr-btn {
	flex: 1;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.dio-gdpr-btn:active {
	transform: scale(0.97);
}

.dio-gdpr-btn--essentials {
	background: #dde7f3;
	color: #00234f;
}

.dio-gdpr-btn--essentials:hover {
	background: #c9d8ec !important;
}

.dio-gdpr-btn--accept {
	background: #00234f;
	color: #fff;
}

.dio-gdpr-btn--accept:hover {
	background: #003a80 !important;
}

/* Save preferences button */
.dio-gdpr-btn--save {
	background: #00234f;
	color: #fff;
	flex: 1;
}

.dio-gdpr-btn--save:hover {
	background: #003a80 !important;
}

/* Back link */
.dio-gdpr-back {
	display: inline-block;
	margin-bottom: 12px;
	color: #555;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.dio-gdpr-back:hover {
	color: #00234f;
}

.dio-gdpr-back::before {
	content: "\2190\00a0";
}

/* Cookie Settings Panel */
.dio-gdpr-settings {
	display: none;
	margin-bottom: 16px;
}

.dio-gdpr-settings--open {
	display: block;
}

.dio-gdpr-setting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.dio-gdpr-setting:last-child {
	border-bottom: none;
}

.dio-gdpr-setting__info {
	flex: 1;
}

.dio-gdpr-setting__label {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.dio-gdpr-setting__desc {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

/* Toggle switch */
.dio-gdpr-toggle {
	position: relative;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin-left: 12px;
}

.dio-gdpr-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.dio-gdpr-toggle__slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.2s;
}

.dio-gdpr-toggle__slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.dio-gdpr-toggle input:checked + .dio-gdpr-toggle__slider {
	background: #00234f;
}

.dio-gdpr-toggle input:checked + .dio-gdpr-toggle__slider::before {
	transform: translateX(20px);
}

.dio-gdpr-toggle input:disabled + .dio-gdpr-toggle__slider {
	background: #00234f;
	opacity: 0.6;
	cursor: not-allowed;
}

.dio-gdpr-toggle input:disabled:checked + .dio-gdpr-toggle__slider::before {
	transform: translateX(20px);
}

/* Slide-out animation */
.dio-gdpr-banner--hiding {
	animation: dioGdprSlideOut 0.3s ease-in forwards;
}

@keyframes dioGdprSlideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dioGdprSlideOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(20px);
	}
}

/* Mobile: full-width bottom banner */
@media (max-width: 480px) {
	.dio-gdpr-banner {
		bottom: 0;
		left: 0;
		max-width: 100%;
		width: 100%;
	}

	.dio-gdpr-banner__inner {
		border-radius: 12px 12px 0 0;
	}
}
