/* Planet Fitness Consent — banner + preferences modal.
   Every rule is scoped under #pfc-root and forces the properties the host
   theme (Elementor) likes to override: heading colour/size, button background,
   border-radius. Without this the theme repaints headings blue and restyles
   the <button> toggles. */

@font-face {
	font-family: 'Gilroy';
	src: url('https://www.planetfitness.co.za/wp-content/uploads/2023/12/Gilroy-Regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Gilroy';
	src: url('https://www.planetfitness.co.za/wp-content/uploads/2023/12/Gilroy-Bold_0.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

#pfc-root,
#pfc-root * { box-sizing: border-box; }

#pfc-root {
	font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #fff;
	--pfc-cookie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 1 1 0 0 1-1-1c-2 0-3-2-3-3a1 1 0 0 0-1-1c-2 0-3-1-3-3a1 1 0 0 0-1-1z'/%3E%3Cpath d='M8 13v.01M12 17v.01M15 12v.01M11 9v.01M16 16v.01'/%3E%3C/svg%3E");
	--pfc-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	--pfc-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.3c.4-1.8 2.9-1.8 3.3 0a1.7 1.7 0 0 0 2.6 1.1c1.5-.9 3.3.8 2.4 2.4a1.7 1.7 0 0 0 1 2.6c1.8.4 1.8 2.9 0 3.3a1.7 1.7 0 0 0-1 2.6c.9 1.5-.8 3.3-2.4 2.4a1.7 1.7 0 0 0-2.6 1c-.4 1.8-2.9 1.8-3.3 0a1.7 1.7 0 0 0-2.6-1c-1.5.9-3.3-.8-2.4-2.4a1.7 1.7 0 0 0-1-2.6c-1.8-.4-1.8-2.9 0-3.3a1.7 1.7 0 0 0 1-2.6c-.9-1.5.8-3.3 2.4-2.4 1 .6 2.3.1 2.6-1z'/%3E%3Cpath d='M9 12a3 3 0 1 0 6 0 3 3 0 0 0-6 0'/%3E%3C/svg%3E");
	--pfc-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a12 12 0 0 0 8.5 3 12 12 0 0 1-8.5 15 12 12 0 0 1-8.5-15 12 12 0 0 0 8.5-3'/%3E%3C/svg%3E");
	--pfc-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M15 9a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

#pfc-root .pfc-hidden { display: none !important; }

/* ---- Icons (CSS-masked SVG, tinted by `color`) ---- */
#pfc-root .pfc-i {
	display: inline-block;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;        mask-repeat: no-repeat;
	-webkit-mask-position: center;         mask-position: center;
	-webkit-mask-size: contain;            mask-size: contain;
	vertical-align: -0.125em;
}
#pfc-root .pfc-i-cookie { -webkit-mask-image: var(--pfc-cookie); mask-image: var(--pfc-cookie); }
#pfc-root .pfc-i-x      { -webkit-mask-image: var(--pfc-x);      mask-image: var(--pfc-x); }
#pfc-root .pfc-i-gear   { -webkit-mask-image: var(--pfc-gear);   mask-image: var(--pfc-gear); }
#pfc-root .pfc-i-shield { -webkit-mask-image: var(--pfc-shield); mask-image: var(--pfc-shield); }
#pfc-root .pfc-i-chart  { -webkit-mask-image: var(--pfc-chart);  mask-image: var(--pfc-chart); }
#pfc-root .pfc-i-chevron { -webkit-mask-image: var(--pfc-chevron); mask-image: var(--pfc-chevron); transition: transform .15s; }
#pfc-root { --pfc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* ---- Shared card ---- */
#pfc-root .pfc-card {
	background: #1B1D24 !important;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0,0,0,.45);
	position: relative;
}
#pfc-root .pfc-h2 { font-weight: 700 !important; font-size: 21px !important; line-height: 1.25; margin: 0 0 8px !important; color: #fff !important; text-transform: capitalize !important; }
#pfc-root .pfc-h3 { font-weight: 700 !important; font-size: 17px !important; line-height: 1.3; margin: 0 0 5px !important; color: #fff !important; text-transform: capitalize !important; }
#pfc-root .pfc-p  { font-weight: 400 !important; font-size: 14px !important; line-height: 1.55 !important; margin: 0 !important; color: #fff !important; }
#pfc-root .pfc-link { color: #086CF6 !important; text-decoration: none !important; }
#pfc-root .pfc-link:hover { text-decoration: underline !important; }
#pfc-root .pfc-x {
	position: absolute; top: 18px; right: 20px;
	background: none !important; border: 0 !important; box-shadow: none !important;
	padding: 4px; cursor: pointer; color: #9AA0AC; font-size: 22px; line-height: 1;
}
#pfc-root .pfc-x:hover { color: #fff; }

