/* Pack Lightly Cookie Consent. Brand tokens: teal #124F53, orange #F29B07,
   cream #FCEACF. Bricolage Grotesque (display) / Poppins (UI) / Karla (body). */

.plcc-banner,
.plcc-banner *,
.plcc-modal,
.plcc-modal *,
.plcc-reopen,
.plcc-reopen * { box-sizing: border-box; }

:root {
	--plcc-teal: #124F53;
	--plcc-teal-dark: #0d3b3e;
	--plcc-orange: #F29B07;
	--plcc-orange-dark: #d98905;
	--plcc-cream: #FCEACF;
	--plcc-ink: #1c2b2a;
	--plcc-muted: #5b6b69;
	--plcc-line: #e1e8e6;
	--plcc-radius: 16px;
}

/* ---- banner ---- */
.plcc-banner {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	max-width: 540px;
	box-sizing: border-box;
	overflow-x: hidden;
	background: #fff !important;
	color: var(--plcc-ink) !important;
	border: 1px solid var(--plcc-line);
	border-radius: var(--plcc-radius);
	box-shadow: 0 18px 48px rgba(18, 79, 83, 0.18);
	z-index: 2147483600;
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
	animation: plcc-rise .28s ease both;
}
.plcc-banner__inner { padding: 20px 22px; }
.plcc-banner__title {
	font-family: 'Bricolage Grotesque', Georgia, serif;
	font-size: 19px;
	line-height: 1.2;
	margin: 0 0 6px;
	color: var(--plcc-teal) !important;
	font-weight: 700;
}
.plcc-banner__desc {
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 16px;
	color: var(--plcc-ink) !important;
}
.plcc-banner__policy {
	color: var(--plcc-teal) !important;
	text-decoration: underline;
	white-space: nowrap;
}
.plcc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.plcc-banner__actions .plcc-btn--accept { flex: 1 1 auto; }
.plcc-banner__actions .plcc-btn--quiet { flex: 0 0 auto; }

/* ---- buttons (Accept is the single primary action; Customize is a quiet text
   button that opens the preferences modal, where Reject all lives as a quiet
   text button next to Save) ---- */
.plcc-btn {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 18px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	white-space: nowrap;
}
.plcc-btn--accept {
	background: var(--plcc-orange) !important;
	color: #16261f !important;
	border-color: var(--plcc-orange) !important;
	font-size: 15px;
	padding: 14px 22px;
}
.plcc-btn--accept:hover { background: var(--plcc-orange-dark) !important; border-color: var(--plcc-orange-dark) !important; }
/* Quiet: plain white button so Accept (orange) always stands out most. Used for
   Customize (banner) and Reject all (modal). Neutral text, light border, no fill. */
