/* AP Cookie Consent - style bannera */

.ap-cc-root {
	position: fixed;
	z-index: 999999;
	inset: 0;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ap-cc-root[hidden] {
	display: none !important;
}

.ap-cc-root.ap-cc-is-visible {
	pointer-events: auto;
}

.ap-cc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 14, 0.35);
	opacity: 0;
	transition: opacity var(--ap-cc-fade, 450ms) ease;
}

.ap-cc-root.ap-cc--blur .ap-cc-overlay {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ap-cc-root.ap-cc-is-visible .ap-cc-overlay {
	opacity: 1;
}

.ap-cc-panel {
	position: absolute;
	background: var(--ap-cc-bg, #fff);
	color: var(--ap-cc-text, #1f1f1f);
	border-radius: var(--ap-cc-radius, 14px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 28px 30px;
	max-width: var(--ap-cc-max-width, 560px);
	width: calc(100% - 32px);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--ap-cc-fade, 450ms) cubic-bezier(.2,.8,.2,1), transform var(--ap-cc-fade, 450ms) cubic-bezier(.2,.8,.2,1);
}

/* Rozmycie treści strony pod banerem (efekt "szkła") - działa dla każdego układu, nie tylko modala */
.ap-cc-root.ap-cc--blur .ap-cc-panel {
	background: var(--ap-cc-bg-glass, var(--ap-cc-bg, #fff));
	backdrop-filter: blur(var(--ap-cc-blur, 10px));
	-webkit-backdrop-filter: blur(var(--ap-cc-blur, 10px));
}

/* Pełna szerokość (głównie dla wariantu "pasek na dole") */
.ap-cc-root.ap-cc--full-width .ap-cc-panel {
	max-width: calc(100% - 32px);
}

.ap-cc-root.ap-cc-is-visible .ap-cc-panel {
	opacity: 1;
	transform: translateY(0);
}

/* Pasek na dole */
.ap-cc--bottom-bar .ap-cc-panel {
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 24px);
	width: 100%;
	border-radius: var(--ap-cc-radius, 14px) var(--ap-cc-radius, 14px) 0 0;
}
.ap-cc--bottom-bar.ap-cc-is-visible .ap-cc-panel,
.ap-cc--bottom-bar .ap-cc-panel.ap-cc-is-visible {
	transform: translate(-50%, 0);
}
.ap-cc--bottom-bar.ap-cc-is-visible .ap-cc-panel {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Karta w rogu */
.ap-cc--bottom-left .ap-cc-panel {
	left: 20px;
	bottom: 20px;
}
.ap-cc--bottom-right .ap-cc-panel {
	right: 20px;
	bottom: 20px;
	left: auto;
}

/* Modal na środku */
.ap-cc--center-modal .ap-cc-panel {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -46%);
}
.ap-cc--center-modal.ap-cc-is-visible .ap-cc-panel {
	transform: translate(-50%, -50%);
}

.ap-cc-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.1px;
}

.ap-cc-desc {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	opacity: 0.85;
}

.ap-cc-desc a {
	color: var(--ap-cc-primary, #8a6d3b);
	text-decoration: underline;
}

.ap-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.ap-cc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, background-color 150ms ease;
	line-height: 1.2;
}

.ap-cc-btn:hover {
	transform: translateY(-1px);
}

.ap-cc-btn:active {
	transform: translateY(0);
}

.ap-cc-btn--primary {
	background: var(--ap-cc-primary, #8a6d3b);
	color: var(--ap-cc-btn-text, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ap-cc-btn--outline {
	background: transparent;
	border-color: currentColor;
	opacity: 0.85;
}

.ap-cc-btn--ghost {
	background: transparent;
	opacity: 0.65;
}
.ap-cc-btn--ghost:hover {
	opacity: 1;
}

/* Widoki (główny / szczegóły) */
.ap-cc-view--details[hidden],
.ap-cc-view--main[hidden] {
	display: none;
}

.ap-cc-categories {
	max-height: 320px;
	overflow-y: auto;
	margin-bottom: 16px;
	padding-right: 4px;
}

.ap-cc-cat {
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ap-cc-cat:last-child {
	border-bottom: none;
}

.ap-cc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ap-cc-cat__name {
	font-size: 14px;
	font-weight: 600;
}

.ap-cc-cat__desc {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	opacity: 0.75;
}

/* Przełącznik (switch) */
.ap-cc-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
}
.ap-cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.ap-cc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.2);
	transition: 0.25s;
	border-radius: 999px;
}
.ap-cc-slider::before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	transition: 0.25s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ap-cc-switch input:checked + .ap-cc-slider {
	background-color: var(--ap-cc-primary, #8a6d3b);
}
.ap-cc-switch input:checked + .ap-cc-slider::before {
	transform: translateX(18px);
}
.ap-cc-switch--disabled .ap-cc-slider {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Motyw ciemny */
.ap-cc--theme-dark .ap-cc-panel {
	background: #1c1c1e;
	color: #f2f2f2;
}
.ap-cc--theme-dark .ap-cc-cat {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}
.ap-cc--theme-dark .ap-cc-slider {
	background-color: rgba(255, 255, 255, 0.25);
}

/* Pływająca ikona ponownego otwarcia ustawień */
.ap-cc-reopen {
	position: fixed;
	z-index: 999998;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--ap-cc-primary, #8a6d3b);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 250ms ease, transform 250ms ease;
}
.ap-cc-reopen.ap-cc-reopen--visible {
	opacity: 1;
	transform: scale(1);
}
.ap-cc-reopen--bottom-left {
	left: 18px;
}
.ap-cc-reopen--bottom-right {
	right: 18px;
}
.ap-cc-reopen:hover {
	transform: scale(1.06);
}

@media (max-width: 560px) {
	.ap-cc-panel {
		padding: 22px 18px;
	}
	.ap-cc-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.ap-cc-btn {
		width: 100%;
		text-align: center;
	}
}
