.moodsy-haft-overlay-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	position: fixed;
	inset: 0;
	z-index: 2147483647;
}

select[name='mho_position'] {
	margin-top: 0.25rem;
	-webkit-appearance: value;
	-moz-appearance: value;
	appearance: value;
}

label[for='mho_position'] {
	margin-bottom: 0.5rem;
}

.mho_color_wrapper {
	margin-top: 0.5rem;
}

#add-haft-to-cart {
	margin-top: 1rem;
}

.moodsy-haft-overlay input {
	margin-top: 0.25rem;
	box-sizing: border-box;
}

.moodsy-haft-overlay input[type='text'],
select[name='mho_position'] {
	width: 100%;
	border: 1px solid #253746;
	padding: 0.875em;
	-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1);
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1);
	outline: transparent;
}

.moodsy-haft-overlay input[type='text']:focus,
select[name='mho_position']:focus {
	background-color: hsla(207, 31%, 21%, 0.071);
	-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.12), 0px 2px 3px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.12), 0px 2px 3px rgba(0, 0, 0, 0.2);
}

.moodsy-checkbox-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.moodsy-checkbox-wrapper .label {
	font-weight: 700;
	color: #1a2126;
}

.moodsy-haft-overlay {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: 95%;
	max-width: 1200px;
	max-height: 95vh;
	overflow-y: auto;
}

.moodsy-haft-overlay-body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: 3.5rem;
	background-color: #fff;
}

.moodsy-haft-overlay-body > header {
	margin-bottom: 1.25rem;
}

.moodsy-haft-overlay-title {
	font-weight: 900;
	font-size: 2rem;
	color: #000;
}

.non-checked {
	line-height: 1;
}

.close-haft-overlay {
	position: absolute;
	top: 2rem;
	right: 2rem;
	border: 0;
	background: none;
}

.moodsy-input-wrapper > div {
	display: flex;
}

.moodsy-input-wrapper label {
	display: block;
	font-weight: 700;
}

label[for='mho_name'] {
	order: -1;
	margin-right: auto;
}

.moodsy-haft-overlay label[for='mho_file'] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	min-height: 3.25rem;
	border: 1px dashed #000000;
	border-radius: 0.25rem;
	margin-top: 0.25rem;
}
.moodsy-haft-overlay input[type='file'] {
	display: none;
}

.moodsy-haft-overlay-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.moodsy-haft-error {
	color: red;
}

#imageName {
	color: green;
}

.mho_color_wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.mho_color_item {
	width: 2rem;
	height: 2rem;
}

.mho_color_item label {
	display: block;
	height: 100%;
	transition: box-shadow 0.2s ease-out;
	cursor: pointer;
	background: var(--mho_color);
	color: var(--mho_color);
	font-size: 0;
	border-radius: 50%;
}

.mho_color_item.active label {
	box-shadow: inset 0 0 0 3px #253746;
}

.mho_color_item input {
	display: none;
}

.grid-wrapper {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.grid-wrapper label {
	grid-column: span 2;
}

.moodsy-haft-close {
	align-self: flex-end;
	cursor: pointer;
	transition: opacity 0.2s ease-in-out;
}

.moodsy-haft-close:hover {
	opacity: 0.5;
}