/* ---- Buttons ---- */
#pfc-root .pfc-btn {
	font-family: inherit !important; font-weight: 700 !important; font-size: 15px !important;
	border-radius: 30px !important; padding: 13px 22px !important; cursor: pointer;
	border: 1px solid rgba(255,255,255,.16) !important; background: transparent !important;
	color: #fff !important; box-shadow: none !important; text-transform: none !important;
	-webkit-appearance: none; appearance: none; width: auto;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	transition: background .15s, border-color .15s, transform .05s;
}
#pfc-root .pfc-btn:hover { background: rgba(255,255,255,.06) !important; }
#pfc-root .pfc-btn:active { transform: scale(.98); }
#pfc-root .pfc-btn-primary { background: #086CF6 !important; border-color: #086CF6 !important; }
#pfc-root .pfc-btn-primary:hover { background: #0a78ff !important; }
#pfc-root .pfc-btn[data-pfc-action="customize"] { font-weight: 400 !important; }
#pfc-root .pfc-btn .pfc-i { font-size: 18px; }

/* ---- Banner (full-width top bar, slides down) ---- */
#pfc-root .pfc-banner {
	position: fixed; z-index: 2147483600;
	top: 0; left: 0; right: 0; bottom: auto;
	background: #1B1D24 !important;
	box-shadow: 0 10px 40px rgba(0,0,0,.45);
	padding: 18px 30px;
	display: flex; align-items: center; gap: 28px;
	animation: pfc-slidedown .35s ease both;
}
@keyframes pfc-slidedown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
#pfc-root .pfc-banner-copy { flex: 1 1 auto; }
#pfc-root .pfc-banner-copy .pfc-p { max-width: 980px; font-size: 16px !important; }
#pfc-root .pfc-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
#pfc-root .pfc-actions .pfc-btn { white-space: nowrap; }

/* ---- "Always Active" chip (replaces the Necessary toggle) ---- */
#pfc-root .pfc-chip {
	flex: 0 0 auto; align-self: flex-start; margin-top: 4px;
	font-size: 12px; font-weight: 700; color: #086CF6;
	background: transparent; border: 1px solid #086CF6; border-radius: 25px;
	padding: 5px 12px; white-space: nowrap;
}

/* ---- Modal ---- */
#pfc-root .pfc-overlay {
	position: fixed; inset: 0; z-index: 2147483601;
	background: rgba(0,0,0,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 18px; overflow-y: auto;
}
#pfc-root .pfc-modal-card { width: 100%; max-width: 560px; padding: 24px; margin: auto; }
#pfc-root .pfc-modal-title { font-size: 21px !important; margin-bottom: 12px !important; }
#pfc-root .pfc-intro { color: #AEB4BE !important; font-size: 13.5px !important; line-height: 1.55 !important; margin: 0 0 20px !important; }

#pfc-root .pfc-cat {
	background: #0F1116 !important; border-radius: 16px; padding: 16px 18px;
	display: grid; grid-template-columns: auto 1fr auto;
	column-gap: 14px; row-gap: 6px; align-items: start; margin-bottom: 12px;
}
#pfc-root .pfc-cat-last { margin-bottom: 20px; }
#pfc-root .pfc-cat .pfc-ic   { grid-column: 1; grid-row: 1; }
#pfc-root .pfc-cat .pfc-h3   { grid-column: 2; grid-row: 1; align-self: center; }
#pfc-root .pfc-cat .pfc-tg,
#pfc-root .pfc-cat .pfc-chip { grid-column: 3; grid-row: 1; }
#pfc-root .pfc-cat-desc { grid-column: 2 / -1; grid-row: 2; }  /* desktop: indented under the title */

