/**
 * Minyglam Privé invitation. Desktop frame is 520px wide.
 */

body.minyglam-theme .mg-prive-popup {
	position: fixed;
	z-index: 200;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(0, 0, 0, 0.5);
	overflow: auto;
}

body.minyglam-theme .mg-prive-popup[hidden] {
	display: none;
}

html.mg-prive-popup-open,
html.mg-prive-popup-open body.minyglam-theme {
	overflow: hidden;
}

body.minyglam-theme .mg-prive-popup__dialog {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: min(520px, 100%);
	margin: auto;
	padding: 32px;
	background: #fbf9f7;
	box-shadow: 0 12px 32px rgba(15, 15, 13, 0.08);
}

body.minyglam-theme .mg-prive-popup__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
}

body.minyglam-theme .mg-prive-popup__logo {
	display: block;
	width: 127px;
	height: 72px;
	object-fit: cover;
}

body.minyglam-theme .mg-prive-popup__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

body.minyglam-theme .mg-prive-popup__close img {
	display: block;
	width: 24px;
	height: 24px;
}

body.minyglam-theme .mg-prive-popup__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	color: #0f0f0d;
	text-align: center;
}

body.minyglam-theme .mg-prive-popup__copy h2 {
	margin: 0;
	color: #0f0f0d;
	font-family: "Host Grotesk", Inter, sans-serif;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.28px;
	line-height: 32px;
}

body.minyglam-theme .mg-prive-popup__lead {
	margin: 0;
	color: #852930;
	font-family: "Host Grotesk", Inter, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 28px;
}

body.minyglam-theme .mg-prive-popup__copy p:last-child {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
}

body.minyglam-theme .mg-prive-popup__art {
	container-type: inline-size;
	position: relative;
	width: 100%;
	aspect-ratio: 456 / 408;
	overflow: hidden;
}

body.minyglam-theme .mg-prive-popup__stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 456px;
	height: 408px;
	transform: scale(calc(100cqw / 456px));
	transform-origin: top left;
}

body.minyglam-theme .mg-prive-popup__gifts {
	position: absolute;
	top: 0;
	left: -39px;
	width: 534px;
	height: 410px;
	max-width: none;
	object-fit: cover;
}

body.minyglam-theme .mg-prive-popup__base {
	position: absolute;
	top: 339px;
	left: 124px;
	width: 186px;
	height: 59px;
}

body.minyglam-theme .mg-prive-popup__lamp {
	position: absolute;
	top: 270.62px;
	left: 114.84px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 190.351px;
	height: 141.162px;
}

body.minyglam-theme .mg-prive-popup__lamp-frame {
	position: relative;
	width: 184.404px;
	height: 132.771px;
	overflow: hidden;
	border-bottom-right-radius: 93.783px;
	transform: rotate(2.65deg);
}

body.minyglam-theme .mg-prive-popup__lamp-frame img {
	position: absolute;
	top: -7.07%;
	left: -3.36%;
	width: 111.78%;
	height: 154.91%;
	max-width: none;
}

body.minyglam-theme a.mg-prive-popup__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	padding: 16px 0;
	background: #0f0f0d;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1.28px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

body.minyglam-theme a.mg-prive-popup__cta:hover,
body.minyglam-theme a.mg-prive-popup__cta:focus {
	color: #fff;
}

body.minyglam-theme .mg-prive-popup--join .mg-prive-popup__dialog {
	border: 1px solid #e4e2dc;
}

body.minyglam-theme .mg-prive-popup--join .mg-prive-popup__copy strong {
	font-weight: 600;
}

body.minyglam-theme .mg-prive-popup__portrait {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 344px;
	overflow: hidden;
}

body.minyglam-theme .mg-prive-popup__wash {
	position: absolute;
	top: -71.5px;
	left: 50%;
	width: 520px;
	height: 466px;
	transform: translateX(-50%);
	pointer-events: none;
}

body.minyglam-theme .mg-prive-popup__wash img {
	position: absolute;
	top: 0;
	left: -44.52%;
	width: 179.23%;
	height: 100%;
	max-width: none;
}

body.minyglam-theme .mg-prive-popup__wash::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(24.2deg, #fbf9f7 5.81%, rgba(251, 249, 247, 0) 28.75%);
}

body.minyglam-theme .mg-prive-popup__wash--side::after {
	background:
		linear-gradient(-45.5deg, #fbf9f7 14.05%, rgba(251, 249, 247, 0) 37.47%),
		linear-gradient(24.2deg, #fbf9f7 5.81%, rgba(251, 249, 247, 0) 28.75%);
}

body.minyglam-theme .mg-prive-popup__frame {
	position: relative;
	z-index: 1;
	height: 100%;
	width: auto;
	max-width: none;
	aspect-ratio: 1312 / 1199;
	object-fit: cover;
}

body.minyglam-theme .mg-prive-popup__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

body.minyglam-theme .mg-prive-popup__form input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px;
	border: 1px solid #e4e2dc;
	background: #fff;
	color: #0f0f0d;
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 24px;
}

body.minyglam-theme .mg-prive-popup__form input[type="email"]::placeholder {
	color: #6b6b65;
}

body.minyglam-theme .mg-prive-popup__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body.minyglam-theme .mg-prive-popup__status {
	margin: 0;
	color: #0f0f0d;
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
}

body.minyglam-theme button.mg-prive-popup__join {
	margin: 0;
	padding: 16px 42px;
	border: 0;
	background: #0f0f0d;
	color: #fff;
	cursor: pointer;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1.28px;
	line-height: 24px;
	text-transform: uppercase;
}

@media (max-width: 650px) {
	body.minyglam-theme .mg-prive-popup {
		padding: 16px;
	}

	body.minyglam-theme .mg-prive-popup__dialog {
		gap: 16px;
		padding: 20px 16px;
	}

	body.minyglam-theme .mg-prive-popup__head {
		min-height: 0;
	}

	body.minyglam-theme .mg-prive-popup__logo {
		width: 96px;
		height: auto;
		object-fit: contain;
	}

	body.minyglam-theme .mg-prive-popup__copy {
		gap: 8px;
	}

	body.minyglam-theme .mg-prive-popup__copy h2 {
		font-size: 22px;
		letter-spacing: -0.22px;
		line-height: 28px;
	}

	body.minyglam-theme .mg-prive-popup__lead {
		font-size: 16px;
		line-height: 22px;
	}

	body.minyglam-theme .mg-prive-popup__copy p:last-child,
	body.minyglam-theme .mg-prive-popup__status {
		font-size: 14px;
		line-height: 22px;
	}

	body.minyglam-theme a.mg-prive-popup__cta,
	body.minyglam-theme button.mg-prive-popup__join {
		padding: 12px 16px;
		font-size: 14px;
		letter-spacing: 1.12px;
		line-height: 22px;
	}

	body.minyglam-theme a.mg-prive-popup__cta {
		white-space: normal;
	}

	body.minyglam-theme .mg-prive-popup__form {
		gap: 12px;
	}

	body.minyglam-theme .mg-prive-popup__form input[type="email"] {
		min-height: 44px;
		padding: 10px 12px;
		font-size: 14px;
		line-height: 22px;
	}

	body.minyglam-theme .mg-prive-popup__portrait {
		height: 240px;
	}
}
