/* Cookie Banner Styles - Default Centered Modal */
:root {
	--cookie-accent-color: #000000;
}

.cookie-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: none;
}

/* Position Classes */
.cookie-banner.position-bottom-center {
	align-items: flex-end;
	justify-content: center;
}

.cookie-banner.position-bottom-left {
	align-items: flex-end;
	justify-content: flex-start;
}

.cookie-banner.position-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
}

.cookie-banner.position-top-center {
	align-items: flex-start;
	justify-content: center;
}

.cookie-banner.position-top-left {
	align-items: flex-start;
	justify-content: flex-start;
}

.cookie-banner.position-top-right {
	align-items: flex-start;
	justify-content: flex-end;
}

.cookie-banner.position-center-center {
	align-items: center;
	justify-content: center;
}

/* Adjust content for non-modal positions */
.cookie-banner.position-bottom-center .cookie-banner-content,
.cookie-banner.position-bottom-left .cookie-banner-content,
.cookie-banner.position-bottom-right .cookie-banner-content,
.cookie-banner.position-top-center .cookie-banner-content,
.cookie-banner.position-top-left .cookie-banner-content,
.cookie-banner.position-top-right .cookie-banner-content {
	margin: 0;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
	max-width: 600px;
}

.cookie-banner-content {
	background: #ffffff;
	border-radius: 6px;
	max-width: 600px;
	width: 100%;
	padding: 30px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 1;
	pointer-events: auto;
}

.cookie-banner-text h3 {
	color: #000;
	font-size: 20px;
	font-weight: 600;
}

.cookie-banner-text p {
	margin: 0 0 25px 0;
	color: #666;
	font-size: 12px;
	line-height: 1.5;
}

.cookie-banner-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.cookie-banner-links {
	display: flex;
	gap: 20px;
	justify-content: center;
	padding-top: 20px;
}

.cookie-banner-link {
	color: #000;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.cookie-banner-link:hover {
	color: #333;
	text-decoration: underline;
}

.cookie-banner-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	flex: 1;
}

.cookie-banner-btn.accept {
	background: var(--cookie-accent-color);
	color: white;
}

.cookie-banner-btn.accept:hover {
	background: var(--cookie-accent-color);
	opacity: 0.8;
}

.cookie-banner-btn.settings {
	background: white;
	color: #000000;
	border: 2px solid #000000;
}

.cookie-banner-btn.settings:hover {
	background: #f5f5f5;
}

.cookie-banner-btn.essential {
	background: var(--cookie-accent-color);
	color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cookie-modal-content {
	background: #ffffff;
	border-radius: 6px;
	max-width: 600px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 30px;
}

.cookie-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}

.cookie-modal-header h3 {
	margin: 0;
	color: #000;
	font-size: 20px;
	font-weight: 600;
}

.cookie-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.cookie-modal-close:hover {
	color: #000;
}

.cookie-categories-wrapper {
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
}

.cookie-categories-wrapper::-webkit-scrollbar {
	width: 6px;
}

.cookie-categories-wrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.cookie-categories-wrapper::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.cookie-categories-wrapper::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.cookie-modal-body {
	padding: 15px;
}

.cookie-category {
	background: #ffffff;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 15px;
}

.cookie-category:last-child {
	margin-bottom: 0;
}

.cookie-category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.cookie-category-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.cookie-category label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: #333;
	margin-bottom: 5px;
}

/* Toggle Switch Styles */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
}

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

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

.toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

input:checked + .toggle-slider {
	background-color: var(--cookie-accent-color);
}

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

input:disabled + .toggle-slider {
	opacity: 0.5;
	cursor: not-allowed;
}

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

.cookie-modal-footer {
	display: flex;
	gap: 15px;
	padding-top: 20px;
}

.cookie-modal-footer .cookie-banner-btn {
	flex: 1;
}

/* Cookie Settings Toggle */
.cookie-settings-toggle {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 45px;
	height: 45px;
	background: var(--cookie-accent-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: all 0.3s ease;
}

/* Toggle Position Classes */
.cookie-settings-toggle.position-bottom-left {
	bottom: 20px;
	left: 20px;
}

.cookie-settings-toggle.position-bottom-right {
	bottom: 20px;
	right: 20px;
	left: auto;
}

.cookie-settings-toggle.position-top-left {
	top: 20px;
	left: 20px;
	bottom: auto;
}

.cookie-settings-toggle.position-top-right {
	top: 20px;
	right: 20px;
	left: auto;
	bottom: auto;
}

.cookie-settings-toggle:hover {
	background: var(--cookie-accent-color);
	opacity: 0.8;
	transform: scale(1.05);
}

.cookie-settings-toggle svg {
	color: white;
	width: 24px;
	height: 24px;
}

/* Responsive Design */
@media (max-width: 767px) {
	.cookie-banner-content,
	.cookie-modal-content {
		padding: 25px 20px;
	}

	.cookie-banner-text h3,
	.cookie-modal-header h3 {
		font-size: 18px;
	}

	.cookie-banner-buttons,
	.cookie-modal-footer {
		flex-direction: column;
	}

	.cookie-banner-btn {
		width: 100%;
	}
}
