.mbpd-wrap {
	margin: 18px 0;
	padding: 18px;
	border: 1px solid #eadfd3;
	border-radius: 18px;
	background: #fffaf6;
	box-shadow: 0 10px 28px rgba(74, 52, 40, .08);
	font-family: inherit
}

.mbpd-open-btn,
.mbpd-choose-btn,
.mbpd-add-more,
.mbpd-approve,
.mbpd-done {
	background: #4A3428;
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 14px 24px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1.2;
	letter-spacing: .01em
}

.mbpd-open-btn {
	width: 100%;
	font-size: 18px;
	background: #4A3428
}

.mbpd-status {
	margin-top: 10px;
	font-size: 14px;
	color: #4A3428
}

.mbpd-status.is-ready {
	color: #138a2e;
	font-weight: 800
}

html.mbpd-html-locked {
	overflow: hidden !important
}

.mbpd-body-locked {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	overflow: hidden !important;
	touch-action: none
}

.mbpd-modal {
	display: none !important;
	position: fixed !important;
	z-index: 2147483647 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(0, 0, 0, .54);
	padding: 24px;
	overflow: hidden !important;
	overscroll-behavior: contain
}

.mbpd-modal.is-open {
	display: flex !important;
	align-items: center;
	justify-content: center
}

.mbpd-modal-box {
	width: min(1320px, 96vw);
	max-height: 92vh;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .30);
	border: 1px solid #eadfd3;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch
}

.mbpd-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eadfd3;
	padding: 20px 26px;
	background: #F7EFE7
}

.mbpd-modal-header h3 {
	margin: 0;
	font-size: 25px;
	color: #4A3428
}

.mbpd-modal-header p {
	margin: 4px 0 0;
	color: #6f5a4d
}

.mbpd-close {
	border: 0;
	background: #fff;
	color: #4A3428;
	border-radius: 50%;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	width: 44px;
	height: 44px
}

.mbpd-steps {
	display: flex;
	gap: 10px;
	padding: 14px 24px;
	border-bottom: 1px solid #eadfd3;
	background: #fff
}

.mbpd-steps span {
	padding: 8px 14px;
	border-radius: 999px;
	background: #F7EFE7;
	color: #4A3428;
	font-size: 13px;
	font-weight: 800
}

.mbpd-steps span.is-active {
	background: #9B181F;
	color: #fff
}

.mbpd-modal-body {
	display: grid;
	grid-template-columns: 1fr 30%;
	gap: 30px;
	padding: 30px;
	background: #fff
}

.mbpd-left {
	min-width: 0
}

.mbpd-dropzone {
	min-height: 220px;
	border: 2px dashed #d8c7b7;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #fffaf6
}

.mbpd-dropzone.is-drag {
	background: #fff4f4;
	border-color: #9B181F
}

.mbpd-upload-icon {
	font-size: 54px;
	color: #9B181F
}

.mbpd-file-input {
	display: none
}

.mbpd-dropzone p {
	color: #6f5a4d;
	margin-bottom: 0
}

.mbpd-progress {
	height: 9px;
	background: #F7EFE7;
	border-radius: 99px;
	overflow: hidden;
	margin: 16px 0
}

.mbpd-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: #9B181F;
	transition: .25s
}

.mbpd-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 12px;
	margin-top: 18px
}

.mbpd-thumb {
	position: relative;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: #F7EFE7;
	aspect-ratio: 1/1;
	cursor: pointer
}

.mbpd-thumb.is-selected {
	border-color: #9B181F
}

.mbpd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.mbpd-remove {
	position: absolute;
	top: 5px;
	right: 5px;
	border: 0;
	background: #fff;
	color: #111;
	border-radius: 50%;
	width: 27px;
	height: 27px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22)
}

.mbpd-edit {
	position: absolute;
	left: 6px;
	bottom: 6px;
	border: 0;
	border-radius: 999px;
	background: rgba(74, 52, 40, .86);
	color: #fff;
	font-size: 11px;
	padding: 4px 9px
}

.mbpd-uploading {
	padding: 30px;
	background: #F7EFE7;
	border-radius: 10px;
	text-align: center;
	color: #4A3428;
	font-weight: 800
}

.mbpd-right h2 {
	font-size: 24px;
	margin: 0 0 12px;
	color: #4A3428
}

.mbpd-canvas-wrap{
    background:transparent !important;
    line-height:0;
}

.mbpd-canvas{
    display:block;
    width:100%;
    height:auto;
    border-radius:18px;
    background:transparent !important;
    box-shadow:none !important;
    cursor:move;
}

.mbpd-empty-preview {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #6f5a4d;
	padding: 26px;
	pointer-events: none
}

.mbpd-tools {
	background: #fffaf6;
	border: 1px solid #eadfd3;
	border-radius: 16px;
	padding: 13px;
	margin: 12px 0
}

.mbpd-zoom-wrap {
	display: flex;
	align-items: center;
	gap: 8px
}

.mbpd-zoom {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0
}

.mbpd-icon-btn,
.mbpd-tool-row button {
	border: 1px solid #d8c7b7;
	background: #fff;
	color: #111;
	border-radius: 10px;
	padding: 10px 11px;
	font-weight: 800;
	cursor: pointer;
	font-size: 15px;
	min-height: 42px
}

.mbpd-icon-btn {
	width: 45px
}

.mbpd-tool-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 7px;
	margin-top: 10px
}

.mbpd-tool-row button {
	font-size: 16px
}

.mbpd-auto-note {
	font-size: 13px;
	color: #4A3428;
	font-weight: 800;
	margin-top: 9px
}

.mbpd-quality {
	margin-top: 9px;
	border-radius: 10px;
	padding: 9px 10px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	border: 1px solid #eadfd3
}

.mbpd-quality.excellent,
.mbpd-quality.good {
	color: #138a2e
}

.mbpd-quality.low {
	color: #9B181F
}

.mbpd-preview-note {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 15px 0;
	font-size: 13px;
	color: #4A3428
}

.mbpd-bleed-box {
	width: 38px;
	height: 38px;
	background: #9B181F;
	border: 2px dashed #fff;
	outline: 7px solid #F7EFE7;
	display: inline-block;
	flex: 0 0 auto
}

.mbpd-selected {
	display: block;
	margin: 16px 0;
	font-size: 18px;
	color: #111
}

.mbpd-add-more,
.mbpd-approve,
.mbpd-done {
	display: block;
	width: 100%;
	margin-top: 10px;
	font-size: 16px
}

.mbpd-add-more {
	background: #9B181F
}

.mbpd-done {
	background: #111
}

.mbpd-approve {
	background: #4A3428
}

.mbpd-approve:disabled {
	opacity: .55;
	cursor: not-allowed
}

@media(max-width:900px) {
	.mbpd-modal-body {
		grid-template-columns: 1fr;
		padding: 20px
	}

	.mbpd-modal {
		padding: 8px
	}

	.mbpd-modal-box {
		max-height: 96vh
	}

	.mbpd-tool-row {
		grid-template-columns: repeat(5, 1fr)
	}

	.mbpd-right {
		max-width: 430px;
		margin: auto
	}
}