body.mehe-consultation-open {
	overflow: hidden;
}

.mehe-consultation[hidden],
.mehe-order-subject__list[hidden],
.mehe-order-price[hidden] {
	display: none !important;
}

.mehe-mobile-order-bar {
	display: none;
}

.mehe-consultation {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	visibility: hidden;
	pointer-events: none;
}

.mehe-consultation.is-opening,
.mehe-consultation.is-open,
.mehe-consultation.is-closing {
	visibility: visible;
	pointer-events: auto;
}

.mehe-consultation__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(25, 28, 26, 0.58);
	opacity: 0;
	cursor: default;
	transition: opacity 260ms ease;
}

.mehe-consultation__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 700px);
	max-height: calc(100dvh - 48px);
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid #E3E7E5;
	border-radius: 26px;
	background: #FFFFFF;
	box-shadow: 0 30px 90px rgba(25, 28, 26, 0.22);
	overflow: auto;
	opacity: 0;
	transform: translateY(34px) scale(0.965);
	transition: opacity 260ms ease, transform 360ms cubic-bezier(.2,.85,.25,1);
}

.mehe-consultation.is-open .mehe-consultation__backdrop {
	opacity: 1;
}

.mehe-consultation.is-open .mehe-consultation__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.mehe-consultation.is-closing .mehe-consultation__backdrop {
	opacity: 0;
}

.mehe-consultation.is-closing .mehe-consultation__dialog {
	opacity: 0;
	transform: translateY(26px) scale(0.98);
}

.mehe-consultation__close {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 0;
	border: 1px solid #E3E7E5;
	border-radius: 50%;
	background: #FFFFFF;
	color: #191C1A;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.mehe-consultation__close:hover,
.mehe-consultation__close:focus-visible {
	border-color: #E3E7E5;
	background: #FFFFFF;
	color: #191C1A;
	transform: scale(.94);
}

.mehe-consultation__header {
	padding-inline-end: 48px;
	margin-bottom: 24px;
}

.mehe-consultation__header > span,
.mehe-order-panel__label {
	display: inline-flex;
	margin-bottom: 7px;
	color: #176B45;
	font-size: 0.78rem;
	font-weight: 500;
}

.mehe-consultation__header h2,
.mehe-order-panel h3 {
	margin: 0 0 8px;
	color: #191C1A;
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	line-height: 1.65;
}

.mehe-consultation__header p,
.mehe-order-panel--details > p,
.mehe-order-panel--success > p {
	margin: 0;
	color: #6B726E;
	font-size: 0.88rem;
	line-height: 2;
}

.mehe-order-form {
	position: relative;
	direction: rtl;
}

.mehe-order-panel {
	display: none;
	opacity: 0;
	transform: translateX(-22px);
}

.mehe-order-panel.is-active {
	display: block;
	animation: meheOrderPanelIn 330ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes meheOrderPanelIn {
	from { opacity: 0; transform: translateX(-22px); }
	to { opacity: 1; transform: translateX(0); }
}

.mehe-order-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.mehe-order-field {
	position: relative;
	display: grid;
	gap: 7px;
	margin-bottom: 14px;
}

.mehe-order-field label,
.mehe-settings-form label > span {
	color: #191C1A;
	font-size: 0.79rem;
	font-weight: 500;
}

.mehe-order-field input,
.mehe-order-field textarea,
.mehe-order-subject__control input {
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #E3E7E5;
	border-radius: 12px;
	background: #FFFFFF;
	color: #191C1A;
	font: inherit;
	font-size: 0.86rem;
	box-shadow: none;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mehe-order-field textarea {
	min-height: 124px;
	resize: vertical;
	line-height: 1.9;
}

.mehe-order-field input:focus,
.mehe-order-field textarea:focus,
.mehe-order-subject__control input:focus {
	border-color: #176B45;
	box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.09);
}

.mehe-order-field input.has-error,
.mehe-order-field textarea.has-error,
.mehe-order-subject.has-error .mehe-order-subject__control input {
	border-color: #7A5230;
	background: #F4ECE5;
}

.mehe-order-field__hint {
	color: #6B726E;
	font-size: 0.7rem;
	line-height: 1.7;
}

.mehe-order-subject {
	z-index: 5;
}

.mehe-order-subject__control {
	position: relative;
}

.mehe-order-subject__control input {
	padding-inline-end: 42px;
}

.mehe-order-subject__search {
	position: absolute;
	inset-inline-end: 17px;
	inset-block-start: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid #176B45;
	border-radius: 50%;
	transform: translateY(-58%);
	pointer-events: none;
}

.mehe-order-subject__search::after {
	content: "";
	position: absolute;
	inset-inline-start: -5px;
	inset-block-end: -4px;
	width: 6px;
	height: 2px;
	border-radius: 2px;
	background: #176B45;
	transform: rotate(45deg);
}

.mehe-order-subject__list {
	position: absolute;
	inset-inline: 0;
	inset-block-start: calc(100% - 22px);
	z-index: 20;
	display: grid;
	max-height: 238px;
	padding: 7px;
	border: 1px solid #E3E7E5;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 20px 55px rgba(25, 28, 26, 0.14);
	overflow-y: auto;
}

.mehe-order-subject__list button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 48px;
	padding: 9px 11px;
	border: 0;
	border-radius: 9px;
	background: #FFFFFF;
	color: #191C1A;
	text-align: right;
	cursor: pointer;
}

.mehe-order-subject__list button:hover,
.mehe-order-subject__list button:focus-visible {
	background: #FFFFFF;
	color: #191C1A;
	transform: scale(.97);
}

.mehe-order-subject__list button strong {
	font-size: 0.78rem;
}

.mehe-order-subject__list button small {
	color: #7A5230;
	font-size: 0.65rem;
	white-space: nowrap;
}

.mehe-order-subject__list button.is-filtered {
	display: none;
}

.mehe-order-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 16px;
	margin-bottom: 14px;
	border: 1px solid #176B45;
	border-radius: 14px;
	background: #EAF3EE;
}

