.emw-active {
	background: #f4f6f5;
}

.emw-active .site-main,
.emw-main {
	margin: 0;
	padding: 0;
}

.emw-active .floating-contact,
.emw-active .ejemoto-floating-social,
.emw-active .quick-contact {
	display: none !important;
}

.emw-main {
	--emw-red: #df1f2d;
	--emw-red-dark: #b81220;
	--emw-ink: #111719;
	--emw-muted: #667176;
	--emw-line: #dfe4e3;
	--emw-soft: #f0f3f2;
	--emw-green: #16884b;
	color: var(--emw-ink);
	background-color: #f4f6f5;
	font-family: inherit;
}

.emw-main *,
.emw-main *::before,
.emw-main *::after {
	box-sizing: border-box;
}

/* Component display rules must not override states controlled by JavaScript. */
.emw-main [hidden] {
	display: none !important;
}

.emw-shell {
	width: min(1460px, calc(100% - 40px));
	margin-inline: auto;
}

.emw-hero {
	border-bottom: 1px solid #2e3435;
	background: #151b1d;
	color: #fff;
}

.emw-hero-grid {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) minmax(540px, 1.3fr);
	gap: 36px 54px;
	align-items: end;
	padding: 44px 0 34px;
}

.emw-kicker {
	display: block;
	margin-bottom: 10px;
	color: #f04651;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.emw-hero h1 {
	max-width: 620px;
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 4vw, 58px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 0.98;
	text-transform: uppercase;
}

.emw-hero h1::after {
	display: block;
	width: 68px;
	height: 4px;
	margin-top: 18px;
	background: var(--emw-red);
	content: "";
}

.emw-hero p {
	margin: 16px 0 0;
	color: #b9c0c1;
	font-size: 17px;
}

.emw-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	align-items: center;
	min-width: 0;
	gap: 10px;
}

.emw-search-field {
	position: relative;
	min-width: 0;
	height: 52px;
}

.emw-search-field .dashicons {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
	pointer-events: none;
	color: #7a8588;
	transform: translateY(-50%);
}

