/* MediSend booking modal — brand navy #0E2A47 / teal #0D9488 */
.msb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	padding: 40px 16px;
	background: rgba(10, 30, 53, 0.6);
	overflow-y: auto;
	/* Hidden with visibility (not display:none) so the booking calendar inside
	   still computes its layout while closed. */
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	-webkit-overflow-scrolling: touch;
}
.msb-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

/* Transparent wrapper — the Hydra Booking widget supplies its own white card.
   margin:auto centres it both axes, and lets tall content scroll from the top. */
.msb-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 940px;
	margin: auto;
	transform: translateY(14px);
	transition: transform 0.25s ease;
}
.msb-modal.is-open .msb-modal__dialog {
	transform: translateY(0);
}
.msb-modal__body {
	padding: 0;
}
.msb-modal__body > * {
	width: 100%;
	margin: 0 auto;
}

/* Close button floats just ABOVE the card's top-right, clear of the calendar's
   own navigation arrows. Absolute (not fixed) so the card's transform doesn't
   capture it. */
.msb-modal__close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #0E2A47;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.msb-modal__close svg { display: block; }
.msb-modal__close:hover { background: #0D9488; color: #fff; }
.msb-modal__close:active { transform: scale(0.94); }

/* Prevent background scroll while the modal is open. */
body.msb-modal-open { overflow: hidden; }

@media (max-width: 600px) {
	.msb-modal { padding: 0; }
	.msb-modal__dialog { max-width: 100%; margin: 0; }
	.msb-modal__close { top: 8px; right: 8px; background: #0E2A47; color: #fff; }
}
