/* Autometr, baner zgod cookies. */

.am-zgody {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 100000;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.am-zgody[hidden] {
	display: none;
}

.am-zgody-in {
	pointer-events: auto;
	width: 100%;
	max-width: 760px;
	background: #0b0b0c;
	color: #fff;
	border-top: 3px solid #EE0200;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	padding: 22px 24px 20px;
	font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.am-zgody-tytul {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.am-zgody-tekst {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .78);
}

.am-zgody-tekst a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.am-zgody-kategorie {
	margin: 16px 0 0;
	display: grid;
	gap: 10px;
}

.am-zgody-kategorie[hidden] {
	display: none;
}

.am-zgody-kat {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .06);
	font-size: 13.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, .78);
	cursor: pointer;
}

.am-zgody-kat b {
	display: block;
	color: #fff;
	font-weight: 600;
	margin-bottom: 2px;
}

.am-zgody-kat input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: none;
	accent-color: #EE0200;
}

.am-zgody-przyciski {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.am-zgody-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, .35);
	background: transparent;
	color: #fff;
	font: 600 14px/1 Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 12px 18px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.am-zgody-btn:hover,
.am-zgody-btn:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}

.am-zgody-btn--glowny {
	background: #EE0200;
	border-color: #EE0200;
}

.am-zgody-btn--glowny:hover,
.am-zgody-btn--glowny:focus-visible {
	background: #c90200;
	border-color: #c90200;
}

.am-zgody-btn--tekst {
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-left: 6px;
	padding-right: 6px;
}

.am-zgody-btn[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.am-zgody {
		left: 0;
		right: 0;
		bottom: 0;
	}

	.am-zgody-in {
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		max-height: 85vh;
	}

	.am-zgody-przyciski {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.am-zgody-btn--glowny {
		grid-column: 1 / -1;
	}
}
