/* Pixel Plus – cookie consent banner
 * Saját, modern, semleges design (M21 logó nélkül).
 * A11y: keyboard focus, screen reader friendly.
 */

.pp-cc-modal[hidden] { display: none !important; }
.pp-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483600; /* végtelen, a Sales Plus slide-cart fölött is */
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.55;
}
.pp-cc-dialog {
	background: #ffffff;
	width: min(720px, 96vw);
	margin: 0 auto 20px;
	border-radius: 14px 14px 14px 14px;
	box-shadow: 0 18px 60px rgba(15, 23, 42, .35);
	overflow: hidden;
	animation: pp-cc-up .35s ease both;
}
@keyframes pp-cc-up {
	from { transform: translateY(40px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
@media (min-width: 720px) {
	.pp-cc-modal { align-items: center; }
	.pp-cc-dialog { margin: 0 auto; border-radius: 14px; }
}

.pp-cc-header {
	padding: 18px 22px 0;
}
.pp-cc-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0b1738;
}
.pp-cc-body {
	padding: 12px 22px 0;
}
.pp-cc-body p {
	margin: 6px 0;
	font-size: 14px;
	color: #334155;
}
.pp-cc-policy {
	color: #0b5bd3;
	text-decoration: none;
	font-weight: 600;
}
.pp-cc-policy:hover { text-decoration: underline; }

.pp-cc-settings {
	padding: 14px 22px 4px;
	display: grid;
	gap: 8px;
	margin-top: 4px;
	border-top: 1px solid #f1f5f9;
}
.pp-cc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	background: #f8fafc;
	border-radius: 8px;
}
.pp-cc-label {
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}
.pp-cc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}
.pp-cc-switch input { opacity: 0; width: 0; height: 0; }
.pp-cc-switch span {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cbd5e1;
	border-radius: 24px;
	transition: .2s;
}
.pp-cc-switch span:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: .2s;
	box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.pp-cc-switch input:checked + span { background: #16a34a; }
.pp-cc-switch input:checked + span:before { transform: translateX(20px); }
.pp-cc-switch input:disabled + span { background: #94a3b8; cursor: not-allowed; }
.pp-cc-switch input:disabled + span:before { background: #e2e8f0; }

.pp-cc-footer {
	padding: 14px 22px 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	background: #ffffff;
}
.pp-cc-btn {
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 18px;
	font: 600 14px/1 inherit;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.pp-cc-btn--ghost {
	background: #f1f5f9;
	color: #1e293b;
}
.pp-cc-btn--ghost:hover { background: #e2e8f0; }
.pp-cc-btn--primary {
	background: #0b5bd3;
	color: #fff;
}
.pp-cc-btn--primary:hover { background: #084ab1; }
.pp-cc-btn:focus-visible { outline: 3px solid rgba(11, 91, 211, .35); outline-offset: 2px; }
.pp-cc-btn:active { transform: translateY(1px); }
.pp-cc-btn[hidden] { display: none !important; }

@media (max-width: 600px) {
	.pp-cc-footer { flex-direction: column-reverse; }
	.pp-cc-footer .pp-cc-btn { width: 100%; }
}

/* Lebegő settings gomb */
.pp-cc-fab {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 2147483599;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #0b1738;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(11, 23, 56, .35);
	transition: transform .2s, box-shadow .2s;
}
.pp-cc-fab:hover { transform: scale(1.07); box-shadow: 0 8px 22px rgba(11, 23, 56, .45); }
.pp-cc-fab[hidden] { display: none !important; }