.mehe-order-price > div {
	display: grid;
	gap: 3px;
}

.mehe-order-price span {
	color: #6B726E;
	font-size: 0.7rem;
}

.mehe-order-price strong {
	color: #176B45;
	font-size: 0.9rem;
}

.mehe-order-price button,
.mehe-order-form__back {
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid #176B45;
	border-radius: 9px;
	background: #FFFFFF;
	color: #176B45;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
}

.mehe-order-form__message {
	min-height: 24px;
	margin-bottom: 8px;
	color: #7A5230;
	font-size: 0.76rem;
	line-height: 1.8;
}

.mehe-order-form__submit,
.mehe-order-form__done {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 10px 18px;
	border: 1px solid #176B45;
	border-radius: 12px;
	background: #176B45;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform 160ms ease, opacity 160ms ease;
}

.mehe-order-form__submit:hover,
.mehe-order-form__submit:focus-visible,
.mehe-order-form__done:hover,
.mehe-order-form__done:focus-visible {
	transform: scale(.97);
}

.mehe-order-form__submit[disabled] {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.mehe-order-form__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.35);
	border-block-start-color: #FFFFFF;
	border-radius: 50%;
	animation: meheOrderSpin 700ms linear infinite;
}

.mehe-order-form__submit[disabled] .mehe-order-form__spinner {
	display: block;
}

@keyframes meheOrderSpin { to { transform: rotate(360deg); } }

.mehe-order-panel--details,
.mehe-order-panel--success {
	min-height: 350px;
	padding: clamp(22px, 5vw, 42px);
	border: 1px solid #E3E7E5;
	border-radius: 20px;
	background: #FFFFFF;
	text-align: center;
}

.mehe-order-panel--details > p,
.mehe-order-panel--success > p {
	max-width: 520px;
	margin: 0 auto 22px;
}

.mehe-order-panel__price {
	padding: 13px;
	margin-bottom: 20px;
	border-radius: 12px;
	background: #EAF3EE;
	color: #176B45;
	font-weight: 500;
}

.mehe-order-success-mark {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #176B45;
	color: #FFFFFF;
	font-size: 1.5rem;
}

.mehe-order-panel--success > strong {
	display: block;
	margin-bottom: 18px;
	color: #7A5230;
	font-size: 1.05rem;
}