.emw-toolbar input,
.emw-toolbar select {
	display: block;
	width: 100%;
	min-width: 0;
	height: 52px;
	min-height: 52px;
	max-height: 52px;
	margin: 0;
	border: 1px solid #414a4c;
	border-radius: 6px;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

.emw-toolbar input,
.emw-toolbar select {
	background: #fff;
	color: var(--emw-ink);
}

.emw-toolbar input {
	padding: 0 18px 0 46px;
}

.emw-toolbar select {
	padding: 0 30px 0 14px;
}

.emw-toolbar .emw-import-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-color: var(--emw-red);
	background: var(--emw-red);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.emw-toolbar .emw-import-trigger:hover {
	background: var(--emw-red-dark);
}

.emw-confirmation-note {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: 7px;
	margin: -22px 0 0 !important;
	font-size: 12px !important;
}

.emw-confirmation-note .dashicons {
	color: #f04651;
}

.emw-workspace {
	display: grid;
	grid-template-columns: 220px minmax(570px, 1fr) 330px;
	gap: 20px;
	align-items: start;
	padding: 28px 0 60px;
}

.emw-categories,
.emw-catalog,
.emw-request {
	border: 1px solid var(--emw-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(18, 31, 35, 0.04);
}

.emw-categories {
	position: sticky;
	top: var(--emw-sticky-top, 140px);
	overflow: hidden;
	padding: 8px;
}

.emw-category {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 9px 10px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #394346;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.emw-category + .emw-category {
	margin-top: 2px;
}

.emw-category .dashicons {
	color: #7a8588;
	font-size: 19px;
}

.emw-category small {
	min-width: 26px;
	padding: 3px 6px;
	border-radius: 10px;
	background: #edf0ef;
	color: #6d7678;
	font-size: 10px;
	text-align: center;
}

.emw-category:hover,
.emw-category.is-active {
	background: #171d1f;
	color: #fff;
}

.emw-category:hover .dashicons,
.emw-category.is-active .dashicons {
	color: #f04651;
}

.emw-category:hover small,
.emw-category.is-active small {
	background: #31393b;
	color: #fff;
}

.emw-help {
	display: grid;
	gap: 5px;
	margin: 12px 2px 2px;
	padding: 16px 14px;
	border-top: 1px solid var(--emw-line);
	background: #f7f9f8;
	font-size: 12px;
}

.emw-help strong {
	font-size: 13px;
}

.emw-help span {
	color: var(--emw-muted);
}

.emw-help a {
	margin-top: 6px;
	color: var(--emw-red);
	font-weight: 800;
	text-decoration: none;
}

.emw-catalog {
	min-width: 0;
	overflow: hidden;
}

.emw-catalog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 22px 17px;
	border-bottom: 1px solid var(--emw-line);
}

.emw-catalog-head h2,
.emw-request-titlebar h2,
.emw-dialog-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.emw-catalog-head p {
	margin: 4px 0 0;
	color: var(--emw-muted);
	font-size: 12px;
}

.emw-clear-filters,
.emw-request-titlebar button,
.emw-dialog-close {
	border: 0;
	background: transparent;
	color: var(--emw-red);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.emw-table {
	width: 100%;
}

.emw-table-header,
.emw-product-row {
	display: grid;
	grid-template-columns: 68px 96px minmax(178px, 1fr) 132px 114px 108px;
	gap: 10px;
	align-items: center;
}

.emw-table-header {
	min-height: 42px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--emw-line);
	background: #f2f4f3;
	color: #697376;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.emw-product-row {
	min-height: 86px;
	padding: 10px 16px;
	border-bottom: 1px solid #e8eceb;
}

.emw-product-row:last-child {
	border-bottom: 0;
}

.emw-product-row:hover {
	background: #fafbfb;
}

.emw-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	overflow: hidden;
	border: 1px solid #e4e8e7;
	border-radius: 5px;
	background: #fff;
}

.emw-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.emw-product-sku {
	overflow-wrap: anywhere;
	color: #30393c;
	font-size: 12px;
	font-weight: 900;
}

.emw-product-name {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.emw-product-name strong {
	display: -webkit-box;
	overflow: hidden;
	color: #222a2c;
	font-size: 13px;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.emw-product-name small {
	overflow: hidden;
	color: #7a8588;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emw-product-name a {
	color: inherit;
	text-decoration: none;
}

.emw-product-name a:hover {
	color: var(--emw-red);
}

.emw-price {
	color: var(--emw-red);
	font-size: 16px;
	font-weight: 900;
	white-space: nowrap;
}

.emw-stepper {
	display: grid;
	grid-template-columns: 32px 1fr 32px;
	align-items: stretch;
	overflow: hidden;
	min-height: 36px;
	border: 1px solid #d7dcdb;
	border-radius: 5px;
	background: #fff;
}

.emw-stepper button,
.emw-stepper input {
	min-width: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #394346;
	font: inherit;
	font-weight: 800;
	text-align: center;
}

.emw-stepper button {
	cursor: pointer;
}

.emw-stepper input {
	width: 100%;
	padding: 0;
	-moz-appearance: textfield;
}

.emw-stepper input::-webkit-inner-spin-button,
.emw-stepper input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.emw-add {
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--emw-red);
	border-radius: 5px;
	background: var(--emw-red);
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.emw-add:hover,
.emw-add.is-added {
	border-color: #16884b;
	background: #16884b;
}

.emw-empty,
.emw-request-empty {
	display: grid;
	gap: 5px;
	place-items: center;
	padding: 48px 24px;
	color: var(--emw-muted);
	font-size: 13px;
	text-align: center;
}

.emw-empty strong,
.emw-request-empty strong {
	color: var(--emw-ink);
	font-size: 15px;
}

.emw-load-more {
	display: block;
	min-width: 210px;
	min-height: 44px;
	margin: 22px auto;
	padding: 10px 22px;
	border: 1px solid #cfd5d4;
	border-radius: 5px;
	background: #fff;
	color: #20282a;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.emw-request {
	position: sticky;
	top: var(--emw-sticky-top, 140px);
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - var(--emw-sticky-top, 140px) - 20px);
	scroll-margin-top: var(--emw-sticky-top, 140px);
	overflow: hidden;
}

.emw-request-titlebar,
.emw-request-summary {
	flex-shrink: 0;
}

.emw-request-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 17px 18px;
	border-bottom: 1px solid var(--emw-line);
}

