/* ─── Private Logik Cookie Consent ─────────────────────────────── */

/* Popup card */
.plc-popup {
	position: fixed;
	bottom: 28px;
	left: 28px;
	width: 500px;
	max-width: calc(100vw - 56px);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.07);
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
	color: #1a1a1a;
	/* Start below viewport for slide-in animation */
	transform: translateY(calc(100% + 40px));
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
	pointer-events: none;
}

.plc-popup.plc-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.plc-popup.plc-hiding {
	transform: translateY(calc(100% + 40px));
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.25s ease;
}

/* Inner padding */
.plc-popup-inner {
	padding: 20px 22px 16px;
}

/* Header */
.plc-popup-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 12px;
}

.plc-popup-title {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #111;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.35;
	width: 100%;
}

.plc-popup-logo {
	max-height: 32px;
	max-width: 100px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.plc-icon {
	flex-shrink: 0;
	color: #444;
}


/* Body */
.plc-popup-body {
	color: #555;
	margin-bottom: 16px;
}

.plc-popup-body p {
	margin: 0;
}

.plc-popup-body a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.plc-popup-body a:hover {
	color: #000;
}

.plc-popup-links {
	margin: 10px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	text-align: center;
}

/* Action buttons */
.plc-popup-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.plc-btn {
	flex: 1;
	padding: 11px 16px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.plc-btn:active {
	transform: scale(0.97);
}

.plc-btn:focus-visible {
	outline: 2px solid #0070f3;
	outline-offset: 2px;
}

.plc-btn-deny {
	background: #f2f2f2;
	color: #444;
	border: 1px solid #e0e0e0;
}

.plc-btn-deny:hover {
	background: #e6e6e6;
	color: #111;
}

.plc-btn-accept {
	background: #111111;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.plc-btn-accept:hover {
	background: #2a2a2a;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Footer */
.plc-popup-footer {
	text-align: center;
	font-size: 10.5px;
	color: #bbb;
	letter-spacing: 0.02em;
	padding-top: 2px;
}

/* ─── Fingerprint preferences button ────────────────────────────── */

.plc-preferences-btn {
	position: fixed;
	bottom: 24px;
	left: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #29ABE2;
	color: #0d2137;
	border: none;
	outline: none;
	cursor: pointer;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.15s ease, bottom 0.25s ease;
}

.plc-preferences-btn.plc-visible {
	transform: scale(1);
}

/* Hidden-at-bottom mode: button is tucked below the edge, slides up on hover/focus. */
.plc-preferences-btn.plc-mode-hidden {
	bottom: -34px;
}

.plc-preferences-btn.plc-mode-hidden:hover,
.plc-preferences-btn.plc-mode-hidden:focus-visible {
	bottom: 24px;
}

/* Invisible hover extension below the raised button: keeps the cursor inside
   the hover area while the button travels up, preventing a hover/leave loop. */
.plc-preferences-btn.plc-mode-hidden::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 60px;
}

/* Mobile auto-hide state (toggled by JS). */
.plc-preferences-btn.plc-autohidden {
	transform: scale(0) !important;
}

.plc-preferences-btn:hover {
	background: #1a93cc;
}

.plc-preferences-btn:focus,
.plc-preferences-btn:focus-visible,
.plc-preferences-btn:focus-within {
	outline: none;
	box-shadow: none;
	border: none;
}

/* ─── Cookie policy spacing ─────────────────────────────────────── */

.plc-cookie-policy h2 {
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.plc-cookie-policy p:has(.plc-reset-btn) {
	margin-top: 1.25em;
	margin-bottom: 1.75em;
}

/* ─── Privacy policy page output ────────────────────────────────── */

.plc-policy {
	width: 100%;
}

.plc-policy blockquote {
	border-left: 4px solid #e0e0e0;
	margin: 0 0 1em;
	padding: 0.6em 1.2em;
	background: #f9f9f9;
	border-radius: 0 6px 6px 0;
	font-style: italic;
	color: #555;
}

.plc-policy blockquote p {
	margin: 0;
}

/* ─── Radio button group ─────────────────────────────────────────── */

.plc-form-fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.plc-form-fieldset legend {
	font-size: 13.5px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.plc-form-fieldset legend span {
	color: #c00;
}

.plc-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.plc-radio-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.plc-radio-label input[type="radio"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #1a1a1a;
	cursor: pointer;
	margin: 0;
}

/* ─── Data request form ──────────────────────────────────────────── */

.plc-form-wrap {
	margin-top: 2em;
}

.plc-form-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.plc-form-message--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.plc-form-message--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.plc-request-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.plc-form-row {
	display: flex;
	gap: 14px;
}

.plc-form-row--half .plc-form-field {
	flex: 1;
}

.plc-form-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.plc-form-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: #333;
}

.plc-form-field label span {
	color: #c00;
}

.plc-form-field input[type="text"],
.plc-form-field input[type="email"],
.plc-form-field select,
.plc-form-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 7px;
	font-size: 14px;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.plc-form-field input:focus,
.plc-form-field select:focus,
.plc-form-field textarea:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.plc-form-field textarea {
	resize: vertical;
	min-height: 90px;
}

.plc-form-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 24px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	align-self: flex-start;
	transition: background 0.18s ease;
}

.plc-form-submit:hover {
	background: #333;
}

.plc-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.plc-submit-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: plc-spin 0.7s linear infinite;
}

@keyframes plc-spin {
	to { transform: rotate(360deg); }
}

.plc-form-note {
	font-size: 12px;
	color: #888;
	margin: 0;
}

/* ─── Cookie service accordion ──────────────────────────────────── */

.plc-accordion-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 1.5em;
}

