/* Cookie Consent Banner & Modal Styles - DianaKleknerova.cz */

.cookie-consent-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #ffffff;
	color: #2D3748;
	box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.12);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 18px 24px;
	font-family: inherit;
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-bar.is-visible {
	transform: translateY(0);
}

.cookie-consent-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cookie-consent-content {
	flex: 1 1 500px;
}

.cookie-consent-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 6px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cookie-consent-desc {
	font-size: 0.92rem;
	line-height: 1.5;
	color: #4A5568;
	margin: 0;
}

.cookie-consent-desc a {
	color: #3E5F52;
	text-decoration: underline;
	font-weight: 600;
}

.cookie-consent-desc a:hover {
	color: #5B8172;
}

.cookie-consent-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	white-space: nowrap;
}

.cookie-btn-primary {
	background: #3E5F52;
	color: #ffffff;
	border-color: #3E5F52;
}

.cookie-btn-primary:hover {
	background: #5B8172;
	border-color: #5B8172;
}

.cookie-btn-secondary {
	background: #F0F4F2;
	color: #2D3748;
	border-color: #D1DDD7;
}

.cookie-btn-secondary:hover {
	background: #E2EAE6;
	color: #1A202C;
}

.cookie-btn-link {
	background: transparent;
	color: #4A5568;
	border-color: transparent;
	text-decoration: underline;
	padding: 9px 12px;
}

.cookie-btn-link:hover {
	color: #1A202C;
}

/* Modal for Custom Preferences */
.cookie-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.cookie-modal-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
}

.cookie-modal {
	background: #ffffff;
	color: #2D3748;
	border-radius: 12px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-backdrop.is-visible .cookie-modal {
	transform: scale(1);
}

.cookie-modal-header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid #EDF2F7;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cookie-modal-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1A202C;
}

.cookie-modal-close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #A0AEC0;
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	transition: color 0.2s;
}

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

.cookie-modal-body {
	padding: 20px 24px;
	font-size: 0.92rem;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cookie-category-item {
	background: #F7FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 14px 16px;
}

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

.cookie-category-header strong {
	font-size: 0.98rem;
	color: #1A202C;
}

.cookie-category-desc {
	margin: 0;
	font-size: 0.85rem;
	color: #718096;
}

/* Switch toggle within modal */
.cookie-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
	flex-shrink: 0;
}

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

.cookie-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #CBD5E0;
	transition: .25s ease;
	border-radius: 22px;
}

.cookie-switch-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .25s ease;
	border-radius: 50%;
}

.cookie-switch input:checked + .cookie-switch-slider {
	background-color: #3E5F52;
}

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

.cookie-switch input:disabled + .cookie-switch-slider {
	background-color: #A0AEC0;
	cursor: not-allowed;
	opacity: 0.7;
}

.cookie-modal-footer {
	padding: 16px 24px 20px;
	border-top: 1px solid #EDF2F7;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.cookie-consent-bar {
		padding: 14px 16px;
	}
	.cookie-consent-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.cookie-consent-content {
		flex: none;
		width: 100%;
	}
	.cookie-consent-title {
		font-size: 1rem;
		margin-bottom: 4px;
	}
	.cookie-consent-desc {
		font-size: 0.86rem;
		line-height: 1.45;
	}
	.cookie-consent-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		width: 100%;
	}
	#cookie-btn-accept-all {
		grid-column: 1 / -1;
		order: -1;
	}
	.cookie-btn {
		width: 100%;
		padding: 8px 12px;
		font-size: 0.86rem;
	}
}

@media (max-width: 480px) {
	.cookie-consent-bar {
		padding: 12px 14px;
	}
	.cookie-consent-title {
		font-size: 0.95rem;
	}
	.cookie-consent-desc {
		font-size: 0.82rem;
		line-height: 1.4;
	}
	.cookie-modal-header {
		padding: 16px 16px 12px;
	}
	.cookie-modal-body {
		padding: 16px;
		gap: 12px;
	}
	.cookie-modal-footer {
		padding: 14px 16px 16px;
	}
}