.emw-request-titlebar > div,
.emw-request-titlebar > div:first-child {
	display: flex;
	align-items: center;
	gap: 8px;
}

.emw-request-titlebar .dashicons {
	color: var(--emw-red);
}

.emw-request-titlebar h2 {
	font-size: 17px;
}

.emw-request-close {
	display: none;
}

.emw-request-items {
	min-height: 0;
	max-height: min(42vh, 430px);
	overflow-y: auto;
}

.emw-request-item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #e8eceb;
}

.emw-request-item img {
	width: 46px;
	height: 46px;
	border: 1px solid #e1e6e5;
	border-radius: 4px;
	object-fit: contain;
}

.emw-request-item-info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.emw-request-item-info strong {
	overflow: hidden;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emw-request-item-info span {
	color: var(--emw-muted);
	font-size: 10px;
}

.emw-request-item-controls {
	display: flex;
	align-items: center;
	gap: 5px;
}

.emw-request-item-controls button {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	padding: 0;
	border: 1px solid #d7dddc;
	border-radius: 4px;
	background: #fff;
	color: #2c3537;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.emw-request-item-controls .emw-remove-item {
	border-color: transparent;
	color: var(--emw-red);
}

.emw-request-item-controls span {
	min-width: 22px;
	font-size: 11px;
	font-weight: 900;
	text-align: center;
}

.emw-request-summary {
	display: grid;
	gap: 10px;
	padding: 16px;
	border-top: 1px solid var(--emw-line);
	background: #f7f9f8;
}

.emw-request-summary > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.emw-request-summary span {
	font-size: 12px;
	font-weight: 800;
}

.emw-request-summary strong {
	color: var(--emw-red);
	font-size: 21px;
}

.emw-request-summary small {
	color: var(--emw-muted);
	font-size: 10px;
}

.emw-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--emw-ink);
	border-radius: 5px;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.emw-whatsapp {
	border-color: var(--emw-green);
	background: var(--emw-green);
	color: #fff;
}

.emw-whatsapp.is-disabled {
	border-color: #bfc6c5;
	background: #bfc6c5;
	pointer-events: none;
}

.emw-mobile-request {
	display: none;
}

.emw-import-dialog {
	width: min(560px, calc(100% - 32px));
	padding: 0;
	border: 0;
	border-radius: 9px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.emw-import-dialog::backdrop {
	background: rgba(12, 16, 17, 0.76);
}

.emw-import-dialog form {
	display: grid;
	gap: 16px;
	padding: 24px;
}

.emw-dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.emw-import-dialog p,
.emw-import-dialog label {
	margin: 0;
	font-size: 13px;
}

.emw-import-dialog label {
	font-weight: 800;
}

.emw-import-dialog textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #cfd6d4;
	border-radius: 5px;
	font: inherit;
	line-height: 1.55;
	resize: vertical;
}

.emw-import-feedback {
	min-height: 20px;
	color: var(--emw-muted);
}

