/* Dream Charters — Bricks popup shell for embedded Form Flow (form-only chrome). */

.brx-popup.hff-bricks-popup,
.brx-popup:has(.hff-flow--bricks-popup),
.brx-popup:has(.hff-flow--form-only),
.brx-popup:has(.brxe-hff-form-step .hff-flow) {
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.brx-popup.hff-bricks-popup .brx-popup-backdrop,
.brx-popup:has(.hff-flow--bricks-popup) .brx-popup-backdrop,
.brx-popup:has(.hff-flow--form-only) .brx-popup-backdrop,
.brx-popup:has(.brxe-hff-form-step .hff-flow) .brx-popup-backdrop {
	background: rgba(0, 0, 0, 0.82);
}

.brx-popup.hff-bricks-popup .brx-popup-content,
.brx-popup:has(.hff-flow--bricks-popup) .brx-popup-content,
.brx-popup:has(.hff-flow--form-only) .brx-popup-content,
.brx-popup:has(.brxe-hff-form-step .hff-flow) .brx-popup-content,
.brx-popup.hff-bricks-popup .brx-popup-content.brxe-container,
.brx-popup:has(.hff-flow--bricks-popup) .brx-popup-content.brxe-container,
.brx-popup:has(.hff-flow--form-only) .brx-popup-content.brxe-container,
.brx-popup:has(.brxe-hff-form-step .hff-flow) .brx-popup-content.brxe-container {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(620px, calc(100vw - 48px));
	max-width: 620px;
	max-height: calc(100dvh - 48px);
	height: auto;
	overflow: hidden;
	overflow-x: hidden;
	margin: 0;
	padding: 60px;
	border: 0 !important;
	outline: none !important;
	border-radius: 30px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 22.43%, rgba(151, 111, 42, 0.5) 105.46%), #000000 !important;
	box-shadow: 0 10px 64px rgba(204, 168, 65, 0.2);
	color: #ffffff;
	box-sizing: border-box;
}

/* Inner Bricks elements stay transparent so the popup shell background shows through. */
.brx-popup.hff-bricks-popup .brxe-shortcode,
.brx-popup:has(.hff-flow--bricks-popup) .brxe-shortcode,
.brx-popup:has(.hff-flow--form-only) .brxe-shortcode,
.brx-popup:has(.brxe-hff-form-step) .brxe-shortcode,
.brx-popup:has(.brxe-hff-form-step) .brxe-hff-form-step {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.brx-popup.hff-bricks-popup .brxe-block,
.brx-popup:has(.hff-flow--bricks-popup) .brxe-block,
.brx-popup:has(.hff-flow--form-only) .brxe-block,
.brx-popup:has(.brxe-hff-form-step) .brxe-block,
.brx-popup.hff-bricks-popup .brxe-div,
.brx-popup:has(.hff-flow--bricks-popup) .brxe-div,
.brx-popup:has(.hff-flow--form-only) .brxe-div,
.brx-popup:has(.brxe-hff-form-step) .brxe-div {
	width: 100%;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.brx-popup.hff-bricks-popup .hff-flow,
.brx-popup:has(.hff-flow--bricks-popup) .hff-flow,
.brx-popup:has(.hff-flow--form-only) .hff-flow,
.brx-popup:has(.brxe-hff-form-step) .hff-flow,
.brx-popup.hff-bricks-popup .hff-flow__panel,
.brx-popup:has(.hff-flow--bricks-popup) .hff-flow__panel,
.brx-popup:has(.hff-flow--form-only) .hff-flow__panel,
.brx-popup:has(.brxe-hff-form-step) .hff-flow__panel,
.brx-popup.hff-bricks-popup .hff-flow__stage,
.brx-popup:has(.hff-flow--bricks-popup) .hff-flow__stage,
.brx-popup:has(.hff-flow--form-only) .hff-flow__stage,
.brx-popup:has(.brxe-hff-form-step) .hff-flow__stage {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

.hff-flow--bricks-popup {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.hff-flow--bricks-popup .hff-flow__panel {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.hff-flow--bricks-popup .hff-flow__stage {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(204, 168, 65, 0.45) transparent;
}

.hff-flow--bricks-popup .hff-flow__stage::-webkit-scrollbar {
	width: 6px;
}

.hff-flow--bricks-popup .hff-flow__stage::-webkit-scrollbar-thumb {
	background: rgba(204, 168, 65, 0.45);
	border-radius: 999px;
}

.hff-flow--bricks-popup .hff-flow__status {
	flex-shrink: 0;
}

.hff-flow--bricks-popup .hff-flow__bricks-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 24px;
	margin: 0 0 24px;
	min-height: 76px;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.hff-flow--bricks-popup.hff-theme-luxury .hff-flow__brand {
	margin: 0;
	flex: 0 0 auto;
}

.hff-flow--bricks-popup.hff-theme-luxury .hff-flow__logo {
	display: block;
	width: auto;
	height: 76px;
	max-height: 76px;
	max-width: 120px;
	object-fit: contain;
}

/* Override luxury modal absolute close — keep X in the header row. */
.hff-flow--bricks-popup.hff-theme-luxury .hff-flow__bricks-header .hff-flow__close {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	flex: 0 0 20px;
	align-self: center;
	width: 20px;
	height: 20px;
	margin: 0;
}

@media (max-width: 640px) {
	.brx-popup.hff-bricks-popup .brx-popup-content,
	.brx-popup:has(.hff-flow--bricks-popup) .brx-popup-content,
	.brx-popup:has(.hff-flow--form-only) .brx-popup-content,
	.brx-popup:has(.brxe-hff-form-step .hff-flow) .brx-popup-content {
		padding: 40px 24px;
		border-radius: 20px;
	}

	.hff-flow--bricks-popup .hff-flow__bricks-header {
		min-height: 56px;
		margin-bottom: 28px;
	}

	.hff-flow--bricks-popup.hff-theme-luxury .hff-flow__logo {
		height: 56px;
		max-height: 56px;
		max-width: 96px;
	}
}
