/**
 * Mámou zodpovědně Souhlasy – styly cookie lišty.
 * Barvy se přebírají z CSS proměnných (--mzc-accent / --mzc-text / --mzc-bg) podle nastavení.
 * Fallbacky odpovídají paletě webu (korálová).
 */

.mzc-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 99999;
	max-width: 720px;
	margin: 0 auto;
	background: var( --mzc-bg, #fff );
	color: var( --mzc-text, #3e3e40 );
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.18 );
	font-size: 15px;
	line-height: 1.5;
}

.mzc-banner[hidden] {
	display: none;
}

.mzc-banner__inner {
	position: relative;
	padding: 1.25rem 1.5rem;
}

/* Křížek pro zavření v rohu lišty. */
.mzc-banner__close {
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
	background: transparent;
	border: none;
	padding: 0.1rem 0.4rem;
	font-size: 1.6rem;
	line-height: 1;
	color: var( --mzc-text, #3e3e40 );
	opacity: 0.55;
	cursor: pointer;
}

.mzc-banner__close:hover {
	opacity: 1;
}

.mzc-banner__title {
	margin: 0 0 0.5rem;
	padding-right: 1.75rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.mzc-banner__body {
	margin: 0 0 1rem;
}

.mzc-policy-link {
	color: var( --mzc-accent, #d96c68 );
	text-decoration: underline;
}

.mzc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

/* Tlačítka „Přijmout vše" i „Odmítnout vše" jsou vizuálně rovnocenná (požadavek ÚOOÚ). */
.mzc-btn {
	appearance: none;
	cursor: pointer;
	border: 2px solid var( --mzc-accent, #d96c68 );
	border-radius: 8px;
	padding: 0.6rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	transition: opacity 0.15s ease;
}

.mzc-btn--primary {
	background: var( --mzc-accent, #d96c68 );
	color: #fff;
}

.mzc-btn--primary:hover {
	opacity: 0.9;
}

.mzc-btn--link {
	background: transparent;
	border-color: transparent;
	color: var( --mzc-text, #3e3e40 );
	text-decoration: underline;
}

.mzc-categories {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0.5rem 0 1.25rem;
}

.mzc-category {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	cursor: pointer;
}

.mzc-category__toggle {
	margin-top: 0.25rem;
	width: 18px;
	height: 18px;
	accent-color: var( --mzc-accent, #d96c68 );
	flex: 0 0 auto;
}

.mzc-category__text {
	display: flex;
	flex-direction: column;
}

.mzc-category__label {
	font-weight: 600;
}

.mzc-category__desc {
	font-size: 0.88rem;
	opacity: 0.85;
}

/* Rozbalovací seznam konkrétních cookies ve druhé vrstvě (informační povinnost). */
.mzc-cookie-list {
	margin: 0 0 1.25rem;
	font-size: 0.85rem;
}

.mzc-cookie-list summary {
	cursor: pointer;
	font-weight: 600;
	color: var( --mzc-accent, #d96c68 );
}

.mzc-cookie-list p {
	margin: 0.5rem 0 0;
	opacity: 0.85;
	line-height: 1.6;
}

/* Plovoucí tlačítko pro znovuotevření / odvolání souhlasu – barvy dle palety. */
.mzc-reopen {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: var( --mzc-accent, #d96c68 );
	color: var( --mzc-bg, #fff );
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.25 );
	cursor: pointer;
	transition: transform 0.15s ease;
}

.mzc-reopen:hover {
	transform: scale( 1.06 );
}

.mzc-reopen svg {
	width: 30px;
	height: 30px;
}

.mzc-reopen[hidden] {
	display: none;
}

@media ( max-width: 600px ) {
	.mzc-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mzc-btn {
		width: 100%;
		text-align: center;
	}
}
