/* Periwinkle Inn - legal links row, cookie consent banner and preferences modal (privacy_footer.php) */

.pc-root [hidden], .pc-root[hidden] { display: none !important; }

/* Legal links row under the footer */
.pc-legal {
	font-family: 'Josefin Sans', Arial, sans-serif;
	font-size: 13px;
	line-height: 22px;
	letter-spacing: 1px;
	color: #333;
	text-align: center;
	padding: 0 15px 22px;
}
.pc-legal a, .pc-linkbtn {
	color: #000;
	text-decoration: none;
	font: inherit;
	letter-spacing: inherit;
}
.pc-legal a:hover, .pc-linkbtn:hover { text-decoration: underline; }
.pc-legal p { margin: 0; }
.pc-legal img { vertical-align: middle; border: 0; margin-top: -3px; }
/* separators between links are added here, so the CP editor only needs the links */
.pc-legal a ~ a::before {
	content: '|';
	display: inline-block;
	margin: 0 9px 0 4px;
	color: #777;
	text-decoration: none;
}
/* Privacy / Cookie Consent Bar switched off in CP: hide the links that open it */
.pc-legal.pc-off a[href$="#privacy-choices"], .pc-legal.pc-off a[href$="#cookie-settings"] { display: none; }
.pc-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.pc-optout-icon { width: 26px; height: 12px; }

/* Banner */
.pc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: #fff;
	border-top: 3px solid #1C2026;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
	padding: 18px 30px;
	font-family: 'Josefin Sans', Arial, sans-serif;
	text-align: left;
}
.pc-banner-inner {
	max-width: 1150px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}
.pc-banner-text { margin: 0; font-size: 15px; line-height: 1.5; color: #1C2026; }
.pc-banner-text a { color: #1C2026; text-decoration: underline; }
.pc-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

.pc-btn {
	font-family: 'Josefin Sans', Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 11px 20px 9px;
	border-radius: 3px;
	border: 2px solid #1C2026;
	cursor: pointer;
	white-space: nowrap;
}
.pc-btn-outline { background: #fff; color: #1C2026; }
.pc-btn-outline:hover { background: #f0eee8; }
.pc-btn-solid { background: #1C2026; color: #fff; }
.pc-btn-solid:hover { background: #3a414c; border-color: #3a414c; }
.pc-btn:focus-visible, .pc-linkbtn:focus-visible, .pc-close:focus-visible, .pc-switch:focus-visible {
	outline: 3px solid #5b8def;
	outline-offset: 2px;
}

/* Preferences modal */
.pc-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: 'Josefin Sans', Arial, sans-serif;
	text-align: left;
}
.pc-modal-box {
	background: #fff;
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 6px;
	padding: 26px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: #1C2026;
}
.pc-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.pc-modal-head h2 { margin: 0; font-size: 22px; font-weight: bold; color: #1C2026; }
.pc-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.pc-close:hover { color: #000; }
.pc-muted { font-size: 14px; line-height: 1.5; color: #555; margin: 10px 0 0; }
.pc-options { margin-top: 20px; }
.pc-option {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
.pc-option strong { display: block; font-size: 15px; }
.pc-option small { display: block; font-size: 13px; line-height: 1.45; color: #666; margin-top: 3px; }
.pc-option-optout { border-top: 1px solid #ccc; border-bottom: 0; margin-top: 8px; padding-top: 16px; }
.pc-modal-foot { margin-top: 22px; text-align: right; }

/* Toggle switch */
.pc-switch {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	position: relative;
	width: 44px;
	height: 24px;
	margin: 2px 0 0;
	border-radius: 12px;
	background: #bbb;
	cursor: pointer;
	transition: background 0.2s;
}
.pc-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}
.pc-switch:checked { background: #1C2026; }
.pc-switch:checked::after { transform: translateX(20px); }
.pc-switch:disabled { opacity: 0.55; cursor: not-allowed; }

/* Mobile site (fixed 1080px viewport, so everything is scaled up) */
.pc-legal.pc-mobile { font-size: 26px; line-height: 52px; padding: 0 30px 40px; }
.pc-legal.pc-mobile img { width: 50px; height: 23px; }
.pc-legal.pc-mobile a ~ a::before { margin: 0 16px 0 8px; }
.pc-mobile .pc-banner { padding: 35px 40px; }
.pc-mobile .pc-banner-inner { flex-direction: column; align-items: stretch; gap: 30px; }
.pc-mobile .pc-banner-text { font-size: 30px; }
.pc-mobile .pc-banner-actions { flex-direction: column; gap: 18px; }
.pc-mobile .pc-btn { font-size: 30px; padding: 26px 20px 22px; }
.pc-mobile .pc-modal-box { max-width: 1000px; padding: 45px; }
.pc-mobile .pc-modal-head h2 { font-size: 44px; }
.pc-mobile .pc-close { font-size: 60px; }
.pc-mobile .pc-muted { font-size: 28px; }
.pc-mobile .pc-option { padding: 26px 0; gap: 30px; }
.pc-mobile .pc-option strong { font-size: 32px; }
.pc-mobile .pc-option small { font-size: 26px; }
.pc-mobile .pc-switch { width: 88px; height: 48px; border-radius: 24px; }
.pc-mobile .pc-switch::after { width: 40px; height: 40px; top: 4px; left: 4px; }
.pc-mobile .pc-switch:checked::after { transform: translateX(40px); }

/* Legal pages */
.pc-page h1 { margin-bottom: 6px; }
.pc-page .pc-updated { color: #777; font-style: italic; margin-top: 0; }
.pc-page h2 { font-size: 22px; margin: 28px 0 8px; }
.pc-page ul { margin: 8px 0 8px 22px; padding: 0; }
.pc-page li { margin-bottom: 6px; }
.pc-page table.pc-cookies { border-collapse: collapse; width: 100%; margin: 10px 0; }
.pc-page table.pc-cookies th, .pc-page table.pc-cookies td { border: 1px solid #ccc; padding: 8px; text-align: left; vertical-align: top; }
.pc-page table.pc-cookies th { background: #1C2026; color: #fff; }
.pc-page .pc-inline-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
