/* ===== FIREFLY USA WAITLIST MODAL ASSETS START ===== */
/* Internal cruisinstreet-* hooks are retained for compatibility. */
html.cruisinstreet-modal-open,
html.cruisinstreet-modal-open body {
	overflow: hidden !important;
}

#cruisinstreet-waitlist-dialog {
	width: min(570px, calc(100vw - 32px));
	max-width: 570px;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: visible;
	color: #20272c;
	background: transparent;
	border: 0;
	border-radius: 14px;
	box-shadow: none;
}

#cruisinstreet-waitlist-dialog::backdrop {
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.cruisinstreet-modal-frame {
	position: relative;
	max-height: calc(100dvh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: 14px;
	box-shadow: 0 30px 90px rgba(18, 29, 36, 0.34);
	scrollbar-width: thin;
	scrollbar-color: #405c6d #eef1f2;
}

.cruisinstreet-modal-close {
	position: absolute;
	top: 13px;
	right: 13px;
	z-index: 20;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: #4f5b63;
	background: #eef1f2;
	border: 1px solid #d1d8dc;
	border-radius: 50%;
	font: 400 27px/1 Arial, sans-serif;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cruisinstreet-modal-close:hover,
.cruisinstreet-modal-close:focus-visible {
	color: #fff;
	background: #405c6d;
	border-color: #405c6d;
	outline: 0;
	transform: rotate(90deg);
}

.cruisinstreet-modal-content {
	min-height: 180px;
	background: #fff;
	border-radius: 14px;
}

.cruisinstreet-modal-content .cruisinstreet-waitlist {
	max-width: none !important;
	margin: 0 !important;
	border-radius: 14px !important;
	box-shadow: none !important;
}

.cruisinstreet-modal-loading {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 40px;
	color: #4f5b63;
	background: linear-gradient(145deg, #fff, #eef1f2);
	border: 1px solid #d4dade;
	border-top: 4px solid #405c6d;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cruisinstreet-modal-loading::before {
	content: "";
	width: 34px;
	height: 34px;
	margin: 0 0 18px;
	border: 3px solid #d4dade;
	border-top-color: #405c6d;
	border-radius: 50%;
	animation: cruisinstreet-spin 0.8s linear infinite;
}

.cruisinstreet-modal-error {
	margin: 0 0 17px;
	padding: 13px 15px;
	color: #263139;
	background: #f1f4f5;
	border: 1px solid #b9c4ca;
	border-left: 4px solid #405c6d;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.cruisinstreet-modal-confirmation {
	padding: 52px 36px 45px;
	text-align: center;
	color: #20272c;
	background: #fff;
	border: 1px solid #d4dade;
	border-top: 4px solid #405c6d;
	border-radius: 14px;
}

.cruisinstreet-modal-confirmation h2 {
	margin: 20px 0 12px !important;
	color: #171d21 !important;
	font-size: clamp(30px, 6vw, 40px) !important;
	font-weight: 850 !important;
	line-height: 1.05 !important;
}

.cruisinstreet-modal-confirmation p {
	margin: 0 auto 25px !important;
	color: #5d676d !important;
	font-size: 17px !important;
	line-height: 1.55 !important;
}

.cruisinstreet-modal-check {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	margin: 0 auto;
	color: #fff;
	background: #405c6d;
	border-radius: 50%;
	box-shadow: 0 0 0 9px rgba(64, 92, 109, 0.13);
	font-size: 35px;
	font-weight: 900;
}

.cruisinstreet-modal-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 25px;
	color: #fff !important;
	background: #405c6d;
	border: 1px solid #405c6d;
	border-radius: 7px;
	box-shadow: 0 10px 24px rgba(48, 75, 92, 0.22);
	font-size: 14px;
	font-weight: 850;
	letter-spacing: 0.055em;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
}

@keyframes cruisinstreet-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
	#cruisinstreet-waitlist-dialog {
		width: 100%;
		max-width: none;
		max-height: 94dvh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}

	.cruisinstreet-modal-frame {
		max-height: 94dvh;
		border-radius: 16px 16px 0 0;
	}

	.cruisinstreet-modal-content,
	.cruisinstreet-modal-content .cruisinstreet-waitlist,
	.cruisinstreet-modal-loading,
	.cruisinstreet-modal-confirmation {
		border-radius: 16px 16px 0 0 !important;
	}

	.cruisinstreet-modal-content .cruisinstreet-waitlist {
		padding: 30px 20px 26px !important;
	}

	.cruisinstreet-modal-close {
		position: sticky;
		top: 10px;
		float: right;
		margin: 10px 10px -48px 0;
	}

	.cruisinstreet-modal-confirmation {
		padding: 52px 22px 40px;
	}

	.cruisinstreet-modal-back-button {
		width: 100%;
		box-sizing: border-box;
	}
}
/* ===== FIREFLY USA WAITLIST MODAL ASSETS END ===== */
