/* TB Consent Gate — document viewer (consent-viewer.js), shared by the PDP page
   and the booking gate consent block. */
html.tbp-locked, html.tbp-locked body { overflow: hidden; }
.tbp-viewer {
	position: fixed;
	inset: 0;
	z-index: 2147483647; /* above sticky headers / chat widgets */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(32, 27, 18, 0.6);
	font-family: inherit;
}
.tbp-viewer[hidden] { display: none; }
.tbp-viewer *, .tbp-viewer *::before, .tbp-viewer *::after { box-sizing: border-box; }
.tbp-viewer-box { display: flex; flex-direction: column; width: 100%; max-width: 900px; height: 100%; max-height: 100%; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); overflow: hidden; }
.tbp-viewer-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ece2cc; }
.tbp-viewer .tbp-viewer-head h3 { flex: 1; margin: 0; color: #222; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; }
.tbp-viewer .tbp-viewer-x { flex: none; width: 36px; height: 36px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 50%; box-shadow: none; color: #777; font-size: 26px; line-height: 1; cursor: pointer; }
.tbp-viewer .tbp-viewer-x:hover { background: #f4efe4; color: #333; }
.tbp-viewer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; background: #f1ede5; outline: none; }
.tbp-pages { max-width: 900px; margin: 0 auto; }
.tbp-page { display: block; width: 100%; height: auto; margin: 0 0 12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.tbp-viewer-status { margin: 24px 0; color: #666; text-align: center; }
.tbp-viewer-status:empty { display: none; }
.tbp-viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #ece2cc; }
.tbp-viewer-progress { color: #996800; font-size: 13px; }
.tbp-viewer .tbp-viewer-done { flex: none; min-height: 42px; margin: 0; padding: 10px 18px; background: #d1b474; border: 1px solid #d1b474; border-radius: 6px; box-shadow: none; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; text-transform: none; cursor: pointer; }
.tbp-viewer .tbp-viewer-done:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 600px) {
	.tbp-viewer { padding: 0; }
	.tbp-viewer-box { border-radius: 0; }
	.tbp-viewer-body { padding: 8px; }
	.tbp-viewer-foot { flex-direction: column; align-items: stretch; }
	.tbp-viewer-progress { text-align: center; }
}
