/* PeTreaba Legal — banner cookie-uri. Culorile vin din temă (cu valori de rezervă). */
.ptl-banner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 100000;
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 24px;
	border: 1px solid var(--cs-border, #e6e2da);
	border-radius: var(--cs-r-md, 10px);
	background: var(--cs-surface, #fff);
	box-shadow: 0 12px 40px rgba(16, 32, 24, .18);
	color: var(--cs-text, #1c2a24);
	font-family: var(--cs-font, inherit);
	font-size: 14px;
	line-height: 1.55;
}
.ptl-banner[hidden] { display: none; }
.ptl-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.ptl-banner__text { flex: 1 1 420px; }
.ptl-banner__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.ptl-banner p { margin: 0; color: var(--cs-muted, #646c67); }
.ptl-banner a,
.ptl-dialog a { color: var(--cs-brand, #1b3f35); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ptl-banner__actions,
.ptl-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ptl-banner__actions { flex: 0 1 auto; }

/* Toate butoanele de alegere arată la fel: refuzul e la fel de ușor ca acceptul. */
.ptl-btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid var(--cs-brand, #1b3f35);
	border-radius: var(--cs-r-sm, 6px);
	background: var(--cs-brand, #1b3f35);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.ptl-btn:hover { background: var(--cs-brand-hover, #24503f); border-color: var(--cs-brand-hover, #24503f); }
.ptl-btn:focus-visible,
.ptl-dialog__close:focus-visible,
.ptl-switch:focus-visible,
.ptl-link-btn:focus-visible { outline: 3px solid var(--cs-accent, #e8642e); outline-offset: 2px; }

/* Fereastra de setări */
.ptl-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--cs-r-md, 10px);
	background: var(--cs-surface, #fff);
	color: var(--cs-text, #1c2a24);
	font-family: var(--cs-font, inherit);
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 24px 64px rgba(16, 32, 24, .3);
}
.ptl-dialog::backdrop { background: rgba(16, 32, 24, .45); }
.ptl-dialog__form { padding: 24px; }
.ptl-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ptl-dialog__title { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.ptl-dialog__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.ptl-dialog__close:hover { background: var(--cs-surface-warm, #faf9f6); }
.ptl-dialog__intro { margin: 0 0 16px; color: var(--cs-muted, #646c67); }
.ptl-cats { margin: 0 0 16px; padding: 0; list-style: none; }
.ptl-cat { padding: 14px 0; border-top: 1px solid var(--cs-border, #e6e2da); }
.ptl-cat:last-child { border-bottom: 1px solid var(--cs-border, #e6e2da); }
.ptl-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.ptl-cat__label { font-size: 15px; font-weight: 700; }
.ptl-cat__desc { margin: 6px 0 0; color: var(--cs-muted, #646c67); font-size: 13px; }

/* Comutator accesibil (checkbox nativ, desenat ca switch) */
.ptl-switch {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: #b9bfb9;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background .2s ease;
}
.ptl-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
.ptl-switch:checked { background: var(--cs-brand, #1b3f35); }
.ptl-switch:checked::after { transform: translateX(20px); }
.ptl-switch:disabled { opacity: .55; cursor: not-allowed; }
.ptl-dialog__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: 13px; }

/* Buton de tip link (subsol, pagini) */
.ptl-link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Tabelul din Politica de cookie-uri */
.ptl-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.ptl-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.ptl-table th,
.ptl-table td { padding: 10px 12px; border-bottom: 1px solid var(--cs-border, #e6e2da); text-align: left; vertical-align: top; }
.ptl-table th { background: var(--cs-surface-warm, #faf9f6); font-weight: 700; }
.ptl-table code { font-size: 12px; word-break: break-word; }

@media (max-width: 640px) {
	.ptl-banner { right: 8px; bottom: 8px; left: 8px; padding: 16px; }
	.ptl-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
	.ptl-banner__actions .ptl-btn { padding: 0 6px; font-size: 13px; white-space: normal; }
	.ptl-dialog__form { padding: 18px; }
	.ptl-dialog__actions .ptl-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ptl-switch,
	.ptl-switch::after { transition: none; }
}
