﻿/* Cookie Banner Styles */
.cookie-banner {
	background: #d6dbde;
	border-bottom: 1px solid #0066cc;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
	z-index: 10000;
	padding: 10px 10px 50px 10px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color:black;
	display:none;
}

	.cookie-banner.show {
		display:block;
	}

	.cookie-banner.hide {
		display:none;
	}

.cookie-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.cookie-text {
	flex: 1;
	min-width: 300px;
}

	.cookie-text p {
		margin: 0;
		color: #333;
		font-size: 1em;
		line-height: 1.5;
	}

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top:70px;
}

.cookie-btn {
	padding: 10px 24px;
	/*min-height:44px;*/
	font-size: 0.8em;
	border: none;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	min-width: 120px;
}

	.cookie-btn:focus {
		outline: 2px solid #0066cc;
		outline-offset: 2px;
	}

.btn-accept-all {
	background: #003399;
	color: white;
}

	.btn-accept-all:hover {
		background: #001181;
	}

.btn-required-only {
	background: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
}

.btn-settings {
	background: transparent;
	color: #003399;
	border: 1px solid #003399;
}

	.cookie-btn:hover {
		background: #001177;
		color: white;
	}

.cookie-link {
	color: #003399;
	text-decoration: underline;
}

	.cookie-link:hover {
		color: #0052a3;
	}

/* Cookie Settings Modal */
.cookie-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 10001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

	.cookie-modal.show {
		display: flex;
	}

	.cookie-modal .modal-title{
		font-size:1.2em;
		font-weight:600;
	}
	
	.cookie-modal .category-header{
		font-size:1em;
		font-weight:600;
	}

.modal-content {
	background: white;
	border-radius: 8px;
	max-width: 600px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 30px;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.modal-title {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.close-btn:hover {
		color: #333;
	}

.cookie-category {
	margin-bottom: 25px;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 6px;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.category-title {
	font-weight: 600;
	color: #333;
	margin: 0;
}

.category-description {
	color: #444;
	font-size: 1.0em;
	line-height: 1.5;
	margin: 0;
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

	.toggle-switch input {
		opacity: 0;
		width: 0;
		height: 0;
	}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 26px;
}

	.slider:before {
		position: absolute;
		content: "";
		height: 20px;
		width: 20px;
		left: 3px;
		bottom: 3px;
		background-color: white;
		transition: 0.3s;
		border-radius: 50%;
	}

input:checked + .slider {
	background-color: #0066cc;
}

	input:checked + .slider:before {
		transform: translateX(24px);
	}

.slider.disabled {
	background-color: #28a745;
	cursor: not-allowed;
}

.modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.cookie-content {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-actions {
		justify-content: stretch;
		
	}

	.cookie-btn {
		flex: 1;
		min-width: auto;
		width:100%;
	}

	.modal-content {
		margin: 10px;
		padding: 20px;
	}

	.cookie-actions {
		flex-direction: column;
	}
}

/* Hidden state */
.cookie-banner-hidden {
	display: none !important;
}

/* Mobile Responsive */
@media (max-width: 867px) {
	.cookie-actions {
		margin-top:10px;
	}
}