/* GB Systems Cookie Consent — styled to match the Campus Studios design
   system (dark navbar/footer, gold accent, 6px radius, Roboto). */

.gbcc-root {
	--gbcc-dark: #111111;
	--gbcc-dark-2: #1c1c1c;
	--gbcc-accent: #c8a96e;
	--gbcc-accent-hover: #b8955a;
	--gbcc-accent-2: #4a7c6f;
	--gbcc-light-bg: #f5f5f3;
	--gbcc-border: #e8e8e4;
	--gbcc-mid: #555555;
	--gbcc-radius: 6px;
	--gbcc-transition: 0.2s ease;
	--gbcc-max-w: 1200px;

	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.gbcc-root * {
	box-sizing: border-box;
}

.gbcc-hidden {
	display: none !important;
}

/* ==========================================================
   BOTTOM BAR
   ========================================================== */

.gbcc-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;

	background: rgba(17, 17, 17, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
	border-top: 1px solid rgba(255, 255, 255, 0.08);

	padding: 22px 32px;

	transform: translateY(100%);
	transition: transform 0.35s ease;
}

.gbcc-bar.gbcc-visible {
	transform: translateY(0);
}

.gbcc-bar-inner {
	max-width: var(--gbcc-max-w);
	margin: 0 auto;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.gbcc-bar-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13.5px;
	line-height: 1.6;
	flex: 1 1 auto;
	min-width: 0;
}

.gbcc-bar-title {
	color: #ffffff;
	font-weight: 600;
	font-size: 14.5px;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.gbcc-bar-title svg {
	flex-shrink: 0;
	color: var(--gbcc-accent);
}

.gbcc-bar-text p {
	margin: 0;
}

.gbcc-bar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.gbcc-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;

	padding: 12px 20px;
	border-radius: var(--gbcc-radius);
	border: 1px solid transparent;
	cursor: pointer;

	transition: background-color var(--gbcc-transition), border-color var(--gbcc-transition), color var(--gbcc-transition);
	white-space: nowrap;
}

.gbcc-btn-primary {
	background: var(--gbcc-accent);
	color: var(--gbcc-dark);
	border-color: var(--gbcc-accent);
}

.gbcc-btn-primary:hover,
.gbcc-btn-primary:focus-visible {
	background: var(--gbcc-accent-hover);
	border-color: var(--gbcc-accent-hover);
}

.gbcc-btn-secondary {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.35);
}

.gbcc-btn-secondary:hover,
.gbcc-btn-secondary:focus-visible {
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.gbcc-btn-link {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: underline;
	padding: 12px 4px;
}

.gbcc-btn-link:hover,
.gbcc-btn-link:focus-visible {
	color: #ffffff;
}

/* Inside the light modal, secondary/link buttons need dark-on-light colors */
.gbcc-modal .gbcc-btn-secondary {
	color: var(--gbcc-dark);
	border-color: var(--gbcc-border);
}

.gbcc-modal .gbcc-btn-secondary:hover,
.gbcc-modal .gbcc-btn-secondary:focus-visible {
	border-color: var(--gbcc-mid);
	background: rgba(0, 0, 0, 0.04);
}

.gbcc-modal .gbcc-btn-link {
	color: var(--gbcc-mid);
}

.gbcc-modal .gbcc-btn-link:hover,
.gbcc-modal .gbcc-btn-link:focus-visible {
	color: var(--gbcc-dark);
}

/* ==========================================================
   MODAL
   ========================================================== */

.gbcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;

	background: rgba(10, 10, 10, 0.65);

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;

	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.gbcc-overlay.gbcc-visible {
	opacity: 1;
	pointer-events: auto;
}

.gbcc-modal {
	background: #ffffff;
	color: var(--gbcc-dark);
	border-radius: var(--gbcc-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

	width: 100%;
	max-width: 560px;
	max-height: min(680px, 88vh);

	display: flex;
	flex-direction: column;

	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.gbcc-overlay.gbcc-visible .gbcc-modal {
	transform: translateY(0) scale(1);
}

.gbcc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;

	padding: 24px 28px 16px;
	border-bottom: 1px solid var(--gbcc-border);
}

.gbcc-modal-header h2 {
	font-family: "Roboto Slab", serif;
	font-size: 19px;
	font-weight: 600;
	margin: 0;
	color: var(--gbcc-dark);
}

.gbcc-modal-close {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--gbcc-mid);
	padding: 6px;
	border-radius: var(--gbcc-radius);
	line-height: 0;
	transition: background-color var(--gbcc-transition), color var(--gbcc-transition);
}

.gbcc-modal-close:hover,
.gbcc-modal-close:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	color: var(--gbcc-dark);
}

.gbcc-modal-intro {
	padding: 16px 28px 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--gbcc-mid);
	margin: 0;
}

.gbcc-modal-body {
	padding: 16px 28px 8px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.gbcc-cat {
	padding: 16px 0;
	border-bottom: 1px solid var(--gbcc-border);
}

.gbcc-cat:last-child {
	border-bottom: none;
}

.gbcc-cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.gbcc-cat-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--gbcc-dark);
}

.gbcc-cat-desc {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--gbcc-mid);
}

.gbcc-cat-locked {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gbcc-accent-2);
	white-space: nowrap;
}

/* Toggle switch */

.gbcc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}

.gbcc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.gbcc-switch-track {
	position: absolute;
	inset: 0;
	background: #d8d8d4;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color var(--gbcc-transition);
}

.gbcc-switch-track::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform var(--gbcc-transition);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.gbcc-switch input:checked + .gbcc-switch-track {
	background: var(--gbcc-accent);
}

.gbcc-switch input:checked + .gbcc-switch-track::before {
	transform: translateX(18px);
}

.gbcc-switch input:disabled + .gbcc-switch-track {
	background: var(--gbcc-accent-2);
	cursor: not-allowed;
	opacity: 0.55;
}

.gbcc-switch input:focus-visible + .gbcc-switch-track {
	outline: 2px solid var(--gbcc-accent);
	outline-offset: 2px;
}

.gbcc-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;

	padding: 18px 28px 24px;
	border-top: 1px solid var(--gbcc-border);
}

.gbcc-modal-footer .gbcc-btn {
	flex: 0 0 auto;
}

.gbcc-modal-links {
	margin-right: auto;
	font-size: 12px;
	display: flex;
	gap: 14px;
}

.gbcc-modal-links a {
	color: var(--gbcc-mid);
	text-decoration: underline;
}

.gbcc-modal-links a:hover {
	color: var(--gbcc-dark);
}

/* ==========================================================
   FLOATING REOPEN BUTTON
   ========================================================== */

.gbcc-reopen {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;

	width: 44px;
	height: 44px;
	border-radius: 50%;

	display: flex;
	align-items: center;
	justify-content: center;

	background: var(--gbcc-dark);
	color: var(--gbcc-accent);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

	cursor: pointer;
	transition: transform var(--gbcc-transition), background-color var(--gbcc-transition);
}

.gbcc-reopen:hover,
.gbcc-reopen:focus-visible {
	background: var(--gbcc-dark-2);
	transform: translateY(-2px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
	.gbcc-bar {
		padding: 18px 20px;
	}

	.gbcc-bar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.gbcc-bar-actions {
		justify-content: stretch;
	}

	.gbcc-bar-actions .gbcc-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.gbcc-modal-footer {
		justify-content: stretch;
	}

	.gbcc-modal-footer .gbcc-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.gbcc-modal-links {
		margin-right: 0;
		flex-basis: 100%;
		justify-content: center;
	}

	.gbcc-reopen {
		right: 14px;
		bottom: 14px;
	}
}
