/* Overlay */
.cookie-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
}

.cookie-overlay.active {
	display: block;
}

/* Banner Container */
.cookie-banner {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	z-index: 9999;
	box-sizing: border-box;
}

.cookie-banner.active {
	display: flex;
	flex-direction: column;
}

/* Main Screen */
.cookie-main {
	display: none;
	flex-direction: column;
	padding: 30px;
}

.cookie-main.active {
	display: flex;
}

.cookie-banner h2 {
	margin: 0 0 15px 0;
	font-size: 24px;
	color: #333;
}

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

.cookie-buttons {
	display: flex;
	gap: 10px;
}

.cookie-btn {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cookie-btn-customize {
	background: #153350;
	color: #FFF;
}

.cookie-btn-customize:hover {
	background: #C9AB60;
}

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

.cookie-btn-accept:hover {
	background: #C9AB60;
}

/* Customize Screen */
.cookie-customize {
	display: none;
	flex-direction: column;
	max-height: 100%;
}

.cookie-customize.active {
	display: flex;
}

.cookie-customize-content {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 30px;
	padding-bottom: 20px;
	min-height: 0;
	max-height: calc(90vh - 140px);
}

.cookie-customize-footer {
	flex: 0 0 auto;
	padding: 20px 30px;
	border-top: 1px solid #e0e0e0;
	background: white;
	border-radius: 0 0 12px 12px;
}

.cookie-back {
	background: none;
	border: none;
	color: #153350;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.cookie-back:hover {
	text-decoration: underline;
}

.cookie-option {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
}

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

.cookie-option-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.cookie-option-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 10px;
}

.cookie-list {
	font-size: 12px;
	color: #888;
	margin-top: 8px;
	padding-left: 15px;
}

.cookie-list li {
	margin-bottom: 3px;
}

/* Toggle Switch */
.toggle-switch {
	position: relative;
	width: 50px;
	height: 26px;
}

.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: 26px;
}

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

.toggle-switch input:checked + .toggle-slider {
	background-color: #C9AB60;
}

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

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

.cookie-customize .cookie-buttons {
	margin-top: 0;
}

/* Scrollbar styling */
.cookie-customize-content::-webkit-scrollbar {
	width: 8px;
}

.cookie-customize-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.cookie-customize-content::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.cookie-customize-content::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Prevent body scroll */
body.cookie-active {
	overflow: hidden;
}