.bol-terms-gate-overlay,
.bol-terms-gate-modal {
	display: none;
}

.bol-terms-gate-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.6 );
	z-index: 100000;
}

.bol-terms-gate-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100001;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.bol-terms-gate.is-open .bol-terms-gate-overlay {
	display: block;
}

.bol-terms-gate.is-open .bol-terms-gate-modal {
	display: flex;
}

.bol-terms-gate-panel {
	background: #fff;
	max-width: 800px;
	max-width: min( 800px, 90vw );
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	border-radius: 6px;
	padding: 24px;
	position: relative;
	box-sizing: border-box;
}

/* Fallback for sites whose theme doesn't already define this WP core
   utility class — keeps the modal's aria-labelledby target present for
   assistive tech without duplicating a visible title. */
.bol-terms-gate .screen-reader-text {
	border: 0;
	clip: rect( 1px, 1px, 1px, 1px );
	clip-path: inset( 50% );
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.bol-terms-gate-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.bol-terms-gate-panel h2 {
	margin: 0 0 16px;
	padding-right: 24px;
}

.bol-terms-gate-body {
	overflow-y: auto;
	flex: 1 1 auto;
	border: 1px solid #ddd;
	padding: 16px;
	margin-bottom: 16px;
}

.bol-terms-gate-footer {
	flex: 0 0 auto;
	text-align: right;
}

.bol-terms-gate-scroll-hint {
	font-size: 0.85em;
	color: #666;
	margin: 0 0 8px;
}

.bol-terms-gate-agree[disabled],
.bol-terms-gate-trigger[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

html.bol-terms-gate-lock-scroll {
	overflow: hidden;
}
