/* MNT Tour Booking Buttons
 * Sidebar button styling mirrors the theme's .wpcf7-form input[type="submit"]
 * (600 weight, 45px, pill, uppercase) so it sits naturally where the enquiry
 * form used to be. --mnt-tb-primary is injected from the Customizer.
 */

.mnt-tb-wrap {
	margin: 0;
}

.mnt-tb-btn,
.mnt-tb-btn:visited {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 45px;
	line-height: 45px;
	padding: 0 18px;
	border: 1px solid var(--mnt-tb-primary, #ec5849);
	border-radius: 50px;
	background: var(--mnt-tb-primary, #ec5849);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.mnt-tb-btn:hover,
.mnt-tb-btn:focus {
	background: #fff;
	color: var(--mnt-tb-primary, #ec5849);
	text-decoration: none;
}

.mnt-tb-btn:focus-visible {
	outline: 2px solid var(--mnt-tb-primary, #ec5849);
	outline-offset: 2px;
}

.mnt-tb-note {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	color: inherit;
}

.mnt-tb-error {
	margin: 0;
	padding: 10px 12px;
	border: 1px dashed #d63638;
	border-radius: 4px;
	color: #d63638;
	font-size: 13px;
}

/* ---------------------------------------------------------------------
 * Generic iframe lightbox ([mnt_book_iframe] only).
 * WeTravel builds its own overlay, so none of this applies to it.
 * ------------------------------------------------------------------ */

.mnt-tb-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .75);
}

.mnt-tb-modal[hidden] {
	display: none;
}

.mnt-tb-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1000px;
	height: 90vh;
	max-height: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.mnt-tb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 10px 14px;
	border-bottom: 1px solid #e5e5e5;
	background: #fafafa;
}

.mnt-tb-bar-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mnt-tb-bar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.mnt-tb-newtab {
	font-size: 13px;
	text-decoration: underline;
}

.mnt-tb-close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #333;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.mnt-tb-close:hover {
	background: #eee;
}

.mnt-tb-frame {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
}

.mnt-tb-lock {
	overflow: hidden !important;
}

@media (max-width: 782px) {

	.mnt-tb-modal {
		padding: 0;
	}

	.mnt-tb-dialog {
		height: 100%;
		max-width: none;
		border-radius: 0;
	}
}

/* Optional enquiry form under a button (form="..." attribute). */
.mnt-tb-form {
	margin-top: 25px;
}
