/* Cookie consent – DAVO CAR autopůjčovna */

.davo-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1040;
	background: #003c77;
	color: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
	padding: 1.25rem 0;
}

.davo-cookie-banner[hidden],
.davo-cookie-backdrop[hidden],
.davo-cookie-modal[hidden] {
	display: none !important;
}

.davo-cookie-banner__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem;
}

.davo-cookie-banner__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: #fff;
}

.davo-cookie-banner__text {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #f2f6fb;
}

.davo-cookie-banner__text a,
.davo-cookie-modal a {
	color: #fff;
	text-decoration: underline;
}

.davo-cookie-banner__text a:hover,
.davo-cookie-modal a:hover {
	color: #80b606;
}

.davo-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.davo-cookie-btn {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.65rem 1.1rem;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.davo-cookie-btn:focus {
	outline: 3px solid #80b606;
	outline-offset: 2px;
}

.davo-cookie-btn--primary {
	background: #80b606;
	border-color: #80b606;
	color: #fff;
}

.davo-cookie-btn--primary:hover {
	background: #6f9e05;
	border-color: #6f9e05;
	color: #fff;
}

.davo-cookie-btn--secondary {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.davo-cookie-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.davo-cookie-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.davo-cookie-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.davo-cookie-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1045;
	background: rgba(0, 0, 0, 0.55);
}

.davo-cookie-modal {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1050;
	width: calc(100% - 1.5rem);
	max-width: 640px;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: #004c97;
	color: #fff;
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.davo-cookie-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.davo-cookie-modal__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
}

.davo-cookie-modal__close {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
}

.davo-cookie-modal__close:focus {
	outline: 3px solid #80b606;
	outline-offset: 2px;
}

.davo-cookie-category {
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 1rem;
	margin-bottom: 1rem;
}

.davo-cookie-category__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.davo-cookie-category__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.davo-cookie-category__status {
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.davo-cookie-category__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #e8f0f8;
}

.davo-cookie-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	user-select: none;
}

.davo-cookie-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.davo-cookie-switch__ui {
	position: relative;
	width: 48px;
	height: 28px;
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.45);
	flex-shrink: 0;
}

.davo-cookie-switch__ui::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	background: #fff;
	transition: transform 0.15s ease;
}

.davo-cookie-switch input:checked + .davo-cookie-switch__ui {
	background: #80b606;
	border-color: #80b606;
}

.davo-cookie-switch input:checked + .davo-cookie-switch__ui::after {
	transform: translateX(20px);
}

.davo-cookie-switch input:focus + .davo-cookie-switch__ui {
	outline: 3px solid #80b606;
	outline-offset: 2px;
}

.davo-cookie-switch input:disabled + .davo-cookie-switch__ui {
	opacity: 0.85;
	cursor: not-allowed;
}

.davo-cookie-switch--disabled {
	cursor: default;
}

body.davo-cookie-modal-open {
	overflow: hidden;
}

@media (max-width: 575.98px) {
	.davo-cookie-banner {
		padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
	}

	.davo-cookie-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.davo-cookie-btn {
		width: 100%;
	}

	.davo-cookie-modal {
		padding: 1.15rem;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		width: 100%;
		max-width: none;
		max-height: 90vh;
	}
}

.davo-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