@media (max-width: 1024px) {
	.mehe-mobile-order-bar {
		position: sticky;
		top: 0;
		z-index: 9990;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0 0 14px;
		background: #FFFFFF;
	}

	.admin-bar .mehe-mobile-order-bar {
		top: 32px;
	}

	.mehe-mobile-order-bar__button {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 54px;
		padding: 10px 20px 14px;
		border: 0;
		border-radius: 0;
		background: #176B45;
		color: #FFFFFF;
		font: inherit;
		font-size: 0.92rem;
		font-weight: 500;
		cursor: pointer;
		box-shadow: none;
	}

	.mehe-mobile-order-bar__curtain {
		position: absolute;
		inset-inline: 0;
		inset-block-end: -12px;
		display: flex;
		justify-content: space-between;
		height: 24px;
		pointer-events: none;
		overflow: hidden;
	}

	.mehe-mobile-order-bar__curtain span {
		display: block;
		flex: 1 1 auto;
		max-width: 13%;
		height: 24px;
		margin-inline: -1px;
		border-radius: 0 0 50% 50%;
		background: #176B45;
	}

	.mehe-mobile-order-bar__arrow {
		position: absolute;
		inset-inline-start: 50%;
		inset-block-end: -3px;
		z-index: 2;
		width: 10px;
		height: 10px;
		border-inline-end: 2px solid #FFFFFF;
		border-block-end: 2px solid #FFFFFF;
		transform: translateX(-50%) rotate(45deg);
		animation: meheOrderArrow 1.25s ease-in-out infinite;
	}

	@keyframes meheOrderArrow {
		0%, 100% { translate: 0 -3px; opacity: .55; }
		50% { translate: 0 5px; opacity: 1; }
	}
}

@media (max-width: 782px) {
	.admin-bar .mehe-mobile-order-bar { top: 46px; }
}

