/* --- Style banera --- */
#cookie-consent-banner {
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	background-color: #ffffff;
	color: #333;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	border-top: 1px solid #e0e0e0;
	z-index: 99999 !important;
	display: none;
	font-size: 15px;
	line-height: 1.6;
	animation: slideUp 0.5s ease-out forwards;
}

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

#cookie-consent-banner.active {
	display: block;
}
.cookie-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.cookie-text {
	flex-grow: 1;
}
.cookie-text a {
	color: #2e7d32;
	text-decoration: underline;
	font-weight: 500;
}
.cookie-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.cookie-buttons button {
	padding: 10px 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
#consent-accept-all {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
}
#consent-accept-all:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}
#consent-reject-all {
	background-color: #f1f1f1;
	color: #333;
}
#consent-reject-all:hover {
	background-color: #e7e7e7;
}
#consent-settings-btn {
	background: none;
	color: #2e7d32;
	border: none;
	text-decoration: underline;
	padding: 10px;
}

/* --- Style modala ustawień --- */
#cookie-settings-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1001;
	display: none;
	justify-content: center;
	align-items: center;
}
#cookie-settings-modal.active {
	display: flex;
}
.modal-content {
	background-color: white;
	padding: 25px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.modal-content h3 {
	margin: 0 0 15px 0;
	font-size: 20px;
	color: #1b5e20;
}
.modal-content p {
	font-size: 15px;
	color: #444;
	line-height: 1.6;
	margin-bottom: 20px;
}
.setting-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 5px;
	border-bottom: 1px solid #eee;
}
.setting-option:last-of-type {
	border-bottom: none;
}
.setting-option label {
	font-weight: bold;
	color: #333;
}

/* Custom Toggle Switch */
.switch-container {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
}
.switch-container 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.4s;
	border-radius: 28px;
}
.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}
input:checked + .slider {
	background-color: var(--primary);
}
input:disabled + .slider {
	background-color: #e0e0e0;
	cursor: not-allowed;
}
input:checked + .slider:before {
	transform: translateX(22px);
}
.modal-buttons {
	margin-top: 25px;
	display: flex;
	justify-content: flex-end;
}
#consent-save-settings {
	background-color: #4caf50;
	color: white;
	border-color: #4caf50;
}
#consent-save-settings:hover {
	background-color: #45a049;
	border-color: #45a049;
}
        .modal-buttons {
            margin-top: 25px;
            display: flex;
            justify-content: flex-end;
        }
        #consent-save-settings {
            /* Base button styles added for consistency */
            padding: 10px 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: background-color 0.3s, color 0.3s, border-color 0.3s;
            
            /* Primary color styles */
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        #consent-save-settings:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }