.mi-wrap {
	margin: 1.25rem 0;
}

.single-product.mi-waitlist-simple-active form.cart:not(.mi-form),
.single-product.mi-waitlist-simple-active .product__cart,
.single-product.mi-waitlist-simple-active .product__cart-quantity,
.single-product.mi-waitlist-simple-active .summary .quantity,
.single-product.mi-waitlist-simple-active .summary .single_add_to_cart_button,
.mi-cart-hidden {
	display: none !important;
}

.mi-open-popup {
	cursor: pointer;
}

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

.mi-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647 !important;
	isolation: isolate;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-y: auto;
	padding: 1rem;
	transform: none !important;
}

.mi-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: rgba(17, 24, 39, 0.62);
}

.mi-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 1.4rem;
	border: 1px solid #d8dde3;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.mi-modal-close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: #374151;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.mi-modal-close:hover,
.mi-modal-close:focus {
	border-color: #d8dde3;
	background: #f3f4f6;
	color: #111827;
}

html.mi-modal-active,
body.mi-modal-active {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.mi-heading {
	display: grid;
	gap: 0.25rem;
	margin-bottom: 0.85rem;
}

.mi-fields {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.mi-fields input[type='email'] {
	flex: 1 1 auto;
	min-width: 0;
}

.mi-fields button {
	flex: 0 0 auto;
	white-space: nowrap;
}

.mi-checkbox-group {
	position: relative;
	margin-top: 0.85rem;
}

.mi-notify-opt-in {
	position: relative !important;
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.mi-consent-check {
	position: relative !important;
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin-top: 0.65rem;
	color: inherit;
	font-size: 0.92em;
	line-height: 1.45;
	cursor: pointer;
}

.mi-form .mi-notify-opt-in input[type='checkbox'],
.mi-form .mi-consent-check input[type='checkbox'] {
	position: relative !important;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0.15rem 0 0;
	accent-color: #ff6600;
}

.mi-consent-check a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mi-notify-title,
.mi-notify-description {
	display: block;
}

.mi-notify-title {
	line-height: 1.35;
}

.mi-notify-description {
	margin-top: 0.25rem;
	opacity: 0.72;
	font-size: 0.92em;
	line-height: 1.45;
}

.mi-recaptcha {
	margin-top: 0.75rem;
}

.mi-message {
	margin-top: 0.75rem;
}

.mi-form.mi-form-submitted .mi-fields,
.mi-form.mi-form-submitted .mi-checkbox-group,
.mi-form.mi-form-submitted .mi-recaptcha {
	display: none !important;
}

.mi-form.mi-form-submitted .mi-message {
	margin-top: 0;
}

.mi-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.mi-account-waitlist-table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e5e5e5;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
}

.mi-account-waitlist-table th,
.mi-account-waitlist-table td {
	padding: 18px 16px;
	border-right: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
	vertical-align: middle;
}

.mi-account-waitlist-table th:last-child,
.mi-account-waitlist-table td:last-child {
	border-right: 0;
}

.mi-account-waitlist-table tbody tr:last-child td {
	border-bottom: 0;
}

.mi-account-waitlist-table th {
	background: #f7f7f7;
	font-weight: 700;
}

.mi-account-image-col {
	width: 112px;
}

.mi-account-subscription-col {
	width: 180px;
}

.mi-account-action-col {
	width: 190px;
}

.mi-account-image-col img {
	display: block;
	width: 70px;
	height: 70px;
	margin: 0 auto;
	object-fit: contain;
}

.mi-account-product-name {
	color: inherit;
	font-size: 1.05rem;
	text-decoration: none;
}

.mi-account-product-name:hover,
.mi-account-product-name:focus {
	text-decoration: underline;
}

.mi-account-inline-form {
	margin: 0;
}

.mi-account-subscription-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 24px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.mi-account-subscription-active {
	background: #e7f8ed;
	color: #176b36;
}

.mi-account-subscription-stopped {
	background: #fff1e5;
	color: #b33b00;
}

.mi-account-subscription-notified {
	background: #e0f2fe;
	color: #075985;
}

.mi-account-subscription-failed {
	background: #fee2e2;
	color: #991b1b;
}

.mi-account-detail-note {
	display: block;
	margin-top: 6px;
	font-size: 0.82rem;
	line-height: 1.35;
	opacity: 0.72;
}

.mi-account-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.mi-account-stock {
	display: inline-grid;
	gap: 4px;
	justify-items: center;
	line-height: 1.35;
}

.mi-account-stock-check {
	display: block;
	width: 14px;
	height: 8px;
	border-bottom: 4px solid #00c800;
	border-left: 4px solid #00c800;
	transform: rotate(-45deg);
}

.mi-account-stock-cross {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.mi-account-stock-cross::before,
.mi-account-stock-cross::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 1px;
	width: 14px;
	height: 3px;
	border-radius: 999px;
	background: #d63638;
}

.mi-account-stock-cross::before {
	transform: rotate(45deg);
}

.mi-account-stock-cross::after {
	transform: rotate(-45deg);
}

.mi-account-action-col .button,
.mi-account-action-col .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 126px;
	text-decoration: none;
}

@media (max-width: 560px) {
	.mi-open-popup {
		width: 100%;
	}

	.mi-modal-dialog {
		padding: 1.15rem;
	}

	.mi-fields {
		display: grid;
	}

	.mi-fields button {
		width: 100%;
	}

	.mi-account-action-col .button,
	.mi-account-action-col .btn {
		width: 100%;
	}

	.mi-account-inline-form {
		width: 100%;
	}

	.mi-account-row-actions {
		justify-content: stretch;
	}
}