.emw-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.emw-dialog-actions button {
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid #cfd6d4;
	border-radius: 5px;
	background: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.emw-dialog-actions .emw-import-apply {
	border-color: var(--emw-red);
	background: var(--emw-red);
	color: #fff;
}

.emw-main :focus-visible {
	outline: 3px solid #ffb3b8;
	outline-offset: 2px;
}

@media (max-width: 1240px) {
	.emw-workspace {
		grid-template-columns: 190px minmax(560px, 1fr) 300px;
	}

	.emw-table-header,
	.emw-product-row {
		grid-template-columns: 58px 82px minmax(150px, 1fr) 120px 104px 94px;
		gap: 8px;
		padding-inline: 12px;
	}
}

@media (max-width: 1080px) {
	.emw-hero-grid {
		grid-template-columns: 1fr;
	}

	.emw-confirmation-note {
		grid-column: 1;
		margin: -20px 0 0 !important;
	}

	.emw-workspace {
		grid-template-columns: 1fr 300px;
	}

	.emw-categories {
		position: static;
		grid-column: 1 / -1;
		display: flex;
		overflow-x: auto;
		padding: 8px;
	}

	.emw-category {
		flex: 0 0 auto;
		grid-template-columns: 22px auto auto;
		width: auto;
		min-height: 42px;
	}

	.emw-category + .emw-category {
		margin: 0 0 0 3px;
	}

	.emw-help {
		display: none;
	}
}

@media (max-width: 820px) {
	.emw-shell {
		width: min(100% - 24px, 720px);
	}

	.emw-hero-grid {
		gap: 30px;
		padding: 34px 0 28px;
	}

	.emw-toolbar {
		grid-template-columns: 1fr;
	}

	.emw-search-field {
		grid-column: 1 / -1;
	}

	.emw-confirmation-note {
		margin-top: -16px !important;
	}

	.emw-workspace {
		grid-template-columns: 1fr;
		padding-bottom: 94px;
	}

	.emw-categories,
	.emw-catalog {
		grid-column: 1;
	}

	.emw-request {
		position: fixed;
		z-index: 100001;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		max-height: calc(100dvh - 24px);
		transform: translateY(calc(100% + 28px));
		transition: transform 180ms ease;
	}

	.emw-request-open .emw-request {
		transform: translateY(0);
	}

	.emw-request-open::after {
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(10, 14, 15, 0.72);
		content: "";
	}

	.emw-request-close {
		display: inline-block;
	}

	.emw-request-items {
		max-height: calc(100dvh - 300px);
	}

	.emw-mobile-request {
		position: fixed;
		z-index: 99999;
		right: 14px;
		bottom: 14px;
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 50px;
		padding: 10px 14px 10px 18px;
		border: 0;
		border-radius: 26px;
		background: var(--emw-red);
		box-shadow: 0 12px 30px rgba(46, 12, 15, 0.28);
		color: #fff;
		font: inherit;
		font-size: 12px;
		font-weight: 900;
		cursor: pointer;
	}

	.emw-mobile-request strong {
		display: grid;
		width: 28px;
		height: 28px;
		place-items: center;
		border-radius: 50%;
		background: #fff;
		color: var(--emw-red);
	}
}

@media (max-width: 680px) {
	.emw-toolbar {
		grid-template-columns: 1fr;
	}

	.emw-search-field {
		grid-column: 1;
	}

	.emw-table-header {
		display: none;
	}

	.emw-product-row {
		grid-template-columns: 62px minmax(0, 1fr) auto;
		grid-template-areas:
			"image name price"
			"image sku price"
			"stepper stepper add";
		gap: 7px 10px;
		padding: 13px;
	}

	.emw-product-image {
		grid-area: image;
	}

	.emw-product-sku {
		grid-area: sku;
	}

	.emw-product-name {
		grid-area: name;
	}

	.emw-product-name small:not(.emw-image-note) {
		display: none;
	}

	.emw-price {
		grid-area: price;
		align-self: start;
		font-size: 14px;
		text-align: right;
	}

	.emw-stepper {
		grid-area: stepper;
		width: 116px;
	}

	.emw-add {
		grid-area: add;
		min-width: 105px;
	}

	.emw-catalog-head {
		padding-inline: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emw-request {
		transition: none;
	}
}
