/* Modern Cookie Consent - It Happens Style */

.modern-cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	background: #ffffff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
	animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-top: 3px solid #8BC34A;
}

@media (min-width: 768px) {
	.modern-cookie-consent {
		bottom: 20px;
		left: 20px;
		right: auto;
		transform: none;
		max-width: 450px;
		border-radius: 12px;
		border: 1px solid #e0e0e0;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (min-width: 768px) {
	@keyframes slideUp {
		from {
			transform: translateY(100%);
			opacity: 0;
		}
		to {
			transform: translateY(0);
			opacity: 1;
		}
	}
}

.modern-cookie-consent.hidden {
	animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
	to {
		transform: translateY(100%);
		opacity: 0;
	}
}

.modern-cookie-consent__container {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 768px) {
	.modern-cookie-consent__container {
		padding: 24px 28px;
	}
}

.modern-cookie-consent__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modern-cookie-consent__toggles {
	display: flex;
	flex-direction: row;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}

@media (max-width: 479px) {
	.modern-cookie-consent__toggles {
		gap: 16px;
	}
}

.modern-cookie-consent__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #333333;
	font-weight: 400;
	font-family: inherit;
}

.modern-cookie-consent__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
}

.modern-cookie-consent__toggle input[type="checkbox"] {
	position: relative;
	width: 48px;
	height: 26px;
	appearance: none;
	background: #dcdcdc;
	border-radius: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.modern-cookie-consent__toggle input[type="checkbox"]:checked {
	background: #8BC34A;
}

.modern-cookie-consent__toggle input[type="checkbox"]:disabled {
	background: #5C9BCC;
	cursor: not-allowed;
	opacity: 1;
}

.modern-cookie-consent__toggle input[type="checkbox"]::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	transition: transform 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.modern-cookie-consent__toggle input[type="checkbox"]:checked::before {
	transform: translateX(22px);
}

.modern-cookie-consent__toggle label {
	cursor: pointer;
	flex: 1;
	margin: 0;
}

.modern-cookie-consent__toggle input[type="checkbox"]:disabled + label {
	cursor: not-allowed;
}

.modern-cookie-consent__toggle-label {
	font-size: 15px;
	color: #333333;
	font-weight: 500;
	font-family: inherit;
}

.modern-cookie-consent__actions {
	display: flex;
	gap: 10px;
	flex-direction: column;
}

@media (min-width: 480px) {
	.modern-cookie-consent__actions {
		flex-direction: row;
	}
}

.modern-cookie-consent__btn {
	flex: 1;
	padding: 14px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	text-align: center;
}

.modern-cookie-consent__btn--primary {
	background: #8BC34A;
	color: white;
	box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
}

.modern-cookie-consent__btn--primary:hover {
	background: #7CB342;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

.modern-cookie-consent__btn--primary:active {
	transform: translateY(0);
}

.modern-cookie-consent__btn--secondary {
	background: white;
	color: #666666;
	border: 2px solid #dcdcdc;
}

.modern-cookie-consent__btn--secondary:hover {
	background: #f5f5f5;
	color: #333333;
	border-color: #bdbdbd;
}

/* Responsive improvements */
@media (max-width: 479px) {
	.modern-cookie-consent__btn {
		padding: 14px 20px;
		font-size: 15px;
	}
}
