/* GoExploreSA Cookie Consent — front end
   Colours come from custom properties printed inline by the plugin,
   so this file stays static and cacheable. */

.gxsa-cc,
.gxsa-cc *,
.gxsa-cc-tab,
.gxsa-cc-blocked * { box-sizing: border-box; }

.gxsa-cc[hidden],
.gxsa-cc__prefs[hidden],
.gxsa-cc-tab[hidden] { display: none !important; }

/* ---------- shell ---------- */
.gxsa-cc {
	position: fixed;
	z-index: 99999;
	left: 0; right: 0; bottom: 0;
	display: flex;
	justify-content: center;
	padding: 0 16px 16px;
	pointer-events: none;
	font-family: inherit;
	line-height: 1.55;
	color: var(--gxsa-text, #101D33);
}
.gxsa-cc--bottom-left  { justify-content: flex-start; }
.gxsa-cc--bottom-right { justify-content: flex-end; }

.gxsa-cc--modal {
	top: 0;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.gxsa-cc--modal .gxsa-cc__panel { max-height: calc(100vh - 32px); overflow-y: auto; }

.gxsa-cc__panel {
	pointer-events: auto;
	width: 100%;
	max-width: 880px;
	background: var(--gxsa-bg, #fff);
	border: 1px solid rgba(0,0,0,.09);
	border-radius: var(--gxsa-radius, 16px);
	box-shadow: 0 18px 44px rgba(0,22,64,.22);
	overflow: hidden;
}
.gxsa-cc--box .gxsa-cc__panel,
.gxsa-cc--modal .gxsa-cc__panel { max-width: 440px; }

/* the route-and-dot motif from the logo, as the top edge */
.gxsa-cc__route {
	height: 14px;
	background: var(--gxsa-secondary, #00225B);
	position: relative;
}
.gxsa-cc__route::after {
	content: "";
	position: absolute;
	top: 3.5px; left: 120px;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--gxsa-primary, #FE7B11);
}

/* ---------- body ---------- */
.gxsa-cc__main { padding: 20px 22px 18px; }
.gxsa-cc__logo { margin-bottom: 12px; }
.gxsa-cc__logo img { max-height: 34px; width: auto; }

.gxsa-cc__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 6px;
	font-weight: 600;
	color: var(--gxsa-text, #101D33);
}
.gxsa-cc__body p {
	margin: 0;
	font-size: 14px;
	color: var(--gxsa-muted, #5D6B83);
	max-width: 66ch;
}
.gxsa-cc__body a { color: var(--gxsa-primary, #FE7B11); text-underline-offset: 2px; }

/* ---------- buttons ---------- */
.gxsa-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.gxsa-cc__btn {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 10px;
	padding: 11px 20px;
	border: 1px solid transparent;
	cursor: pointer;
	background: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.gxsa-cc__btn--accept { background: var(--gxsa-primary, #FE7B11); color: #fff; }
.gxsa-cc__btn--accept:hover { filter: brightness(.93); }
.gxsa-cc__btn--reject { background: var(--gxsa-secondary, #00225B); color: #fff; }
.gxsa-cc__btn--reject:hover { filter: brightness(1.15); }
.gxsa-cc__btn--ghost {
	border-color: rgba(0,0,0,.14);
	color: var(--gxsa-muted, #5D6B83);
	margin-left: auto;
}
.gxsa-cc__btn--ghost:hover { border-color: var(--gxsa-primary, #FE7B11); color: var(--gxsa-primary, #FE7B11); }

.gxsa-cc__btn:focus-visible,
.gxsa-cc__switch input:focus-visible + .gxsa-cc__track,
.gxsa-cc-tab:focus-visible,
.gxsa-cc-blocked__btn:focus-visible {
	outline: 3px solid var(--gxsa-primary, #FE7B11);
	outline-offset: 2px;
}

@media (max-width: 620px) {
	.gxsa-cc__btn { flex: 1 1 100%; }
	.gxsa-cc__btn--ghost { margin-left: 0; order: 3; }
}
.gxsa-cc--box .gxsa-cc__btn,
.gxsa-cc--modal .gxsa-cc__btn { flex: 1 1 100%; }
.gxsa-cc--box .gxsa-cc__btn--ghost,
.gxsa-cc--modal .gxsa-cc__btn--ghost { margin-left: 0; }

/* ---------- preferences ---------- */
.gxsa-cc__prefs {
	border-top: 1px solid rgba(0,0,0,.09);
	background: rgba(0,0,0,.025);
	padding: 6px 22px 18px;
}
.gxsa-cc__cat {
	border-bottom: 1px solid rgba(0,0,0,.08);
	padding: 14px 0;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.gxsa-cc__cat:last-of-type { border-bottom: 0; }
.gxsa-cc__cat-text h3 { font-size: 14px; margin: 0 0 3px; font-weight: 600; color: var(--gxsa-text, #101D33); }
.gxsa-cc__cat-text p  { margin: 0; font-size: 13px; color: var(--gxsa-muted, #5D6B83); max-width: 62ch; }
.gxsa-cc__cat-text small { display: block; margin-top: 5px; font-size: 12px; color: var(--gxsa-muted, #5D6B83); opacity: .85; }

.gxsa-cc__switch {
	margin-left: auto;
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	font-size: 12px;
	font-weight: 600;
	color: var(--gxsa-muted, #5D6B83);
}
.gxsa-cc__switch input {
	position: absolute;
	right: 0;
	width: 44px; height: 26px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.gxsa-cc__track {
	width: 44px; height: 26px;
	border-radius: 999px;
	background: #B9C3D4;
	position: relative;
	transition: background-color .18s ease;
}
.gxsa-cc__track::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,.3);
	transition: transform .18s ease;
}
.gxsa-cc__switch input:checked + .gxsa-cc__track { background: var(--gxsa-primary, #FE7B11); }
.gxsa-cc__switch input:checked + .gxsa-cc__track::after { transform: translateX(18px); }
.gxsa-cc__switch input:disabled + .gxsa-cc__track { background: var(--gxsa-secondary, #00225B); opacity: .5; }
.gxsa-cc__switch input:disabled { cursor: default; }

.gxsa-cc__save { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; }

/* ---------- page dimmer ---------- */
.gxsa-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0,22,64,.55);
}

/* ---------- reopen tab ---------- */
.gxsa-cc-tab {
	position: fixed;
	left: 16px; bottom: 16px;
	z-index: 99997;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gxsa-secondary, #00225B);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px 10px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0,22,64,.28);
}
.gxsa-cc-tab:hover { filter: brightness(1.15); }
.gxsa-cc-tab__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--gxsa-primary, #FE7B11);
}

/* ---------- blocked embed placeholder ---------- */
.gxsa-cc-blocked {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	text-align: center;
	border: 1px dashed rgba(0,0,0,.18);
	border-radius: var(--gxsa-radius, 16px);
	background: rgba(0,22,64,.04);
}
.gxsa-cc-blocked__provider {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--gxsa-secondary, #00225B);
	margin-bottom: 6px;
}
.gxsa-cc-blocked__notice {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--gxsa-muted, #5D6B83);
	max-width: 44ch;
}
.gxsa-cc-blocked__btn {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	background: var(--gxsa-primary, #FE7B11);
	color: #fff;
	cursor: pointer;
}

/* ---------- shortcodes ---------- */
.gxsa-cc-open {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.gxsa-cc-open--button {
	text-decoration: none;
	background: var(--gxsa-secondary, #00225B);
	color: #fff;
	border-radius: 10px;
	padding: 10px 18px;
	font-weight: 600;
}
.gxsa-cc-policy { width: 100%; border-collapse: collapse; }
.gxsa-cc-policy th,
.gxsa-cc-policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.gxsa-cc *, .gxsa-cc-tab { transition: none !important; }
}
