/* Cookie Popup Styles */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 10000;
	opacity: 0;
	transform: translateY(100%);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 20px;
}

.cookie-popup.show {
	opacity: 1;
	transform: translateY(0);
}

.cookie-popup.hide {
	opacity: 0;
	transform: translateY(100%);
}

.cookie-popup-content {
	max-width: 900px;
	margin: 0 auto;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	padding: 0;
	overflow: hidden;
}

.cookie-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	z-index: 1;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.cookie-close:hover {
	background: #f5f5f5;
	color: #333;
}

.cookie-header {
	background: linear-gradient(135deg, #b00092 0%, #ff2ddc 100%);
	color: white;
	padding: 25px 30px 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.cookie-header i {
	font-size: 28px;
	color: #67007e;
}

.cookie-header h3 {
	font-size: 24px;
	font-weight: 600;
	margin: 0;
}

.cookie-body {
	padding: 30px;
}

.cookie-body > p {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin: 0 0 25px 0;
}

.cookie-options {
	display: grid;
	gap: 20px;
	margin-bottom: 30px;
}

.cookie-category {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px;
	background: #fafafa;
	transition: all 0.3s ease;
}

.cookie-category:hover {
	border-color: #67007e;
	background: #fff;
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.cookie-category-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.cookie-category-info h4 {
	font-size: 16px;
	font-weight: 600;
	color: #b00092;
	margin: 0 0 5px 0;
}

.cookie-category-info p {
	font-size: 14px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* Custom Toggle Switch */
.cookie-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}

.cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 26px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .cookie-slider {
	background-color: #b00092;
}

input:checked + .cookie-slider:before {
	transform: translateX(24px);
}

input:disabled + .cookie-slider {
	background-color: #67007e;
	opacity: 0.8;
	cursor: not-allowed;
}

input:disabled + .cookie-slider:before {
	background-color: white;
}

.cookie-footer {
	border-top: 1px solid #e5e5e5;
	padding: 25px 30px;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.cookie-links {
	display: flex;
	gap: 20px;
}

.cookie-links a {
	color: #b00092;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.cookie-links a:hover {
	color: #67007e;
	text-decoration: underline;
}

.cookie-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.btn-cookie {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-cookie-reject {
	background: #6c757d;
	color: white;
}

.btn-cookie-reject:hover {
	background: #5a6268;
	transform: translateY(-1px);
}

.btn-cookie-customize {
	background: #f8f9fa;
	color: #b00092;
	border: 2px solid #b00092;
}

.btn-cookie-customize:hover {
	background: #b00092;
	color: white;
	transform: translateY(-1px);
}

.btn-cookie-accept {
	background: #b00092;
	color: white;
}

.btn-cookie-accept:hover {
	background: #ff2ddc;
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

/* Success Notification */
.cookie-success-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10001;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	max-width: 400px;
}

.cookie-success-notification.show {
	opacity: 1;
	transform: translateX(0);
}

.cookie-success-notification.hide {
	opacity: 0;
	transform: translateX(100%);
}

.cookie-success-content {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-left: 4px solid #28a745;
	border-radius: 8px;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cookie-success-content i {
	color: #28a745;
	font-size: 18px;
	flex-shrink: 0;
}

.cookie-success-content span {
	color: #155724;
	font-size: 14px;
	line-height: 1.4;
	flex: 1;
}

.cookie-success-close {
	background: none;
	border: none;
	color: #155724;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.cookie-success-close:hover {
	background: #b8d4b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.cookie-popup {
		padding: 15px;
	}

	.cookie-popup-content {
		border-radius: 12px;
	}

	.cookie-header {
		padding: 20px 20px 15px;
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.cookie-header h3 {
		font-size: 20px;
	}

	.cookie-body {
		padding: 20px;
	}

	.cookie-footer {
		padding: 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
	}

	.cookie-links {
		justify-content: center;
		flex-wrap: wrap;
	}

	.cookie-actions {
		flex-direction: column;
		gap: 10px;
	}

	.btn-cookie {
		width: 100%;
		padding: 12px 20px;
	}

	.cookie-success-notification {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}

	.cookie-category-header {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.cookie-popup {
		padding: 10px;
	}

	.cookie-header {
		padding: 15px;
	}

	.cookie-body {
		padding: 15px;
	}

	.cookie-footer {
		padding: 15px;
	}

	.cookie-category {
		padding: 15px;
	}
}

/* Animation keyframes */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
	.cookie-popup-content {
		border: 2px solid #000;
	}

	.cookie-category {
		border: 2px solid #333;
	}

	.btn-cookie {
		border: 2px solid #000;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.cookie-popup,
	.cookie-success-notification,
	.cookie-slider,
	.cookie-slider:before,
	.btn-cookie {
		transition: none;
	}
}

/* Focus styles for accessibility */
.btn-cookie:focus,
.cookie-close:focus,
.cookie-switch input:focus + .cookie-slider {
	outline: 2px solid #67007e;
	outline-offset: 2px;
}

.cookie-links a:focus {
	outline: 2px solid #67007e;
	outline-offset: 2px;
	border-radius: 3px;
}
