.bdpe-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
	color: var(--wd-text-color, #242424);
}

.bdpe-modal,
.bdpe-modal * {
	box-sizing: border-box;
}

.bdpe-modal.is-open {
	display: flex;
}

.bdpe-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 12, .64);
	opacity: 0;
	backdrop-filter: blur(2px);
	transition: opacity .18s ease;
}

.bdpe-modal.is-open .bdpe-modal__backdrop {
	opacity: 1;
}

.bdpe-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	background: var(--wd-main-bgcolor, #fff);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
	outline: none;
	opacity: 0;
	transform: translateY(10px) scale(.985);
	transition: opacity .18s ease, transform .18s ease;
}

.bdpe-modal.is-open .bdpe-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.bdpe-modal__body {
	padding: 30px;
}

.bdpe-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background-color .16s ease, color .16s ease;
}

.bdpe-modal__close:hover,
.bdpe-modal__close:focus-visible {
	background: rgba(0, 0, 0, .06);
	color: var(--wd-primary-color, currentColor);
	outline: none;
}

.bdpe-product {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	margin-bottom: 24px;
	padding-right: 44px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, .1));
}

.bdpe-product__image {
	display: block;
	width: 118px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 6px;
	background: var(--bgcolor-gray-100, #f6f6f6);
}

.bdpe-product__content {
	min-width: 0;
}

.bdpe-modal__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wd-primary-color, #8b6f47);
}

.bdpe-modal h2,
.bdpe-modal h3 {
	margin: 0;
	font-family: inherit;
	line-height: 1.28;
	color: var(--wd-title-color, inherit);
	letter-spacing: 0;
}

.bdpe-modal h2 {
	font-size: 23px;
	font-weight: 600;
}

.bdpe-modal h3 {
	margin-top: 10px;
	font-size: 17px;
	font-weight: 500;
}

.bdpe-product__price {
	margin-top: 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wd-title-color, inherit);
}

.bdpe-product__carat {
	margin-top: 7px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--wd-text-color, inherit);
}

.bdpe-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bdpe-form label,
.bdpe-form__full,
.bdpe-alert {
	grid-column: 1 / -1;
}

.bdpe-form label:nth-of-type(1),
.bdpe-form label:nth-of-type(2) {
	grid-column: auto;
}

.bdpe-form span {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wd-title-color, inherit);
}

.bdpe-form input,
.bdpe-form textarea,
.bdpe-form button {
	font: inherit;
}

.bdpe-form input,
.bdpe-form textarea {
	width: 100%;
	border: 1px solid var(--wd-form-brd-color, rgba(0, 0, 0, .16));
	border-radius: var(--wd-form-brd-radius, 4px);
	background: var(--wd-form-bg, #fff);
	color: var(--wd-form-color, inherit);
	font-size: 15px;
	line-height: 1.45;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.bdpe-form input {
	height: 46px;
	padding: 0 14px;
}

.bdpe-form textarea {
	min-height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.bdpe-form input:focus,
.bdpe-form textarea:focus {
	border-color: var(--wd-primary-color, #777);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
	outline: none;
}

.bdpe-submit {
	justify-self: start;
	min-width: 158px;
	min-height: 44px;
	margin-top: 2px;
	border-radius: var(--btn-accented-brd-radius, var(--wd-brd-radius, 4px));
	font-weight: 600;
	transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.bdpe-submit:hover,
.bdpe-submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
	outline: none;
}

.bdpe-submit:disabled {
	transform: none;
	box-shadow: none;
	opacity: .72;
	cursor: wait;
}

.bdpe-alert {
	padding: 11px 13px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.45;
}

.bdpe-alert.is-error {
	background: #fff3f3;
	color: #8a1f1f;
}

.bdpe-alert.is-success {
	background: #f1f8f2;
	color: #245c31;
}

.bdpe-hp {
	position: absolute;
	left: -10000px;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
}

body.bdpe-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.bdpe-modal {
		align-items: center;
		padding: 14px;
	}

	.bdpe-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 28px);
		border-radius: 8px;
	}

	.bdpe-modal__body {
		padding: 24px 18px 20px;
	}

	.bdpe-modal__close {
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
	}

	.bdpe-product {
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 14px;
		margin-bottom: 20px;
		padding-right: 34px;
		padding-bottom: 18px;
	}

	.bdpe-product__image {
		width: 90px;
	}

	.bdpe-modal h2 {
		font-size: 20px;
	}

	.bdpe-modal h3 {
		font-size: 15px;
	}

	.bdpe-product__price {
		font-size: 18px;
	}

	.bdpe-form,
	.bdpe-form label:nth-of-type(1),
	.bdpe-form label:nth-of-type(2) {
		grid-column: 1 / -1;
	}

	.bdpe-form {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.bdpe-submit {
		width: 100%;
		justify-self: stretch;
	}
}

@media (max-width: 370px) {
	.bdpe-modal {
		padding: 10px;
	}

	.bdpe-modal__body {
		padding: 22px 14px 16px;
	}

	.bdpe-product {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 12px;
	}

	.bdpe-product__image {
		width: 80px;
	}
}

@media (max-height: 640px) {
	.bdpe-modal {
		align-items: flex-start;
	}

	.bdpe-modal__dialog {
		max-height: calc(100vh - 20px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bdpe-modal__backdrop,
	.bdpe-modal__dialog,
	.bdpe-modal__close,
	.bdpe-form input,
	.bdpe-form textarea,
	.bdpe-submit {
		transition: none;
	}

	.bdpe-modal__dialog,
	.bdpe-submit:hover,
	.bdpe-submit:focus-visible {
		transform: none;
	}
}