/* ---- Provider accordion ---- */
#pfc-root .pfc-prov { grid-column: 2 / -1; grid-row: 3; margin-top: 2px; }
#pfc-root .pfc-prov-toggle {
	background: none !important; border: 0 !important; box-shadow: none !important;
	padding: 0; cursor: pointer; color: #086CF6 !important;
	font-family: inherit; font-weight: 400; font-size: 13.5px;
	display: inline-flex; align-items: center; gap: 6px;
	-webkit-appearance: none; appearance: none;
}
#pfc-root .pfc-prov-toggle .pfc-i-chevron { font-size: 16px; }
#pfc-root .pfc-prov-toggle[aria-expanded="true"] .pfc-i-chevron { transform: rotate(180deg); }
#pfc-root .pfc-prov-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#pfc-root .pfc-prov-list[hidden] { display: none; }
#pfc-root .pfc-prov-chip {
	font-size: 12.5px; color: #AEB4BE; background: transparent;
	border: 1px solid rgba(255,255,255,.16); border-radius: 25px;
	padding: 5px 12px; white-space: nowrap;
}
#pfc-root .pfc-ic {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
	background: #101A2C !important; color: #086CF6;
	display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ---- Toggle ---- */
#pfc-root .pfc-tg {
	flex: 0 0 auto; width: 46px; height: 26px; border-radius: 25px !important;
	background: #1B1D24 !important; border: 1px solid rgba(255,255,255,.12) !important;
	box-shadow: none !important; padding: 0 !important; position: relative; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	transition: background .15s; margin-top: 4px;
}
#pfc-root .pfc-tg.on { background: #086CF6 !important; border-color: #086CF6 !important; }
#pfc-root .pfc-tg .pfc-kn {
	position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
	border-radius: 50%; background: #fff; transition: left .15s;
}
#pfc-root .pfc-tg.on .pfc-kn { left: 23px; }
#pfc-root .pfc-tg.lock { cursor: not-allowed; }
#pfc-root .pfc-tg.lock .pfc-kn { background: #fff; left: 13px; }

#pfc-root .pfc-modal-actions { display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 18px; }
#pfc-root .pfc-modal-actions .pfc-btn { flex: 1; }

/* ---- Footer re-open chip (injected before the "Powered by" widget).
   Lives OUTSIDE #pfc-root, so these rules are unscoped + forced. ---- */
.pfc-footer-trigger { text-align: center !important; margin: 0 0 14px !important; }
.pfc-footer-trigger button {
	font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 13px !important; font-weight: 400 !important; line-height: 1 !important;
	color: #fff !important; background: transparent !important;
	border: 1px solid rgba(255,255,255,.25) !important; border-radius: 25px !important;
	padding: 8px 16px !important; cursor: pointer !important;
	display: inline-flex !important; align-items: center !important; gap: 8px !important;
	box-shadow: none !important; text-transform: none !important; width: auto !important;
	-webkit-appearance: none !important; appearance: none !important;
}
.pfc-footer-trigger button:hover { border-color: #086CF6 !important; color: #086CF6 !important; }
.pfc-footer-trigger svg { display: inline-block; flex: 0 0 auto; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
	#pfc-root .pfc-banner { flex-direction: column; align-items: stretch; padding: 18px 16px; gap: 14px; }
	#pfc-root .pfc-actions { flex-wrap: nowrap; }
	#pfc-root .pfc-actions .pfc-btn { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 600px) {
	/* Modal: anchor to top so tall content scrolls instead of clipping */
	#pfc-root .pfc-overlay { padding: 10px; align-items: flex-start; }
	#pfc-root .pfc-modal-card { padding: 20px 16px; margin: 0 auto; }
	#pfc-root .pfc-modal-title { font-size: 19px !important; }
	#pfc-root .pfc-cat { padding: 14px; column-gap: 12px; }
	#pfc-root .pfc-cat .pfc-h3 { font-size: 16px !important; align-self: start; }
	#pfc-root .pfc-cat-desc { grid-column: 1 / -1; }  /* mobile: description spans full width */
	#pfc-root .pfc-prov { grid-column: 1 / -1; }      /* mobile: providers span full width */
	#pfc-root .pfc-modal-actions { padding-top: 14px; }
}