.plc-accordion {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.plc-accordion-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	background: #f9fafb;
	transition: background 0.15s ease;
}

.plc-accordion-summary::-webkit-details-marker {
	display: none;
}

.plc-accordion-summary::marker {
	display: none;
}

.plc-accordion-summary:hover {
	background: #f1f3f5;
}

.plc-accordion-title {
	font-weight: 600;
	font-size: 14px;
	color: #111;
	flex: 1;
}

.plc-accordion-meta {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
}

.plc-accordion-chevron {
	flex-shrink: 0;
	color: #666;
	transition: transform 0.2s ease;
}

.plc-accordion[open] .plc-accordion-chevron {
	transform: rotate(180deg);
}

.plc-accordion[open] .plc-accordion-summary {
	background: #f1f3f5;
	border-bottom: 1px solid #e5e7eb;
}

.plc-accordion-body {
	padding: 16px;
	background: #fff;
}

.plc-accordion-body p {
	margin: 0 0 12px;
	font-size: 14px;
	color: #444;
}

.plc-table-wrap {
	overflow-x: auto;
}

/* ─── Cookie / consent reset button ─────────────────────────────── */

.plc-reset-btn {
	padding: 8px 18px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	transition: background 0.18s ease;
}

.plc-reset-btn:hover {
	background: #333;
}

/* ─── Cookie policy table ────────────────────────────────────────── */

.plc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	margin-bottom: 1em;
}

.plc-cookie-table th {
	background: #f5f5f5;
	text-align: left;
	padding: 8px 10px;
	border: 1px solid #e0e0e0;
	font-weight: 600;
}

.plc-cookie-table td {
	padding: 7px 10px;
	border: 1px solid #e8e8e8;
	vertical-align: top;
}

.plc-cookie-table code {
	background: #f0f0f0;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 12px;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 520px) {
	.plc-popup {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: 100%;
	}

	.plc-preferences-btn {
		left: 12px;
		bottom: 12px;
		width: 48px;
		height: 48px;
	}

	.plc-preferences-btn.plc-mode-hidden {
		bottom: -30px;
	}

	.plc-preferences-btn.plc-mode-hidden:hover,
	.plc-preferences-btn.plc-mode-hidden:focus-visible {
		bottom: 12px;
	}

	.plc-preferences-btn.plc-mode-hidden::after {
		height: 44px;
	}

	.plc-form-row,
	.plc-form-row--half {
		flex-direction: column;
	}

	.plc-cookie-table {
		font-size: 12px;
	}

	.plc-cookie-table th,
	.plc-cookie-table td {
		padding: 6px 8px;
	}
}
