/* TB Consent Gate - Modal (FE) */
.tb-consent-btn {
	display: inline-block;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	background: #1a5c3a;
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.4;
}
.tb-consent-btn:hover { background: #13452c; }

.tb-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.tb-consent-overlay.is-open {
	display: flex;
	opacity: 1;
}

.tb-consent-dialog {
	position: relative;
	width: min(100%, var(--tb-consent-width, 600px));
	max-height: 85vh;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	padding: 28px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Animations */
.tb-consent-anim-fade .tb-consent-dialog { transform: none; }
.tb-consent-anim-scale .tb-consent-dialog { transform: scale(0.94); transition: transform 0.2s ease; }
.tb-consent-anim-scale.is-open .tb-consent-dialog { transform: scale(1); }
.tb-consent-anim-slide-up .tb-consent-dialog { transform: translateY(24px); transition: transform 0.22s ease; }
.tb-consent-anim-slide-up.is-open .tb-consent-dialog { transform: translateY(0); }

.tb-consent-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}
.tb-consent-close:hover { background: #f0f0f0; color: #000; }

.tb-consent-content > :first-child { margin-top: 0; }
.tb-consent-content > :last-child { margin-bottom: 0; }

.tb-consent-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.tb-consent-agree {
	background: #1a5c3a;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	cursor: pointer;
	font-size: 15px;
}
.tb-consent-agree:hover { background: #13452c; }
.tb-consent-pdf-link {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid #d1b474;
	color: #7a5c1e;
	text-decoration: none;
	font-size: 15px;
	background: #faf6ef;
}

body.tb-consent-locked { overflow: hidden; }

@media (max-width: 480px) {
	.tb-consent-overlay { padding: 12px; }
	.tb-consent-dialog { padding: 22px 16px; border-radius: 8px; }
}
