/*=========================
	SUPERSERVICE CONNECT – FULL-SCREEN BOOKING OVERLAY
	Follows Infomedia's "Connect Website Embedding Guide".
	Opened by any link with the [data-connect-overlay] attribute.
=========================*/

body.connect-active {
	overflow: hidden;
}

/* Hide third-party floating widgets (Podium "Text us" chat) while the
   booking overlay is open – Podium uses z-index 2147482997, which would
   otherwise sit on top of the booking iframe. */
body.connect-active #podium-website-widget,
body.connect-active .podium-iframe,
body.connect-active iframe[id^="podium-"] {
	display: none !important;
}

.connect-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	z-index: 2147483647; /* max – above site header and third-party widgets (Podium chat) */
	background-color: rgba(0, 0, 0, .5);
	display: flex;
	justify-content: center;
	align-items: center;
}

.connect-container .container-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #fff;
	border-radius: 6px;
	box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
	overflow: hidden;
}

.connect-container .close-button {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 2;
	min-height: 40px;
	padding: 6px 16px;
	border: 1px solid #000;
	border-radius: 5px;
	background: #000;
	color: #fff;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.connect-container .close-button:hover,
.connect-container .close-button:focus-visible {
	background: #fff;
	color: #000;
}

.connect-container iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 5px;
}

/* Mobile: icon-only close so it doesn't cover the Connect logo */
@media only screen and (max-width: 480px) {
	.connect-container .close-button {
		padding: 6px 12px;
	}
	.connect-container .close-button .close-label {
		display: none;
	}
}
