/* Penn Cookie Consent – banner styles. Colours and sizes come from CSS variables set by the plugin settings. */
.pcc, .pcc * { box-sizing: border-box; }
.pcc {
	font-family: var(--pcc-font, inherit);
	font-size: var(--pcc-font-size, 14px);
	line-height: 1.5;
	color: var(--pcc-text, #212121);
	position: relative;
	z-index: var(--pcc-z, 999999);
}
.pcc [hidden] { display: none !important; }
.pcc p { margin: 0 0 .75em; }
.pcc p:last-child { margin-bottom: 0; }
.pcc a, .pcc a:hover, .pcc a:focus, .pcc a:active { color: var(--pcc-link, #1863dc); text-decoration: underline; background: transparent; }
.pcc-btn-primary:hover, .pcc-btn-primary:focus, .pcc-btn-primary:active { background: var(--pcc-btn-bg); color: var(--pcc-btn-text); border-color: var(--pcc-btn-bg); }
.pcc-btn-secondary:hover, .pcc-btn-secondary:focus, .pcc-btn-secondary:active { background: var(--pcc-btn2-bg); color: var(--pcc-btn2-text); border-color: var(--pcc-btn2-border); }
.pcc-btn-link:hover, .pcc-btn-link:focus, .pcc-btn-link:active { background: transparent; color: var(--pcc-link); }
.pcc .pcc-close:hover, .pcc .pcc-close:focus, .pcc .pcc-cat-expand:hover, .pcc .pcc-cat-expand:focus { background: transparent; color: var(--pcc-text); }
.pcc .pcc-cat-expand, .pcc .pcc-cat-title { color: var(--pcc-text); }
.pcc-embed-placeholder .pcc-btn-primary:hover { color: var(--pcc-btn-text); }
.pcc .pcc-title { font-size: 1.2em; font-weight: 700; margin: 0 0 .5em; line-height: 1.3; color: inherit; }
.pcc .pcc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.pcc-lock { overflow: hidden; }

/* Overlay */
.pcc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: var(--pcc-z, 999999); }

/* Buttons */
.pcc-btn {
	font: inherit; font-size: 1em; font-weight: 600; cursor: pointer; border: 1px solid transparent; margin: 0; min-width: 0; min-height: 0;
	padding: .65em 1.2em; border-radius: var(--pcc-btn-radius, 4px); line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none;
	transition: filter .15s ease; -webkit-appearance: none; appearance: none; text-decoration: none; display: inline-block; width: auto;
}
.pcc-btn:hover { filter: brightness(.92); }
.pcc-btn:focus-visible { outline: 2px solid var(--pcc-btn-bg); outline-offset: 2px; }
.pcc-btn-primary { background: var(--pcc-btn-bg); color: var(--pcc-btn-text); border-color: var(--pcc-btn-bg); }
.pcc-btn-secondary { background: var(--pcc-btn2-bg); color: var(--pcc-btn2-text); border-color: var(--pcc-btn2-border); }
.pcc-btn-link { background: transparent; color: var(--pcc-link); border-color: transparent; text-decoration: underline; padding-left: .5em; padding-right: .5em; }
.pcc .pcc-close {
	font: inherit; font-size: 1.6em; line-height: 1; background: transparent; border: 0; cursor: pointer; min-width: 0; min-height: 0; width: auto; box-shadow: none;
	color: inherit; padding: .2em .4em; border-radius: 4px; margin: -.2em -.4em -.2em 0;
}
.pcc .pcc-cat-expand { min-width: 0; min-height: 0; width: auto; box-shadow: none; text-transform: none; letter-spacing: normal; font-size: 1em; }
.pcc .pcc-close:focus-visible { outline: 2px solid var(--pcc-btn-bg); }

/* Notice */
.pcc-notice {
	position: fixed; z-index: calc(var(--pcc-z, 999999) + 1);
	background: var(--pcc-bg); color: var(--pcc-text);
	border: 1px solid var(--pcc-border); border-radius: var(--pcc-radius, 6px);
	box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.pcc-notice-inner { padding: 1.4em; }
.pcc-actions { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; margin-top: 1.1em; }

/* Box layout */
.pcc-layout-box .pcc-notice { width: calc(100% - 32px); max-width: var(--pcc-max-width, 440px); margin: 16px; }
.pcc-layout-box.pcc-pos-bottom-left .pcc-notice { left: 0; bottom: 0; }
.pcc-layout-box.pcc-pos-bottom-right .pcc-notice { right: 0; bottom: 0; }
.pcc-layout-box.pcc-pos-bottom-center .pcc-notice { left: 50%; bottom: 0; transform: translateX(-50%); margin-left: 0; margin-right: 0; }
.pcc-layout-box.pcc-pos-top .pcc-notice { left: 50%; top: 0; transform: translateX(-50%); margin-left: 0; margin-right: 0; }

/* Bar layout */
.pcc-layout-bar .pcc-notice { left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0; }
.pcc-layout-bar.pcc-pos-top .pcc-notice { top: 0; bottom: auto; border-width: 0 0 1px; }
.pcc-layout-bar .pcc-notice-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 1.5em; align-items: center; flex-wrap: wrap; }
.pcc-layout-bar .pcc-notice-inner > .pcc-title { flex: 1 0 100%; margin-bottom: 0; }
.pcc-layout-bar .pcc-desc { flex: 1 1 320px; }
.pcc-layout-bar .pcc-actions { margin-top: 0; flex: 0 0 auto; }

/* Modal layout (centred notice) */
.pcc-layout-modal .pcc-notice { left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: var(--pcc-max-width, 440px); }

/* Preferences panel */
.pcc-modal { position: fixed; inset: 0; z-index: calc(var(--pcc-z, 999999) + 2); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pcc-modal-inner {
	background: var(--pcc-bg); color: var(--pcc-text); width: 100%; max-width: 640px; max-height: calc(100vh - 32px);
	display: flex; flex-direction: column; border-radius: var(--pcc-radius, 6px); box-shadow: 0 12px 40px rgba(0,0,0,.3);
	border: 1px solid var(--pcc-border);
}
.pcc-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; padding: 1.2em 1.4em .8em; }
.pcc-modal-head .pcc-title { margin: 0; }
.pcc-modal-body { padding: 0 1.4em 1em; overflow-y: auto; }
.pcc-modal-foot { display: flex; flex-wrap: wrap; gap: .6em; justify-content: flex-end; padding: 1em 1.4em; border-top: 1px solid var(--pcc-border); }

/* Categories */
.pcc-cats { margin-top: 1em; border-top: 1px solid var(--pcc-border); }
.pcc-cat { border-bottom: 1px solid var(--pcc-border); }
.pcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 0; }
.pcc-cat-expand { font: inherit; font-weight: 600; background: none; border: 0; color: inherit; cursor: pointer; display: flex; align-items: center; gap: .5em; padding: .2em 0; text-align: left; }
.pcc-cat-expand:focus-visible { outline: 2px solid var(--pcc-btn-bg); outline-offset: 2px; border-radius: 3px; }
.pcc-chevron { width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; flex: 0 0 auto; }
.pcc-cat-expand[aria-expanded="true"] .pcc-chevron { transform: rotate(45deg); }
.pcc-cat-body { padding: 0 0 1em 1.1em; font-size: .95em; }
.pcc-always { font-weight: 600; color: var(--pcc-toggle); font-size: .9em; white-space: nowrap; }

/* Switch */
.pcc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.pcc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.pcc-slider { position: absolute; inset: 0; background: #c3c3c3; border-radius: 24px; transition: background .15s ease; }
.pcc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.pcc-switch input:checked + .pcc-slider { background: var(--pcc-toggle); }
.pcc-switch input:checked + .pcc-slider::before { transform: translateX(20px); }
.pcc-switch input:focus-visible + .pcc-slider { outline: 2px solid var(--pcc-btn-bg); outline-offset: 2px; }

/* Cookie table (panel + shortcode) */
.pcc-table-wrap { overflow-x: auto; margin-top: .6em; }
.pcc-table, .pcc-cookie-table table { width: 100%; border-collapse: collapse; font-size: .9em; }
.pcc-table th, .pcc-table td, .pcc-cookie-table th, .pcc-cookie-table td { text-align: left; vertical-align: top; padding: .5em .6em; border-bottom: 1px solid var(--pcc-border, #eee); }
.pcc-table th, .pcc-cookie-table th { font-weight: 700; }
.pcc-table td:first-child { word-break: break-all; min-width: 120px; }
.pcc-table small { opacity: .7; }
.pcc-empty { opacity: .7; font-style: italic; }

/* Revisit button */
.pcc-revisit, .pcc .pcc-revisit {
	position: fixed; bottom: 16px; z-index: var(--pcc-z, 999999); width: 48px; height: 48px; min-width: 0; min-height: 0; padding: 0; margin: 0;
	border-radius: 50%; border: 0; cursor: pointer; box-sizing: border-box; line-height: 0; font-size: 0;
	background: var(--pcc-revisit-bg); color: var(--pcc-revisit-icon); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s ease; -webkit-appearance: none; appearance: none;
}
.pcc-revisit svg { width: 24px; height: 24px; min-width: 24px; display: block; fill: currentColor; }
.pcc-revisit:hover { transform: scale(1.06); }
.pcc-revisit:focus-visible { outline: 2px solid var(--pcc-revisit-bg); outline-offset: 3px; }
.pcc-revisit-bottom-left { left: 16px; }
.pcc-revisit-bottom-right { right: 16px; }

/* Blocked embeds */
.pcc-embed { position: relative; }
.pcc-embed:not(.pcc-embed-active) iframe { display: none; }
.pcc-embed-placeholder { background: #f1f1f1; color: #333; padding: 2.5em 1.5em; text-align: center; border-radius: 6px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; }
.pcc-embed-placeholder p { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.45; color: inherit; }
.pcc-embed-compact .pcc-embed-placeholder { aspect-ratio: auto; flex-direction: row; flex-wrap: wrap; padding: 1em 1.25em; gap: .75em 1em; text-align: left; }
.pcc-embed-compact .pcc-embed-placeholder p { flex: 1 1 14em; font-size: 14px; }
.pcc-embed-active .pcc-embed-placeholder { display: none; }

/* Mobile */
@media (max-width: 600px) {
	.pcc-layout-box .pcc-notice, .pcc-layout-modal .pcc-notice { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none !important; width: 100%; max-width: none; margin: 0; border-radius: var(--pcc-radius, 6px) var(--pcc-radius, 6px) 0 0; }
	.pcc .pcc-btn { flex: 1 1 auto; text-align: center; }
	.pcc-modal { padding: 0; align-items: flex-end; }
	.pcc-modal-inner { max-height: 92vh; border-radius: var(--pcc-radius, 6px) var(--pcc-radius, 6px) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pcc *, .pcc *::before { transition: none !important; }
}
