/* CIPA Consent Guard — styled to resemble the CookieYes default banner. */
#ccg-banner.ccg-banner,
#ccg-banner.ccg-banner * { box-sizing: border-box; }

#ccg-banner.ccg-banner {
	position: fixed;
	z-index: 2147483000;
	background: #ffffff;
	color: #212121;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
}
#ccg-banner.ccg-banner[hidden] { display: none; }

/* Corner box (CookieYes-style rounded card, bottom-right). */
#ccg-banner.ccg--box {
	right: 30px;
	bottom: 30px;
	width: calc(100% - 60px);
	max-width: 440px;
	border: 1px solid #f4f4f4;
	border-radius: 6px;
	padding: 30px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}
#ccg-banner.ccg--box .ccg-inner { display: block; }

/* Full-width bottom bar option. */
#ccg-banner.ccg--bottom {
	left: 0; right: 0; bottom: 0;
	border-top: 1px solid #f4f4f4;
	padding: 22px 30px;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
}
#ccg-banner.ccg--bottom .ccg-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
}
#ccg-banner.ccg--bottom .ccg-content { flex: 1 1 auto; }

.ccg-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #212121;
}
#ccg-banner .ccg-text { color: #212121; }
#ccg-banner .ccg-text p { margin: 0 0 6px; }
#ccg-banner .ccg-text p:last-child { margin-bottom: 0; }
#ccg-banner .ccg-policy,
.ccg-gf-notice .ccg-policy {
	color: var(--ccg-accent, #1863dc);
	text-decoration: underline;
}

.ccg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
#ccg-banner.ccg--box .ccg-actions { margin-top: 22px; }
#ccg-banner.ccg--bottom .ccg-actions { flex: 0 0 auto; }

#ccg-banner .ccg-btn {
	cursor: pointer;
	border-radius: 2px;
	padding: 9px 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	border: 1px solid var(--ccg-accent, #1863dc);
	transition: opacity .15s ease;
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}
#ccg-banner.ccg--bottom .ccg-btn { flex: 0 0 auto; }
#ccg-banner .ccg-btn:hover { opacity: .85; }
#ccg-banner .ccg-btn--accept {
	background: var(--ccg-accent, #1863dc);
	color: #ffffff;
}
#ccg-banner .ccg-btn--reject {
	background: transparent;
	color: var(--ccg-accent, #1863dc);
}

/* Revisit button (CookieYes-style small round button, bottom-left). */
.ccg-reopen {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147482000;
	width: 46px;
	height: 46px;
	padding: 0;
	cursor: pointer;
	border: none;
	border-radius: 50%;
	background: var(--ccg-accent, #1863dc);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease;
}
.ccg-reopen[hidden] { display: none; }
.ccg-reopen:hover { transform: scale(1.06); }
.ccg-reopen svg { width: 24px; height: 24px; display: block; }

@media (max-width: 640px) {
	#ccg-banner.ccg--box {
		left: 12px; right: 12px; bottom: 12px;
		width: auto; max-width: none;
		padding: 22px;
	}
	#ccg-banner.ccg--bottom .ccg-inner { flex-direction: column; align-items: stretch; gap: 14px; }
	#ccg-banner .ccg-btn { flex: 1 1 auto; }
}

/* Form consent lock notice (shared by Gravity Forms + Elementor).
   v4 layout: message + privacy link stacked ABOVE the Accept button. */
.ccg-gf-notice {
	background: #fdf0e6;
	border: 1px solid #f0c9a8;
	border-radius: 6px;
	color: #7a4a1d;
	padding: 12px 16px;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.ccg-gf-notice-text { flex: 0 0 auto; }
.ccg-gf-accept {
	cursor: pointer;
	border-radius: 2px;
	padding: 7px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--ccg-accent, #1863dc);
	background: var(--ccg-accent, #1863dc);
	color: #ffffff;
	white-space: nowrap;
}
.ccg-gf-accept:hover { opacity: .85; }
.ccg-gf-locked .gform_body,
.ccg-gf-locked .gform_footer,
.ccg-gf-locked .gform-body,
.ccg-gf-locked .gform_page_footer {
	pointer-events: none;
	opacity: .55;
	filter: grayscale(30%);
}

/* Elementor Pro forms consent lock (v3). */
.ccg-ef-locked form.elementor-form {
	pointer-events: none;
	opacity: .55;
	filter: grayscale(30%);
}
/* Keep the notice itself fully interactive/visible. */
.ccg-ef-locked .ccg-gf-notice {
	pointer-events: auto;
	opacity: 1;
	filter: none;
}

/* Previously-selected choice indicator (v2.1). */
#ccg-banner .ccg-btn.ccg-btn--selected {
	background: #1e9e5a;
	border-color: #1e9e5a;
	color: #ffffff;
}
#ccg-banner .ccg-btn.ccg-btn--selected:hover { opacity: 1; }