@media (max-width: 720px) {
	.mehe-consultation {
		align-items: end;
		padding: 0;
	}

	.mehe-consultation__dialog {
		width: 100%;
		max-height: min(92dvh, 860px);
		padding: 23px 15px 18px;
		border-radius: 24px 24px 0 0;
		transform: translateY(100%);
	}

	.mehe-consultation.is-open .mehe-consultation__dialog {
		transform: translateY(0);
	}

	.mehe-consultation.is-closing .mehe-consultation__dialog {
		transform: translateY(100%);
	}

	.mehe-consultation__header {
		padding-inline-end: 42px;
		margin-bottom: 18px;
	}

	.mehe-consultation__header h2 {
		font-size: 1.28rem;
	}

	.mehe-order-form__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mehe-order-subject__list button {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.mehe-order-price {
		align-items: flex-start;
		flex-direction: column;
	}

	.mehe-order-price button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mehe-consultation *,
	.mehe-mobile-order-bar__arrow,
	.mehe-order-panel.is-active {
		animation: none !important;
		transition-duration: 1ms !important;
	}
}

/* Focused modal and mobile order-bar corrections — v1.4.1 */
.mehe-order-select {
	position: relative;
	width: 100%;
}

.mehe-order-select select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px 10px 44px;
	border: 1px solid #E3E7E5;
	border-radius: 12px;
	background: #FFFFFF;
	color: #191C1A;
	font: inherit;
	font-size: .86rem;
	appearance: none;
	outline: none;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mehe-order-select select:focus {
	border-color: #176B45;
	box-shadow: 0 0 0 3px rgba(23,107,69,.09);
}

.mehe-order-select select.has-error {
	border-color: #7A5230;
	background: #F4ECE5;
}

.mehe-order-select > span {
	position: absolute;
	inset-inline-end: 17px;
	inset-block-start: 50%;
	width: 9px;
	height: 9px;
	border-inline-end: 2px solid #176B45;
	border-block-end: 2px solid #176B45;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.mehe-consultation {
	place-items: center;
	padding: 0;
}

.mehe-consultation__dialog {
	display: flex;
	flex-direction: column;
	width: min(70vw, 980px);
	height: 70dvh;
	max-height: 70dvh;
	padding: clamp(22px, 2.6vw, 34px);
	overflow: hidden;
	transform: translateY(38px) scale(.96);
}

.mehe-consultation__header {
	flex: 0 0 auto;
	margin-bottom: 18px;
}

.mehe-consultation .mehe-order-form {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.mehe-consultation .mehe-order-panel.is-active {
	height: 100%;
	padding: 2px 4px 2px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #176B45 #EAF3EE;
}

.mehe-consultation .mehe-order-panel--details,
.mehe-consultation .mehe-order-panel--success {
	min-height: 100%;
}

.mehe-consultation .mehe-order-form__submit {
	position: sticky;
	inset-block-end: 0;
	z-index: 12;
	margin-top: 4px;
	box-shadow: 0 -10px 24px 14px #FFFFFF;
}

.mehe-consultation.is-open .mehe-consultation__dialog {
	transform: translateY(0) scale(1);
}

.mehe-consultation.is-closing .mehe-consultation__dialog {
	transform: translateY(-22px) scale(.98);
}

@media (max-width: 1024px) {
	.mehe-mobile-order-bar {
		transform: translateY(0);
		opacity: 1;
		transition: transform 360ms cubic-bezier(.4,0,.2,1), opacity 260ms ease;
	}

	.mehe-mobile-order-bar.is-dismissing {
		transform: translateY(-115%);
		opacity: 0;
		pointer-events: none;
	}

	.mehe-mobile-order-bar.is-hidden {
		visibility: hidden;
	}

	.mehe-mobile-order-bar__curtain span {
		transform: translateY(0);
		opacity: 1;
		transition: transform 300ms cubic-bezier(.4,0,.2,1), opacity 220ms ease;
	}

	.mehe-mobile-order-bar.is-dismissing .mehe-mobile-order-bar__curtain span {
		transform: translateY(-120%);
		opacity: 0;
	}

	.mehe-mobile-order-bar.is-dismissing .mehe-mobile-order-bar__curtain span:nth-child(2n) { transition-delay: 28ms; }
	.mehe-mobile-order-bar.is-dismissing .mehe-mobile-order-bar__curtain span:nth-child(3n) { transition-delay: 52ms; }

	.mehe-mobile-order-bar__arrow {
		width: 18px;
		height: 12px;
		border: 0;
		background: #FFFFFF;
		clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 34%, 50% 94%, 0 34%);
		transform: translateX(-50%);
		animation: meheOrderArrowDown 1.2s ease-in-out infinite;
	}

	@keyframes meheOrderArrowDown {
		0%, 100% { transform: translate(-50%, -3px); opacity: .58; }
		50% { transform: translate(-50%, 5px); opacity: 1; }
	}

	.mehe-consultation__dialog {
		width: min(70vw, 860px);
		height: 70dvh;
		max-height: 70dvh;
		border-radius: 24px;
	}
}

@media (max-width: 720px) {
	.mehe-consultation {
		align-items: center;
		padding: 0;
	}

	.mehe-consultation__dialog {
		width: calc(100% - 24px);
		height: 70dvh;
		max-height: 70dvh;
		padding: 20px 13px 12px;
		border-radius: 22px;
		transform: translateY(34px) scale(.96);
	}

	.mehe-consultation.is-open .mehe-consultation__dialog {
		transform: translateY(0) scale(1);
	}

	.mehe-consultation.is-closing .mehe-consultation__dialog {
		transform: translateY(-18px) scale(.98);
	}

	.mehe-consultation__header {
		padding-inline: 42px 4px;
		margin-bottom: 13px;
	}

	.mehe-consultation__header h2 {
		font-size: 1.16rem;
		line-height: 1.55;
	}

	.mehe-consultation__header p {
		font-size: .76rem;
		line-height: 1.75;
	}

	.mehe-order-form__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mehe-order-field {
		margin-bottom: 11px;
	}

	.mehe-order-field input,
	.mehe-order-field textarea,
	.mehe-order-subject__control input,
	.mehe-order-select select {
		min-height: 44px;
		font-size: .8rem;
	}

	.mehe-order-field textarea {
		min-height: 96px;
	}

	.mehe-order-price {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
	}
}

@media (min-width: 721px) {
	.mehe-consultation__dialog {
		width: 70vw;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mehe-mobile-order-bar,
	.mehe-mobile-order-bar__curtain span,
	.mehe-mobile-order-bar__arrow,
	.mehe-consultation__dialog {
		animation: none !important;
		transition-duration: 1ms !important;
	}
}

/* Popup, hidden-scrollbar and mobile order-bar refinements — v1.4.2 */
.mehe-consultation__dialog {
	height: 84dvh;
	max-height: 84dvh;
}

.mehe-consultation__scroll-hint {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 3px 0 12px;
	color: #176B45;
	font-size: .69rem;
	font-weight: 500;
	line-height: 1.8;
}

.mehe-consultation__scroll-hint::before {
	content: "";
	width: 7px;
	height: 7px;
	border-inline-end: 1.5px solid #176B45;
	border-block-end: 1.5px solid #176B45;
	transform: rotate(45deg) translateY(-2px);
	animation: meheFormHint 1.35s ease-in-out infinite;
}

@keyframes meheFormHint {
	0%, 100% { transform: rotate(45deg) translate(-1px, -2px); opacity: .55; }
	50% { transform: rotate(45deg) translate(3px, 2px); opacity: 1; }
}

.mehe-order-panel__scroll {
	min-height: 0;
}

.mehe-order-panel__footer {
	position: relative;
	z-index: 12;
	flex: 0 0 auto;
	padding-top: 7px;
	background: #FFFFFF;
	box-shadow: 0 -12px 25px 12px #FFFFFF;
}

.mehe-order-panel__footer .mehe-order-form__message {
	margin-bottom: 4px;
}

.mehe-consultation .mehe-order-panel[data-mehe-order-panel="form"].is-active {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 4px 2px;
	overflow: hidden;
}

.mehe-consultation .mehe-order-panel__scroll {
	flex: 1 1 auto;
	min-height: 0;
	padding: 2px 2px 18px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.mehe-consultation .mehe-order-panel__scroll::-webkit-scrollbar,
.mehe-consultation .mehe-order-panel.is-active::-webkit-scrollbar,
.mehe-order-subject__list::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mehe-consultation .mehe-order-panel.is-active {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.mehe-consultation .mehe-order-form__submit {
	position: static;
	margin-top: 0;
	box-shadow: none;
}

@media (max-width: 1024px) {
	.mehe-mobile-order-bar {
		padding-bottom: 30px;
		overflow: visible;
	}

	.mehe-mobile-order-bar__button {
		overflow: visible;
	}

	.mehe-mobile-order-bar__arrow-shell {
		position: absolute;
		left: 50%;
		bottom: -28px;
		z-index: 5;
		display: grid;
		place-items: center;
		width: 54px;
		height: 29px;
		border: 4px solid #FFFFFF;
		border-radius: 999px;
		background: #176B45;
		box-shadow: 0 8px 20px rgba(25, 28, 26, .13);
		transform: translateX(-50%);
		animation: meheOrderPillBounce 1.35s ease-in-out infinite;
		pointer-events: none;
	}

	.mehe-mobile-order-bar__arrow {
		position: static;
		display: block;
		width: 10px;
		height: 10px;
		border: 0;
		border-inline-end: 2px solid #FFFFFF;
		border-block-end: 2px solid #FFFFFF;
		background: transparent;
		clip-path: none;
		transform: rotate(45deg) translate(-2px, -2px);
		animation: none;
	}

	@keyframes meheOrderPillBounce {
		0%, 100% { transform: translate(-50%, -2px); }
		50% { transform: translate(-50%, 4px); }
	}

	.mehe-mobile-order-bar.is-dismissing .mehe-mobile-order-bar__arrow-shell {
		animation: none;
		opacity: 0;
		transform: translate(-50%, -16px) scale(.9);
		transition: opacity 190ms ease, transform 260ms ease;
	}

	.mehe-consultation__dialog {
		height: 84dvh;
		max-height: 84dvh;
	}
}

@media (max-width: 720px) {
	.mehe-consultation__dialog {
		width: calc(100% - 24px);
		height: 84dvh;
		max-height: 84dvh;
	}

	.mehe-consultation__scroll-hint {
		font-size: .64rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mehe-consultation__scroll-hint::before,
	.mehe-mobile-order-bar__arrow-shell {
		animation: none !important;
	}
}

/* Keep the new fixed footer styling limited to the popup. */
.mehe-order-panel__footer {
	padding-top: 0;
	background: transparent;
	box-shadow: none;
}

.mehe-consultation .mehe-order-panel__footer {
	padding-top: 7px;
	background: #FFFFFF;
	box-shadow: 0 -12px 25px 12px #FFFFFF;
}