.plcc-btn--quiet {
	background: #fff !important;
	color: var(--plcc-muted) !important;
	border-color: var(--plcc-line) !important;
	font-weight: 600;
}
.plcc-btn--quiet:hover { color: var(--plcc-ink) !important; background: #fff !important; border-color: var(--plcc-muted) !important; }
.plcc-btn--ghost {
	background: #fff !important;
	color: var(--plcc-teal) !important;
	border-color: var(--plcc-line) !important;
}
.plcc-btn--ghost:hover { border-color: var(--plcc-teal) !important; background: #f4f8f7 !important; }
/* :focus fallback for engines without :focus-visible (older Safari/Firefox), then hide
   the ring for pointer focus on browsers that do support it. */
.plcc-btn:focus { outline: 3px solid rgba(18, 79, 83, .35); outline-offset: 2px; }
.plcc-btn:focus:not(:focus-visible) { outline: none; }
.plcc-btn:focus-visible { outline: 3px solid rgba(18, 79, 83, .35); outline-offset: 2px; }

/* ---- modal ---- */
.plcc-modal-overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0; /* fallback: inset shorthand unsupported on Safari < 14.1 */
	inset: 0;
	background: rgba(13, 40, 41, .55);
	z-index: 2147483601;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.plcc-modal-overlay:not([hidden]) {
	display: flex;
	animation: plcc-fade .2s ease both;
}
.plcc-modal {
	background: #fff !important;
	color: var(--plcc-ink) !important;
	width: 100%;
	max-width: 640px;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	border-radius: var(--plcc-radius);
	overflow: hidden;
	font-family: 'Karla', system-ui, sans-serif;
	box-shadow: 0 24px 60px rgba(13, 40, 41, .35);
}
.plcc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--plcc-line);
}
.plcc-modal__title {
	font-family: 'Bricolage Grotesque', Georgia, serif;
	font-size: 20px;
	margin: 0;
	color: var(--plcc-teal) !important;
	font-weight: 700;
}
.plcc-modal__close {
	background: transparent;
	border: 0;
	color: var(--plcc-muted) !important;
	cursor: pointer;
	padding: 6px;
	border-radius: 8px;
	display: inline-flex;
}
.plcc-modal__close:hover { background: #f1f5f4; color: var(--plcc-teal) !important; }

.plcc-tabs {
	display: flex;
	gap: 4px;
	padding: 10px 18px 0;
	border-bottom: 1px solid var(--plcc-line);
}
.plcc-tab {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 10px 12px;
	cursor: pointer;
	color: var(--plcc-muted) !important;
}
.plcc-tab.is-active { color: var(--plcc-teal) !important; border-bottom-color: var(--plcc-orange) !important; }
.plcc-tab:focus { outline: 3px solid rgba(18, 79, 83, .3); outline-offset: -2px; border-radius: 6px; }
.plcc-tab:focus:not(:focus-visible) { outline: none; }
.plcc-tab:focus-visible { outline: 3px solid rgba(18, 79, 83, .3); outline-offset: -2px; border-radius: 6px; }

.plcc-modal__body { padding: 18px 22px; overflow-y: auto; }
.plcc-panel__intro { font-size: 14px; line-height: 1.6; color: var(--plcc-ink) !important; margin: 0 0 16px; }

/* ---- category toggles ---- */
.plcc-cat {
	border: 1px solid var(--plcc-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fff;
}
.plcc-cat--locked { background: #f6faf9; }
.plcc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plcc-cat__label { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 15px; color: var(--plcc-teal) !important; }
.plcc-cat__always { font-size: 12px; font-weight: 600; color: var(--plcc-muted) !important; text-transform: uppercase; letter-spacing: .04em; }
.plcc-cat--locked input { display: none; }
.plcc-cat__desc { font-size: 13px; line-height: 1.55; color: var(--plcc-muted) !important; margin: 8px 0 0; }

.plcc-switch { position: relative; display: inline-flex; align-items: center; }
.plcc-switch__input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.plcc-switch__track { width: 44px; height: 24px; border-radius: 999px; background: #c7d2cf; transition: background .15s ease; display: inline-block; position: relative; }
.plcc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.plcc-switch__input:checked + .plcc-switch__track { background: var(--plcc-teal); }
.plcc-switch__input:checked + .plcc-switch__track .plcc-switch__thumb { transform: translateX(20px); }
.plcc-switch__input:focus + .plcc-switch__track { outline: 3px solid rgba(18, 79, 83, .35); outline-offset: 2px; }
.plcc-switch__input:focus:not(:focus-visible) + .plcc-switch__track { outline: none; }
.plcc-switch__input:focus-visible + .plcc-switch__track { outline: 3px solid rgba(18, 79, 83, .35); outline-offset: 2px; }

/* ---- cookie detail tables ---- */
.plcc-ck-group { border: 1px solid var(--plcc-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.plcc-ck-group__summary {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px; cursor: pointer; list-style: none;
	font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: var(--plcc-teal) !important;
	background: #f6faf9;
}
.plcc-ck-group__summary::-webkit-details-marker { display: none; }
.plcc-ck-group__count { font-size: 12px; background: var(--plcc-cream); color: var(--plcc-teal) !important; border-radius: 999px; padding: 2px 9px; }
.plcc-ck-list { padding: 6px 16px 14px; }
.plcc-ck { padding: 12px 0; border-bottom: 1px dashed var(--plcc-line); }
.plcc-ck:last-child { border-bottom: 0; }
.plcc-ck__name { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--plcc-ink) !important; margin-bottom: 6px; }
.plcc-ck__meta { display: grid; grid-template-columns: 88px 1fr; gap: 2px 10px; margin: 0; }
.plcc-ck__meta dt { font-size: 12px; color: var(--plcc-muted) !important; font-weight: 600; }
.plcc-ck__meta dd { font-size: 12.5px; color: var(--plcc-ink) !important; margin: 0; }

.plcc-about-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plcc-about-links a { color: var(--plcc-teal) !important; text-decoration: underline; font-weight: 600; font-size: 14px; }

/* ---- modal footer ---- */
.plcc-modal__foot {
	display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
	padding: 16px 22px;
	border-top: 1px solid var(--plcc-line);
	background: #fff;
}
.plcc-modal__foot .plcc-btn { flex: 1 1 auto; }
.plcc-modal__foot .plcc-btn--quiet { flex: 0 0 auto; margin-right: auto; }

/* ---- floating re-open ---- */
.plcc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483500;
	align-items: center;
	gap: 8px;
	background: var(--plcc-teal) !important;
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px 10px 12px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(18, 79, 83, .28);
}
.plcc-reopen:hover { background: var(--plcc-teal-dark) !important; }
.plcc-reopen__label { line-height: 1; }
.plcc-reopen:focus { outline: 3px solid var(--plcc-orange); outline-offset: 2px; }
.plcc-reopen:focus:not(:focus-visible) { outline: none; }
.plcc-reopen:focus-visible { outline: 3px solid var(--plcc-orange); outline-offset: 2px; }

body.plcc-modal-open { overflow: hidden; }

@keyframes plcc-rise { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes plcc-rise-mobile { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes plcc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 560px) {
	.plcc-banner { left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none; border-radius: 18px 18px 0 0; animation-name: plcc-rise-mobile; }
	.plcc-banner__actions .plcc-btn--accept { flex: 1 1 100%; }
	.plcc-banner__actions .plcc-btn--quiet { flex: 1 1 100%; }
	.plcc-reopen__label { display: none; }
	.plcc-reopen { padding: 12px; }
	.plcc-modal__foot .plcc-btn { flex: 1 1 100%; }
	.plcc-modal__foot .plcc-btn--quiet { flex: 1 1 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.plcc-banner, .plcc-modal-overlay { animation: none; }
	.plcc-switch__track, .plcc-switch__thumb, .plcc-btn { transition: none; }
}
