/* Equipment Marketplace Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

.eqmp-listing-wrap {
	--eqmp-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	--eqmp-primary: #F5B400;
	--eqmp-primary-hover: #d99e00;
	--eqmp-success: #27AE60;
	--eqmp-border: #e0e0e0;
	--eqmp-radius: 12px;
	--eqmp-card-bg: #ffffff;
	--eqmp-text: #1a1a2e;
	--eqmp-text-muted: #6c757d;
	--eqmp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	direction: rtl;
	font-family: var(--eqmp-font);
	max-width: 960px;
	margin: 0 auto;
}

/* ---- Listing Map ---- */
/* ── Request Source Selector (طريقة تقديم الطلب) ──────────── */
.eqmp-listing-wrap .eqmp-request-source-bar {
	background: #f8f9fa;
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.eqmp-listing-wrap .eqmp-request-source-title {
	font-family: var(--eqmp-font);
	font-size: 17px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin: 0 0 14px;
}

.eqmp-listing-wrap .eqmp-request-source-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eqmp-listing-wrap .eqmp-source-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--eqmp-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--eqmp-text);
	transition: color 0.2s;
}

.eqmp-listing-wrap .eqmp-source-option:hover {
	color: var(--eqmp-primary);
}

.eqmp-listing-wrap .eqmp-source-option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--eqmp-primary);
	cursor: pointer;
	flex-shrink: 0;
}

/* ── Supplier Area Deactivated State ─────────────────────── */
#eqmp-supplier-area.eqmp-deactivated {
	opacity: 0.35;
	pointer-events: none;
	filter: grayscale(60%);
	transition: opacity 0.3s, filter 0.3s;
}

/* ── Marketplace Proceed Button ──────────────────────────── */
.eqmp-listing-wrap .eqmp-btn-marketplace-proceed {
	display: block;
	width: 100%;
	padding: 16px 24px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #b8860b 0%, #d4a017 100%);
	color: #fff;
	border: none;
	border-radius: var(--eqmp-radius);
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.eqmp-listing-wrap .eqmp-btn-marketplace-proceed:hover {
	background: linear-gradient(135deg, #9a7209 0%, #b8860b 100%);
	box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
	transform: translateY(-1px);
}

.eqmp-listing-wrap .eqmp-listing-map {
	width: 100%;
	height: 300px;
	border-radius: var(--eqmp-radius);
	border: 1px solid var(--eqmp-border);
	margin-bottom: 20px;
	overflow: hidden;
	z-index: 0;
}

.eqmp-listing-wrap .eqmp-listing-map.eqmp-map-empty {
	display: none;
}

.eqmp-listing-wrap .leaflet-popup-content-wrapper {
	border-radius: 10px !important;
	padding: 0 !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.eqmp-listing-wrap .leaflet-popup-content {
	margin: 0 !important;
	font-family: var(--eqmp-font);
}

.eqmp-listing-wrap .eqmp-map-popup {
	padding: 10px 14px;
	min-width: 180px;
	direction: rtl;
	font-family: var(--eqmp-font);
}

.eqmp-listing-wrap .eqmp-map-popup h4 {
	font-weight: 700;
	font-size: 13px;
	margin: 0 0 4px;
	color: var(--eqmp-text);
}

.eqmp-listing-wrap .eqmp-map-popup .eqmp-map-popup-meta {
	font-size: 11px;
	color: var(--eqmp-text-muted);
	margin: 0 0 2px;
}

.eqmp-listing-wrap .eqmp-map-popup .eqmp-map-popup-verified {
	display: inline-block;
	background: rgba(39, 174, 96, 0.1);
	color: var(--eqmp-success);
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 4px;
}

.eqmp-listing-wrap .eqmp-map-popup .eqmp-map-popup-price {
	font-weight: 700;
	font-size: 12px;
	color: var(--eqmp-text);
	margin: 4px 0 0;
}

/* ---- Department Toggle Bar ---- */
.eqmp-listing-wrap .eqmp-dept-toggle-bar {
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	padding: 16px 20px;
	margin-bottom: 16px;
	font-family: var(--eqmp-font);
}

.eqmp-listing-wrap .eqmp-dept-toggle-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: var(--eqmp-text);
	margin-bottom: 10px;
	text-align: right;
}

.eqmp-listing-wrap .eqmp-dept-toggle-group {
	display: flex;
	gap: 0;
	background: #e9eaed;
	border-radius: 10px;
	padding: 4px;
	overflow: hidden;
}

.eqmp-listing-wrap .eqmp-dept-toggle-bar .eqmp-dept-toggle-btn {
	flex: 1;
	padding: 12px 16px !important;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	background: transparent !important;
	font-family: var(--eqmp-font) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: var(--eqmp-text) !important;
	cursor: pointer !important;
	text-align: center !important;
	transition: all 0.25s ease !important;
	white-space: nowrap;
	outline: none !important;
	box-shadow: none !important;
	line-height: 1.4;
	margin: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.eqmp-listing-wrap .eqmp-dept-toggle-bar .eqmp-dept-toggle-btn:hover {
	border-color: var(--eqmp-primary) !important;
	background: rgba(245, 180, 0, 0.08) !important;
}

.eqmp-listing-wrap .eqmp-dept-toggle-bar .eqmp-dept-toggle-btn:active {
	transform: scale(0.97);
}

.eqmp-listing-wrap .eqmp-dept-toggle-bar .eqmp-dept-toggle-btn.selected {
	background: var(--eqmp-primary) !important;
	color: #fff !important;
	border-color: var(--eqmp-primary) !important;
	box-shadow: 0 2px 8px rgba(245, 180, 0, 0.35) !important;
}


/* ---- Filter Bar ---- */
.eqmp-listing-wrap .eqmp-filters-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	padding: 16px 20px;
	margin-bottom: 20px;
	border: 1px solid var(--eqmp-border);
}

.eqmp-listing-wrap .eqmp-filter-col {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eqmp-listing-wrap .eqmp-filter-label {
	font-weight: 700;
	font-size: 13px;
	color: var(--eqmp-text);
}

.eqmp-listing-wrap .eqmp-filter-selects {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eqmp-listing-wrap .eqmp-filter-select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	color: var(--eqmp-text);
	background: #fff;
	cursor: pointer;
	direction: rtl;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	padding-left: 32px;
}

.eqmp-listing-wrap .eqmp-filter-select:focus {
	border-color: var(--eqmp-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}

.eqmp-listing-wrap .eqmp-filter-select:hover {
	border-color: var(--eqmp-primary);
}

.eqmp-listing-wrap .eqmp-filter-loading {
	color: var(--eqmp-text-muted);
	background-color: #f0f0f0;
}

.eqmp-listing-wrap .eqmp-filter-actions {
	display: flex;
	align-items: flex-start;
	padding-top: 24px;
}

.eqmp-listing-wrap .eqmp-btn-reset {
	padding: 9px 20px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	background: #fff;
	color: var(--eqmp-text-muted);
	font-family: var(--eqmp-font);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.eqmp-listing-wrap .eqmp-btn-reset:hover {
	border-color: var(--eqmp-primary);
	color: var(--eqmp-primary);
	background: rgba(245, 180, 0, 0.05);
}

.eqmp-listing-wrap .eqmp-select-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 16px;
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	padding: 12px 16px;
	margin-bottom: 20px;
	direction: rtl;
}

.eqmp-listing-wrap .eqmp-select-all-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
}

.eqmp-listing-wrap .eqmp-selected-count {
	font-size: 14px;
	color: var(--eqmp-text-muted);
}

.eqmp-listing-wrap .eqmp-hidden {
	display: none !important;
}

.eqmp-listing-wrap .eqmp-suppliers-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.eqmp-listing-wrap .eqmp-supplier-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--eqmp-card-bg);
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 16px 20px;
	direction: rtl;
	transition: box-shadow 0.2s, border-color 0.2s;
	box-shadow: var(--eqmp-shadow);
}

.eqmp-listing-wrap .eqmp-supplier-card:hover {
	border-color: var(--eqmp-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.eqmp-listing-wrap .eqmp-card-select {
	flex-shrink: 0;
}

.eqmp-listing-wrap .eqmp-supplier-checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--eqmp-primary);
}

.eqmp-listing-wrap .eqmp-card-logo {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.eqmp-listing-wrap .eqmp-logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eqmp-listing-wrap .eqmp-logo-placeholder {
	font-size: 11px;
	color: var(--eqmp-text-muted);
	font-weight: 700;
}

.eqmp-listing-wrap .eqmp-card-info {
	flex: 1;
	min-width: 0;
}

.eqmp-listing-wrap .eqmp-card-name {
	font-family: var(--eqmp-font);
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--eqmp-text);
}

.eqmp-listing-wrap .eqmp-card-rating {
	font-size: 14px;
	color: var(--eqmp-text-muted);
	margin-bottom: 4px;
}

.eqmp-listing-wrap .eqmp-star {
	color: var(--eqmp-primary);
	margin-left: 4px;
}

.eqmp-listing-wrap .eqmp-reviews-count {
	font-size: 12px;
	color: var(--eqmp-text-muted);
}

.eqmp-listing-wrap .eqmp-verified-badge {
	display: inline-block;
	background: rgba(39, 174, 96, 0.1);
	color: var(--eqmp-success);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 20px;
	margin-top: 2px;
}

.eqmp-listing-wrap .eqmp-new-badge {
	display: inline-block;
	background: rgba(52, 152, 219, 0.12);
	color: #2980b9;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 20px;
}

.eqmp-listing-wrap .eqmp-card-price {
	flex-shrink: 0;
	text-align: center;
	min-width: 100px;
}

.eqmp-listing-wrap .eqmp-price-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--eqmp-text);
}

.eqmp-listing-wrap .eqmp-price-currency {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	margin-right: 4px;
}

.eqmp-listing-wrap .eqmp-price-unit {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	display: block;
}

.eqmp-listing-wrap .eqmp-card-action {
	flex-shrink: 0;
}

.eqmp-listing-wrap .eqmp-btn-request,
.eqmp-listing-wrap .eqmp-btn-request-selected {
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.eqmp-listing-wrap .eqmp-btn-request {
	background: var(--eqmp-primary);
}

.eqmp-listing-wrap .eqmp-btn-request:hover {
	background: var(--eqmp-primary-hover);
}

.eqmp-listing-wrap .eqmp-btn-request-selected {
	background: var(--eqmp-success);
}

.eqmp-listing-wrap .eqmp-btn-request-selected:hover {
	background: #1e8e4e;
}

/* ── Disabled state for request buttons (mandatory filters not selected) ── */
.eqmp-listing-wrap .eqmp-btn-request.eqmp-btn-disabled,
.eqmp-listing-wrap .eqmp-btn-request-selected.eqmp-btn-disabled,
.eqmp-listing-wrap .eqmp-btn-marketplace-proceed.eqmp-btn-disabled {
	background: #c5c5c5 !important;
	color: #8a8a8a !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
	transform: none !important;
	pointer-events: auto; /* keep clickable so we can show message */
}

.eqmp-listing-wrap .eqmp-btn-request.eqmp-btn-disabled:hover,
.eqmp-listing-wrap .eqmp-btn-request-selected.eqmp-btn-disabled:hover,
.eqmp-listing-wrap .eqmp-btn-marketplace-proceed.eqmp-btn-disabled:hover {
	background: #b5b5b5 !important;
	transform: none !important;
}

/* ── Mandatory filter validation message banner ──────────── */
.eqmp-listing-wrap .eqmp-filter-validation-msg {
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	border: 1px solid #f0c36d;
	border-right: 4px solid #e2a800;
	border-radius: var(--eqmp-radius);
	padding: 14px 20px;
	margin-bottom: 16px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	font-weight: 600;
	color: #6b4c00;
	direction: rtl;
	display: flex;
	align-items: center;
	gap: 8px;
	animation: eqmp-validation-fade-in 0.3s ease;
}

.eqmp-listing-wrap .eqmp-validation-icon {
	font-size: 18px;
	flex-shrink: 0;
}

@keyframes eqmp-validation-fade-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes eqmp-validation-shake {
	0%, 100% { transform: translateX(0); }
	15% { transform: translateX(-6px); }
	30% { transform: translateX(6px); }
	45% { transform: translateX(-4px); }
	60% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
	90% { transform: translateX(2px); }
}

.eqmp-listing-wrap .eqmp-filter-validation-msg.eqmp-validation-shake {
	animation: eqmp-validation-shake 0.5s ease;
}

.eqmp-listing-wrap .eqmp-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--eqmp-text-muted);
	font-size: 16px;
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	border: 2px dashed var(--eqmp-border);
}

/* Overflow notice — shown when 100+ suppliers match */
.eqmp-listing-wrap .eqmp-overflow-notice {
	background: rgba(245, 180, 0, 0.1);
	border: 1px solid var(--eqmp-primary, #F5B400);
	border-radius: var(--eqmp-radius, 8px);
	padding: 12px 16px;
	margin-top: 16px;
	text-align: center;
	direction: rtl;
}

.eqmp-listing-wrap .eqmp-overflow-notice p {
	margin: 0;
	color: #6b4c00;
	font-family: var(--eqmp-font, 'Cairo', sans-serif);
	font-size: 14px;
	font-weight: 600;
}

@media screen and (max-width: 600px) {
	/* -- Department Toggle -- */
	.eqmp-listing-wrap .eqmp-dept-toggle-bar {
		padding: 12px;
	}

	.eqmp-listing-wrap .eqmp-dept-toggle-label {
		display: none;
	}

	.eqmp-listing-wrap .eqmp-dept-toggle-group {
		border-radius: 12px;
		padding: 3px;
	}

	.eqmp-listing-wrap .eqmp-dept-toggle-bar .eqmp-dept-toggle-btn {
		padding: 12px 10px !important;
		font-size: 14px !important;
		border-radius: 10px !important;
		min-height: 44px;
	}

	/* -- Filters -- */
	.eqmp-listing-wrap .eqmp-filters-bar {
		flex-direction: column;
		gap: 12px;
		padding: 12px;
	}

	.eqmp-listing-wrap .eqmp-filter-col {
		min-width: 100%;
	}

	.eqmp-listing-wrap .eqmp-filter-select {
		padding: 12px 14px;
		font-size: 15px;
		padding-left: 36px;
	}

	.eqmp-listing-wrap .eqmp-filter-actions {
		width: 100%;
		padding-top: 0;
	}

	.eqmp-listing-wrap .eqmp-btn-reset {
		width: 100%;
		padding: 12px 20px;
		font-size: 14px;
	}

	/* -- Grid -- */
	.eqmp-listing-wrap .eqmp-suppliers-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	/* -- Supplier Card: row layout with wrapping on mobile -- */
	.eqmp-listing-wrap .eqmp-supplier-card {
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
		padding: 14px;
	}

	/* Row 1 (RTL: checkbox right, logo middle, info fills left) */
	.eqmp-listing-wrap .eqmp-card-select {
		flex-shrink: 0;
		order: 0;
	}

	.eqmp-listing-wrap .eqmp-supplier-checkbox {
		width: 22px;
		height: 22px;
	}

	.eqmp-listing-wrap .eqmp-card-logo {
		width: 52px;
		height: 52px;
		border-radius: 50%;
		order: 1;
	}

	.eqmp-listing-wrap .eqmp-card-info {
		flex: 1;
		min-width: 0;
		order: 2;
	}

	.eqmp-listing-wrap .eqmp-card-name {
		font-size: 15px;
	}

	.eqmp-listing-wrap .eqmp-card-rating {
		font-size: 13px;
	}

	/* Row 2: price (if present) spans full width */
	.eqmp-listing-wrap .eqmp-card-price {
		flex-basis: 100%;
		text-align: right;
		order: 3;
		margin: 0;
		min-width: 100%;
	}

	/* Row 3: button spans full width */
	.eqmp-listing-wrap .eqmp-card-action {
		flex-basis: 100%;
		order: 4;
	}

	.eqmp-listing-wrap .eqmp-btn-request {
		width: 100%;
		padding: 11px 24px;
		font-size: 15px;
		border-radius: 10px;
		-webkit-tap-highlight-color: transparent;
	}

	.eqmp-listing-wrap .eqmp-btn-request:active {
		background: var(--eqmp-primary-hover);
		transform: scale(0.98);
	}

	/* -- Select Bar -- */
	.eqmp-listing-wrap .eqmp-select-bar {
		flex-wrap: wrap;
		padding: 10px 12px;
	}

	/* -- Request Source Bar -- */
	.eqmp-listing-wrap .eqmp-request-source-bar {
		padding: 14px 16px;
	}

	.eqmp-listing-wrap .eqmp-request-source-title {
		font-size: 15px;
	}

	.eqmp-listing-wrap .eqmp-source-option {
		font-size: 13px;
	}

	.eqmp-listing-wrap .eqmp-btn-marketplace-proceed {
		font-size: 14px;
		padding: 14px 20px;
	}

	/* -- Map -- */
	.eqmp-listing-wrap .eqmp-listing-map {
		height: 200px;
		margin-bottom: 14px;
	}

	/* -- Empty state -- */
	.eqmp-listing-wrap .eqmp-empty-state {
		padding: 40px 16px;
		font-size: 14px;
	}

	/* -- Validation message -- */
	.eqmp-listing-wrap .eqmp-filter-validation-msg {
		font-size: 13px;
		padding: 12px 14px;
	}
}

/* AJAX filter loading */
.eqmp-listing-wrap .eqmp-suppliers-grid {
	transition: opacity 0.2s ease;
}

.eqmp-listing-wrap .eqmp-listing-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
}

.eqmp-listing-wrap .eqmp-spinner {
	width: 36px;
	height: 36px;
	border: 4px solid var(--eqmp-border);
	border-top-color: var(--eqmp-primary);
	border-radius: 50%;
	animation: eqmp-spin 0.7s linear infinite;
}

@keyframes eqmp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* --- Order Detail Styles --- */
.eqmp-order-wrap {
	--eqmp-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	--eqmp-primary: #F5B400;
	--eqmp-primary-hover: #d99e00;
	--eqmp-success: #27AE60;
	--eqmp-error: #e74c3c;
	--eqmp-border: #e0e0e0;
	--eqmp-radius: 12px;
	--eqmp-card-bg: #ffffff;
	--eqmp-text: #1a1a2e;
	--eqmp-text-muted: #6c757d;
	--eqmp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	max-width: 1200px;
	margin: 0 auto;
	direction: rtl;
	font-family: var(--eqmp-font);
	box-sizing: border-box;
	padding: 0 16px;
}

.eqmp-order-wrap *,
.eqmp-order-wrap *::before,
.eqmp-order-wrap *::after {
	box-sizing: border-box;
}

/* Error */
.eqmp-error-wrap {
	text-align: center;
	padding: 60px 20px;
	color: var(--eqmp-error);
	font-size: 16px;
	font-weight: 600;
}

/* Header */
.eqmp-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--eqmp-border);
	margin-bottom: 16px;
}

.eqmp-order-header-right {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eqmp-order-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eqmp-order-number {
	font-size: 13px;
	color: var(--eqmp-text-muted);
}

.eqmp-order-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin: 0;
}

/* Buttons */
.eqmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	border: none;
	font-family: var(--eqmp-font);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.eqmp-btn-success {
	background: var(--eqmp-success);
	color: #fff;
}

.eqmp-btn-success:hover {
	background: #1e8e4e;
}

.eqmp-btn-danger {
	background: var(--eqmp-error);
	color: #fff;
}

.eqmp-btn-danger:hover {
	background: #c0392b;
}

.eqmp-btn-outline {
	background: #fff;
	color: var(--eqmp-text);
	border: 1px solid var(--eqmp-border);
}

.eqmp-btn-outline:hover {
	border-color: var(--eqmp-primary);
	color: var(--eqmp-primary);
}

.eqmp-btn-icon {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	transition: background 0.2s;
}

.eqmp-btn-icon:hover {
	background: rgba(0, 0, 0, 0.05);
}

.eqmp-btn-send {
	background: var(--eqmp-primary);
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
}

.eqmp-btn-send:hover {
	background: var(--eqmp-primary-hover);
}

.eqmp-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	direction: rtl;
	transition: border-color 0.2s;
}

.eqmp-input:focus {
	border-color: var(--eqmp-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}

/* Badges */
.eqmp-badge-yellow {
	background: var(--eqmp-primary);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.eqmp-badge-green {
	background: var(--eqmp-success);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.eqmp-badge-red {
	background: var(--eqmp-error);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.eqmp-badge-gray {
	background: #95a5a6;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.eqmp-badge-blue {
	background: #3498db;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* Status badge in header */
.eqmp-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

/* Progress bar */
.eqmp-progress-bar {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-start;
	padding: 30px 0;
	gap: 0;
}

.eqmp-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.eqmp-stage-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
}

.eqmp-stage-label {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
}

.eqmp-stage-done .eqmp-stage-dot {
	background: var(--eqmp-success);
}

.eqmp-stage-active .eqmp-stage-dot {
	background: var(--eqmp-primary);
}

.eqmp-stage-pending .eqmp-stage-dot {
	background: var(--eqmp-border);
	color: var(--eqmp-text-muted);
}

.eqmp-stage-line {
	width: 60px;
	height: 3px;
	background: var(--eqmp-border);
	align-self: center;
	margin-top: 16px;
}

.eqmp-stage-line.eqmp-stage-done {
	background: var(--eqmp-success);
}

/* Layout */
.eqmp-order-content {
	display: flex;
	gap: 24px;
}

.eqmp-order-main {
	width: 65%;
	min-width: 0;
}

.eqmp-order-sidebar {
	width: 35%;
}

/* Tabs */
.eqmp-tabs-bar {
	display: flex;
	border-bottom: 2px solid var(--eqmp-border);
	margin-bottom: 20px;
	overflow-x: auto;
	gap: 0;
}

.eqmp-tab-btn {
	padding: 12px 20px;
	cursor: pointer;
	border: none;
	border-bottom: 3px solid transparent;
	font-weight: 600;
	background: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
	transition: all 0.2s;
}

.eqmp-tab-btn:hover {
	color: var(--eqmp-text);
}

.eqmp-tab-active {
	border-bottom-color: var(--eqmp-primary);
	color: var(--eqmp-primary);
}

.eqmp-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--eqmp-error);
	color: #fff;
	border-radius: 20px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	margin-right: 6px;
}

.eqmp-tab-panel {
	display: none;
}

.eqmp-tab-panel-active {
	display: block;
}

/* Sort bar */
.eqmp-sort-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.eqmp-select {
	padding: 8px 14px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	cursor: pointer;
	direction: rtl;
}

/* Offer Cards */
.eqmp-offer-card {
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 20px;
	margin-bottom: 16px;
	background: var(--eqmp-card-bg);
	position: relative;
	transition: box-shadow 0.2s;
}

.eqmp-offer-card:hover {
	box-shadow: var(--eqmp-shadow);
}

.eqmp-offer-expired {
	opacity: 0.6;
}

.eqmp-offer-rejected {
	opacity: 0.5;
}

.eqmp-offer-accepted {
	border-color: var(--eqmp-success);
	border-width: 2px;
}

.eqmp-best-price-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--eqmp-primary);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.eqmp-offer-banner {
	text-align: center;
	padding: 6px;
	margin: -20px -20px 16px -20px;
	border-radius: var(--eqmp-radius) var(--eqmp-radius) 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.eqmp-banner-expired {
	background: #95a5a6;
}

.eqmp-banner-accepted {
	background: var(--eqmp-success);
}

.eqmp-banner-rejected {
	background: var(--eqmp-error);
}

.eqmp-offer-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.eqmp-supplier-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--eqmp-primary), #ff9800);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.eqmp-supplier-info {
	flex: 1;
	min-width: 0;
}

.eqmp-supplier-info strong {
	font-size: 16px;
	display: block;
	color: var(--eqmp-text);
}

.eqmp-rating {
	font-size: 13px;
	color: var(--eqmp-primary);
}

.eqmp-offer-time {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
}

.eqmp-offer-prices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--eqmp-border);
	border-bottom: 1px solid var(--eqmp-border);
	margin-bottom: 12px;
}

.eqmp-price-item {
	text-align: center;
}

.eqmp-price-label {
	display: block;
	font-size: 12px;
	color: var(--eqmp-text-muted);
	margin-bottom: 4px;
}

.eqmp-price-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-text);
}

.eqmp-offer-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.eqmp-service-badge {
	display: inline-block;
	background: rgba(39, 174, 96, 0.1);
	color: var(--eqmp-success);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.eqmp-offer-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	flex-direction: row-reverse;
}

/* Empty state */
.eqmp-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--eqmp-text-muted);
	font-size: 15px;
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
}

/* Chat */
.eqmp-chat-wrap {
	display: flex;
	height: 500px;
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	overflow: hidden;
}

.eqmp-chat-sidebar {
	width: 30%;
	border-left: 1px solid var(--eqmp-border);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.eqmp-chat-main {
	width: 70%;
	display: flex;
	flex-direction: column;
	background: #fafafa;
}

.eqmp-chat-header {
	padding: 14px 20px;
	border-bottom: 1px solid var(--eqmp-border);
	background: var(--eqmp-card-bg);
}

.eqmp-chat-header h3 {
	margin: 0;
	font-size: 16px;
	color: var(--eqmp-text);
}

.eqmp-chat-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--eqmp-border);
	cursor: pointer;
	transition: background 0.15s;
}

.eqmp-chat-item:hover {
	background: rgba(0, 0, 0, 0.02);
}

.eqmp-chat-item-active {
	border-right: 3px solid var(--eqmp-primary);
	background: rgba(245, 180, 0, 0.05);
}

.eqmp-chat-item-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--eqmp-primary), #ff9800);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}

.eqmp-chat-item-info {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.eqmp-chat-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.eqmp-chat-item-header strong {
	font-size: 14px;
	color: var(--eqmp-text);
}

.eqmp-chat-item-time {
	font-size: 11px;
	color: var(--eqmp-text-muted);
}

.eqmp-chat-item-snippet {
	font-size: 13px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eqmp-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--eqmp-error);
	color: #fff;
	border-radius: 50%;
	min-width: 20px;
	height: 20px;
	font-size: 11px;
	font-weight: 700;
}

.eqmp-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.eqmp-msg {
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}

.eqmp-msg-bubble {
	max-width: 70%;
	padding: 10px 14px;
	border-radius: 12px;
	margin-bottom: 4px;
	font-size: 14px;
	line-height: 1.5;
	word-wrap: break-word;
}

.eqmp-msg-mine .eqmp-msg-bubble {
	background: var(--eqmp-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
	align-self: flex-start;
}

.eqmp-msg-mine .eqmp-msg-time {
	align-self: flex-start;
	font-size: 11px;
	color: var(--eqmp-text-muted);
}

.eqmp-msg-theirs .eqmp-msg-bubble {
	background: #fff;
	border: 1px solid var(--eqmp-border);
	border-bottom-left-radius: 4px;
	align-self: flex-end;
}

.eqmp-msg-theirs .eqmp-msg-time {
	align-self: flex-end;
	font-size: 11px;
	color: var(--eqmp-text-muted);
}

.eqmp-msg-attachment {
	margin-bottom: 8px;
}

.eqmp-msg-attachment img {
	max-width: 200px;
	border-radius: 8px;
	display: block;
}

.eqmp-chat-input-bar {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--eqmp-border);
	background: var(--eqmp-card-bg);
	align-items: center;
}

.eqmp-chat-input-bar .eqmp-input {
	flex: 1;
}

/* Attachments */
#eqmp-upload-area {
	border: 2px dashed var(--eqmp-border);
	text-align: center;
	padding: 40px;
	cursor: pointer;
	border-radius: var(--eqmp-radius);
	margin-bottom: 20px;
	transition: all 0.2s;
}

#eqmp-upload-area:hover,
.eqmp-dragover {
	border-color: var(--eqmp-primary);
	background: rgba(245, 180, 0, 0.05);
}

.eqmp-uploading {
	opacity: 0.6;
	pointer-events: none;
}

.eqmp-upload-hint {
	font-size: 13px;
	color: var(--eqmp-text-muted);
	margin-top: 8px;
}

.eqmp-files-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.eqmp-file-card {
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--eqmp-card-bg);
	transition: box-shadow 0.2s;
}

.eqmp-file-card:hover {
	box-shadow: var(--eqmp-shadow);
}

.eqmp-file-icon {
	font-size: 32px;
	flex-shrink: 0;
}

.eqmp-file-details {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.eqmp-file-name {
	display: block;
	font-weight: 600;
	color: var(--eqmp-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eqmp-file-name:hover {
	color: var(--eqmp-primary);
}

.eqmp-file-meta {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	margin-top: 4px;
}

/* Timeline */
.eqmp-timeline-item {
	display: flex;
	padding-bottom: 20px;
	position: relative;
}

.eqmp-timeline-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 16px;
	z-index: 2;
	font-size: 14px;
	flex-shrink: 0;
}

.eqmp-timeline-item::before {
	content: "";
	position: absolute;
	top: 32px;
	bottom: 0;
	right: 15px;
	width: 2px;
	background: var(--eqmp-border);
	z-index: 1;
}

.eqmp-timeline-item:last-child::before {
	display: none;
}

.eqmp-timeline-content {
	flex: 1;
}

.eqmp-timeline-message {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--eqmp-text);
}

.eqmp-timeline-meta {
	font-size: 12px;
	color: var(--eqmp-text-muted);
}

/* Comparison table */
.eqmp-compare-table {
	width: 100%;
	border-collapse: collapse;
}

.eqmp-compare-table th,
.eqmp-compare-table td {
	padding: 12px;
	border-bottom: 1px solid var(--eqmp-border);
	text-align: center;
	font-size: 14px;
}

.eqmp-compare-table th {
	background: #f8f9fa;
	font-weight: 600;
	color: var(--eqmp-text);
}

.eqmp-compare-table td:first-child {
	text-align: right;
	font-weight: 600;
	color: var(--eqmp-text-muted);
}

.eqmp-best-col {
	background: rgba(245, 180, 0, 0.08);
}

.eqmp-text-strikethrough {
	text-decoration: line-through;
}

.eqmp-text-success {
	color: var(--eqmp-success);
	font-weight: 600;
}

.eqmp-text-danger {
	color: var(--eqmp-error);
	font-weight: 600;
}

.eqmp-text-muted {
	color: var(--eqmp-text-muted);
}

/* ── Complete Request Button ─────────────────────────────────── */
.eqmp-btn-complete {
	background: var(--eqmp-primary);
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--eqmp-font);
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.eqmp-btn-complete:hover {
	background: var(--eqmp-primary-hover, #d99e00);
	transform: translateY(-1px);
}

.eqmp-btn-complete:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Rating Tab ──────────────────────────────────────────────── */
.eqmp-rating-card {
	background: var(--eqmp-card-bg, #fff);
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: var(--eqmp-radius, 12px);
	padding: 24px;
	margin-bottom: 16px;
	text-align: center;
}

.eqmp-rating-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-primary, #F5B400);
	margin: 0 0 16px;
}

/* Stars — shared */
.eqmp-stars-row {
	display: inline-flex;
	gap: 6px;
	direction: ltr;
}

.eqmp-star {
	cursor: pointer;
	color: #d0d0d0;
	transition: color 0.15s, transform 0.15s;
	user-select: none;
	line-height: 1;
}

.eqmp-star:hover {
	transform: scale(1.15);
}

.eqmp-star-filled,
.eqmp-star-hover {
	color: var(--eqmp-primary, #F5B400) !important;
}

/* Large stars (overall) */
.eqmp-stars-large .eqmp-star {
	font-size: 42px;
}

/* Small stars (detail) */
.eqmp-stars-small .eqmp-star {
	font-size: 24px;
}

/* Overall label */
.eqmp-rating-label {
	display: block;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-primary, #F5B400);
	min-height: 24px;
}

/* Detailed rating rows */
.eqmp-detail-rating-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.eqmp-detail-rating-row:last-child {
	border-bottom: none;
}

.eqmp-detail-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--eqmp-text, #1a1a2e);
}

/* Review textarea */
.eqmp-rating-textarea {
	width: 100%;
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: 8px;
	padding: 12px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	resize: vertical;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.eqmp-rating-textarea:focus {
	outline: none;
	border-color: var(--eqmp-primary);
}

.eqmp-rating-textarea[readonly] {
	background: #f9f9f9;
	cursor: default;
}

/* Rating actions */
.eqmp-rating-actions {
	text-align: center;
	margin-top: 8px;
}

.eqmp-btn-submit-rating {
	background: var(--eqmp-primary, #F5B400);
	color: #fff;
	border: none;
	padding: 14px 0;
	width: 100%;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	font-family: var(--eqmp-font);
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.eqmp-btn-submit-rating:hover {
	background: var(--eqmp-primary-hover, #d99e00);
	transform: translateY(-1px);
}

.eqmp-btn-submit-rating:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.eqmp-btn-edit-rating {
	background: transparent;
	color: var(--eqmp-primary, #F5B400);
	border: 2px solid var(--eqmp-primary, #F5B400);
	padding: 12px 36px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--eqmp-font);
	cursor: pointer;
	transition: all 0.2s;
}

.eqmp-btn-edit-rating:hover {
	background: var(--eqmp-primary);
	color: #fff;
}

/* Read-only mode */
.eqmp-rating-readonly .eqmp-star {
	cursor: default;
	pointer-events: none;
}

.eqmp-rating-readonly .eqmp-star:hover {
	transform: none;
}

/* Rating section titles */
.eqmp-rating-section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--eqmp-text, #1a1a2e);
	margin: 0 0 16px;
	text-align: center;
}

.eqmp-rating-divider {
	border: none;
	border-top: 2px solid var(--eqmp-border, #e0e0e0);
	margin: 32px 0 24px;
}

/* Other party review */
.eqmp-other-review-text {
	font-size: 14px;
	color: var(--eqmp-text, #1a1a2e);
	line-height: 1.6;
	text-align: right;
	margin: 0;
	padding: 8px 0;
}

/* Read-only state for my-rating cards (toggled by JS) */
.eqmp-rating-readonly-state .eqmp-star {
	cursor: default;
	pointer-events: none;
}

.eqmp-rating-readonly-state .eqmp-star:hover {
	transform: none;
}

/* Sidebar */
.eqmp-sidebar-card {
	background: var(--eqmp-card-bg);
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 20px;
	position: -webkit-sticky;
	position: sticky;
	top: 20px;
}

.eqmp-sidebar-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin: 0 0 16px;
}

.eqmp-summary-list dt {
	font-weight: 600;
	color: var(--eqmp-text-muted);
	margin-bottom: 4px;
	font-size: 13px;
}

.eqmp-summary-list dd {
	margin: 0 0 14px 0;
	font-weight: 600;
	color: var(--eqmp-text);
	font-size: 14px;
}

.eqmp-sidebar-dates {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--eqmp-border);
	font-size: 13px;
	color: var(--eqmp-text-muted);
}

/* Mobile */
@media (max-width: 768px) {
	.eqmp-order-content {
		flex-direction: column-reverse;
	}

	.eqmp-order-main,
	.eqmp-order-sidebar {
		width: 100%;
	}

	.eqmp-chat-wrap {
		flex-direction: column;
		height: auto;
		min-height: 400px;
	}

	.eqmp-chat-sidebar,
	.eqmp-chat-main {
		width: 100%;
	}

	.eqmp-chat-sidebar {
		max-height: 200px;
		border-left: none;
		border-bottom: 1px solid var(--eqmp-border);
	}

	.eqmp-files-grid {
		grid-template-columns: 1fr;
	}

	.eqmp-offer-prices {
		grid-template-columns: 1fr;
	}

	.eqmp-tabs-bar {
		gap: 0;
	}

	.eqmp-tab-btn {
		padding: 10px 12px;
		font-size: 13px;
	}

	.eqmp-compare-table {
		font-size: 12px;
	}

	.eqmp-compare-table th,
	.eqmp-compare-table td {
		padding: 8px 6px;
	}

	.eqmp-progress-bar {
		gap: 0;
		overflow-x: auto;
	}
}

/* Print */
@media print {

	.eqmp-tabs-bar,
	.eqmp-chat-wrap,
	#eqmp-upload-area,
	.eqmp-btn,
	.eqmp-offer-actions,
	#eqmp-print-btn,
	#eqmp-share-btn {
		display: none !important;
	}

	.eqmp-order-content {
		flex-direction: column;
	}

	.eqmp-order-main,
	.eqmp-order-sidebar {
		width: 100%;
	}
}

/* --- Request Form Styles --- */
.eqmp-form-wrap {
	--eqmp-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	--eqmp-primary: #F5B400;
	--eqmp-primary-hover: #d99e00;
	--eqmp-success: #27AE60;
	--eqmp-border: #e0e0e0;
	--eqmp-radius: 12px;
	--eqmp-card-bg: #ffffff;
	--eqmp-text: #1a1a2e;
	--eqmp-text-muted: #6c757d;
	direction: rtl;
	font-family: var(--eqmp-font);
	max-width: 720px;
	margin: 0 auto;
	padding: 20px;
}

.eqmp-form-wrap .eqmp-back-link {
	display: inline-block;
	color: var(--eqmp-primary);
	font-weight: 600;
	margin-bottom: 20px;
	text-decoration: none;
}

.eqmp-form-wrap .eqmp-back-link:hover {
	text-decoration: underline;
}

/* Info tags bar (pre-selected filters) */
.eqmp-filter-tags-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: rgba(245, 180, 0, 0.06);
	border: 1px solid rgba(245, 180, 0, 0.2);
	border-radius: var(--eqmp-radius, 12px);
}

.eqmp-filter-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	background: var(--eqmp-primary, #F5B400);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-family: var(--eqmp-font);
	border-radius: 20px;
	white-space: nowrap;
	letter-spacing: 0.2px;
}

.eqmp-form-wrap .eqmp-progress-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 32px;
	padding: 16px;
}

.eqmp-form-wrap .eqmp-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	position: relative;
	z-index: 1;
}

.eqmp-form-wrap .eqmp-step-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.3s;
}

.eqmp-form-wrap .eqmp-step-label {
	font-size: 12px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
}

.eqmp-form-wrap .eqmp-progress-line {
	flex: 1;
	height: 3px;
	background: #e0e0e0;
	margin: 0 -8px;
	align-self: flex-start;
	margin-top: 18px;
	transition: background 0.3s;
}

.eqmp-form-wrap .eqmp-progress-step.active .eqmp-step-circle {
	background: var(--eqmp-primary);
	color: #fff;
}

.eqmp-form-wrap .eqmp-progress-step.completed .eqmp-step-circle {
	background: var(--eqmp-success);
	color: #fff;
}

.eqmp-form-wrap .eqmp-progress-line.completed {
	background: var(--eqmp-success);
}

.eqmp-form-wrap .eqmp-step-content {
	display: none;
}

.eqmp-form-wrap .eqmp-step-content.active {
	display: block;
}

.eqmp-form-wrap .eqmp-step-title {
	font-family: var(--eqmp-font);
	font-size: 22px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin-bottom: 24px;
}

.eqmp-form-wrap .eqmp-field-group {
	margin-bottom: 16px;
}

.eqmp-form-wrap .eqmp-field-group label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--eqmp-text);
	margin-bottom: 6px;
}

.eqmp-form-wrap .eqmp-required {
	color: #e74c3c;
}

.eqmp-form-wrap *,
.eqmp-form-wrap *::before,
.eqmp-form-wrap *::after {
	box-sizing: border-box;
}

.eqmp-form-wrap input[type="text"],
.eqmp-form-wrap input[type="tel"],
.eqmp-form-wrap input[type="number"],
.eqmp-form-wrap input[type="date"],
.eqmp-form-wrap select,
.eqmp-form-wrap textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	direction: rtl;
	transition: border-color 0.2s;
}

.eqmp-form-wrap input:focus,
.eqmp-form-wrap select:focus,
.eqmp-form-wrap textarea:focus {
	border-color: var(--eqmp-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}

.eqmp-form-wrap .eqmp-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.eqmp-form-wrap .eqmp-three-col {
	grid-template-columns: 1fr 1fr 1fr;
}

.eqmp-form-wrap .eqmp-load-field-wrap {
	max-width: 280px;
	margin-left: auto;
}

.eqmp-form-wrap .eqmp-load-input-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.eqmp-form-wrap .eqmp-load-input-group input[type="number"] {
	flex: 1;
	-moz-appearance: textfield;
	text-align: center;
}

.eqmp-form-wrap .eqmp-load-input-group input[type="number"]::-webkit-inner-spin-button,
.eqmp-form-wrap .eqmp-load-input-group input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: inner-spin-button;
	opacity: 1;
	height: 36px;
}

.eqmp-form-wrap .eqmp-load-unit {
	font-weight: 600;
	font-size: 14px;
	color: var(--eqmp-text-muted);
	white-space: nowrap;
}

.eqmp-form-wrap .eqmp-load-unit-select {
	width: auto !important;
	min-width: 90px;
	flex-shrink: 0;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text);
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.eqmp-form-wrap .eqmp-full-width {
	grid-column: 1 / -1;
}

.eqmp-form-wrap .eqmp-radio-group {
	display: flex;
	gap: 12px;
}

.eqmp-form-wrap .eqmp-radio-btn {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid var(--eqmp-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--eqmp-font);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
}

.eqmp-form-wrap .eqmp-radio-btn.selected {
	border-color: var(--eqmp-primary);
	background: rgba(245, 180, 0, 0.1);
	color: var(--eqmp-text);
}

.eqmp-form-wrap .eqmp-section-box {
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.eqmp-form-wrap .eqmp-section-box h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin: 0 0 16px;
}

/* Radio question rows (وثائق المعدة section) */
.eqmp-form-wrap .eqmp-radio-question-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--eqmp-border);
	gap: 24px;
}

.eqmp-form-wrap .eqmp-radio-question-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.eqmp-form-wrap .eqmp-radio-question-row:first-of-type {
	padding-top: 0;
}

.eqmp-form-wrap .eqmp-radio-question-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--eqmp-text);
	flex: 1 1 auto;
	min-width: 0;
}

.eqmp-form-wrap .eqmp-radio-options {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 20px;
	flex-shrink: 0;
}

.eqmp-form-wrap .eqmp-radio-options label {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--eqmp-text);
	cursor: pointer;
	margin-bottom: 0;
	white-space: nowrap;
}

.eqmp-form-wrap .eqmp-radio-options input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: var(--eqmp-primary);
	cursor: pointer;
	flex-shrink: 0;
}

.eqmp-form-wrap .eqmp-toggle {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	cursor: pointer;
}

.eqmp-form-wrap .eqmp-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.eqmp-form-wrap .eqmp-toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #ccc;
	border-radius: 26px;
	transition: 0.3s;
}

.eqmp-form-wrap .eqmp-toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
}

.eqmp-form-wrap .eqmp-toggle input:checked+.eqmp-toggle-slider {
	background: var(--eqmp-primary);
}

.eqmp-form-wrap .eqmp-toggle input:checked+.eqmp-toggle-slider:before {
	transform: translateX(22px);
}

.eqmp-form-wrap .eqmp-map-container {
	width: 100%;
	height: 300px;
	border-radius: var(--eqmp-radius);
	border: 1px solid var(--eqmp-border);
	margin-bottom: 16px;
}

.eqmp-form-wrap textarea {
	min-height: 100px;
	resize: vertical;
}

.eqmp-form-wrap .eqmp-step4-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.eqmp-form-wrap .eqmp-summary-box {
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	padding: 20px;
}

.eqmp-form-wrap .eqmp-summary-title,
.eqmp-form-wrap .eqmp-contact-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin: 0 0 16px;
}

.eqmp-form-wrap .eqmp-summary-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--eqmp-border);
}

.eqmp-form-wrap .eqmp-summary-row:last-child {
	border-bottom: none;
}

.eqmp-form-wrap .eqmp-summary-label {
	color: var(--eqmp-text-muted);
	font-size: 14px;
	white-space: nowrap;
}

.eqmp-form-wrap .eqmp-summary-value {
	color: var(--eqmp-text);
	font-weight: 600;
	font-size: 14px;
}

/* ── Marketplace Toggle (نشر في السوق العام) ─────────────────── */
.eqmp-form-wrap .eqmp-marketplace-toggle {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #fef9e7 0%, #fdf2ca 100%);
	border: 1px solid #f0d872;
	border-radius: var(--eqmp-radius);
}

.eqmp-form-wrap .eqmp-toggle-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.eqmp-form-wrap .eqmp-toggle-title {
	font-size: 15px;
	font-weight: 700;
	color: #b8860b;
}

.eqmp-form-wrap .eqmp-toggle-desc {
	font-size: 12px;
	color: #9a7f3c;
}

/* Toggle switch */
.eqmp-form-wrap .eqmp-toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
	flex-shrink: 0;
	cursor: pointer;
}

.eqmp-form-wrap .eqmp-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.eqmp-form-wrap .eqmp-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 26px;
	transition: 0.3s;
}

.eqmp-form-wrap .eqmp-toggle-slider:before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.eqmp-form-wrap .eqmp-toggle input:checked + .eqmp-toggle-slider {
	background-color: #27AE60;
}

.eqmp-form-wrap .eqmp-toggle input:checked + .eqmp-toggle-slider:before {
	transform: translateX(24px);
}

.eqmp-form-wrap .eqmp-nav-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	gap: 12px;
}

.eqmp-form-wrap .eqmp-btn-next {
	background: var(--eqmp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 32px;
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.eqmp-form-wrap .eqmp-btn-next:hover {
	background: var(--eqmp-primary-hover);
}

.eqmp-form-wrap .eqmp-btn-prev {
	background: #fff;
	color: var(--eqmp-text);
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	padding: 12px 32px;
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.eqmp-form-wrap .eqmp-btn-submit {
	background: var(--eqmp-success);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 32px;
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.eqmp-form-wrap .eqmp-btn-submit:hover {
	background: #1e8e4e;
}

.eqmp-form-wrap .eqmp-error-msg {
	color: #e74c3c;
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
	min-height: 20px;
}

.eqmp-form-wrap .eqmp-field-error {
	border-color: #e74c3c !important;
}

.eqmp-form-wrap .eqmp-loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.eqmp-form-wrap .eqmp-loading span {
	background: #fff;
	padding: 20px 40px;
	border-radius: var(--eqmp-radius);
	font-family: var(--eqmp-font);
	font-weight: 700;
	font-size: 16px;
}

@media screen and (max-width: 600px) {

	.eqmp-form-wrap .eqmp-fields-row,
	.eqmp-form-wrap .eqmp-three-col {
		grid-template-columns: 1fr;
	}

	.eqmp-form-wrap .eqmp-radio-group {
		flex-direction: column;
	}

	.eqmp-form-wrap .eqmp-step4-grid {
		grid-template-columns: 1fr;
	}

	.eqmp-form-wrap .eqmp-step-label {
		font-size: 10px;
	}

	.eqmp-form-wrap .eqmp-nav-buttons {
		flex-direction: column-reverse;
	}
}

/* --- Dashboard Styles (Customer & Supplier) --- */
.eqmp-dashboard-wrap {
	--eqmp-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	--eqmp-primary: #F5B400;
	--eqmp-primary-hover: #d99e00;
	--eqmp-success: #27AE60;
	--eqmp-error: #e74c3c;
	--eqmp-border: #e0e0e0;
	--eqmp-radius: 12px;
	--eqmp-card-bg: #ffffff;
	--eqmp-text: #1a1a2e;
	--eqmp-text-muted: #6c757d;
	--eqmp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	direction: rtl;
	font-family: var(--eqmp-font);
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 16px;
	box-sizing: border-box;
}

.eqmp-dashboard-wrap *,
.eqmp-dashboard-wrap *::before,
.eqmp-dashboard-wrap *::after {
	box-sizing: border-box;
}

/* Stats Row */
.eqmp-stats-row {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.eqmp-stat-card {
	flex: 1;
	background: var(--eqmp-card-bg);
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	text-align: center;
	padding: 20px;
	transition: box-shadow 0.2s, border-color 0.2s;
	cursor: pointer;
}

.eqmp-stat-card:hover {
	box-shadow: var(--eqmp-shadow);
}

.eqmp-stat-card.is-active {
	border-color: var(--eqmp-primary);
	box-shadow: var(--eqmp-shadow);
}

.eqmp-stat-number {
	font-size: 28px;
	font-weight: 700;
	color: var(--eqmp-primary);
}

.eqmp-stat-label {
	color: var(--eqmp-text-muted);
	font-size: 14px;
	margin-top: 4px;
}

/* Request List */
.eqmp-dashboard-wrap .eqmp-request-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.eqmp-dashboard-wrap .eqmp-request-card {
	background: var(--eqmp-card-bg);
	border: 1px solid var(--eqmp-border);
	border-radius: var(--eqmp-radius);
	padding: 16px;
	display: flex;
	gap: 16px;
	align-items: center;
	cursor: pointer;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.eqmp-dashboard-wrap .eqmp-request-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: var(--eqmp-primary);
}

.eqmp-request-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
	font-weight: 700;
	font-family: var(--eqmp-font);
	color: var(--eqmp-text);
	overflow: hidden;
}

.eqmp-dashboard-wrap .eqmp-logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eqmp-request-card-info {
	flex-grow: 1;
	min-width: 0;
}

.eqmp-request-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--eqmp-text);
	margin-bottom: 4px;
}

.eqmp-request-card-subtitle {
	font-weight: 600;
	font-size: 14px;
	color: var(--eqmp-text);
	margin-bottom: 4px;
}

.eqmp-request-card-meta {
	font-size: 13px;
	color: var(--eqmp-text-muted);
	display: flex;
	gap: 12px;
}

.eqmp-request-card-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

/* Status Badge */
.eqmp-dashboard-wrap .eqmp-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.eqmp-dashboard-wrap .eqmp-status-badge.is-new,
.eqmp-dashboard-wrap .eqmp-status-badge.is-pending {
	background: rgba(245, 180, 0, 0.12);
	color: var(--eqmp-primary);
}

.eqmp-dashboard-wrap .eqmp-status-badge.is-accepted,
.eqmp-dashboard-wrap .eqmp-status-badge.is-completed {
	background: rgba(39, 174, 96, 0.12);
	color: var(--eqmp-success);
}

.eqmp-dashboard-wrap .eqmp-status-badge.is-gray {
	background: #f0f0f0;
	color: var(--eqmp-text-muted);
}

/* Offers & Detail Links */
.eqmp-offers-count {
	font-size: 13px;
	color: var(--eqmp-text-muted);
}

.eqmp-btn-detail {
	color: var(--eqmp-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}

.eqmp-btn-detail:hover {
	text-decoration: underline;
}

/* Empty State */
.eqmp-dashboard-wrap .eqmp-empty-state {
	text-align: center;
	padding: 48px 20px;
	color: var(--eqmp-text-muted);
	font-size: 16px;
	background: #f8f9fa;
	border-radius: var(--eqmp-radius);
	border: 2px dashed var(--eqmp-border);
}

.eqmp-empty-state-icon {
	font-size: 32px;
	display: block;
	margin-bottom: 16px;
}

/* Pagination */
.eqmp-dashboard-wrap .eqmp-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.eqmp-dashboard-wrap .eqmp-pagination a,
.eqmp-dashboard-wrap .eqmp-pagination span {
	padding: 8px 14px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	color: var(--eqmp-text);
	text-decoration: none;
	font-size: 14px;
	transition: border-color 0.2s;
	min-width: 44px;
	text-align: center;
}

.eqmp-dashboard-wrap .eqmp-pagination a:hover {
	border-color: var(--eqmp-primary);
	color: var(--eqmp-primary);
}

.eqmp-dashboard-wrap .eqmp-pagination .current {
	background: var(--eqmp-primary);
	color: #fff;
	border-color: var(--eqmp-primary);
}

/* Supplier Card Actions */
.eqmp-supplier-card-actions {
	display: flex;
	gap: 8px;
}

.eqmp-btn-submit-offer {
	background: var(--eqmp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: var(--eqmp-font);
	font-size: 14px;
	transition: background 0.2s;
}

.eqmp-btn-submit-offer:hover {
	background: var(--eqmp-primary-hover);
}

.eqmp-btn-submit-offer:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.eqmp-btn-chat,
.eqmp-btn-details {
	border: 1px solid var(--eqmp-border);
	background: #fff;
	color: var(--eqmp-text);
	border-radius: 8px;
	padding: 8px 16px;
	cursor: pointer;
	font-family: var(--eqmp-font);
	font-size: 14px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: border-color 0.2s, color 0.2s;
}

.eqmp-btn-chat:hover,
.eqmp-btn-details:hover {
	border-color: var(--eqmp-primary);
	color: var(--eqmp-primary);
}

/* Modal Overlay */
.eqmp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.eqmp-modal {
	background: #fff;
	border-radius: var(--eqmp-radius);
	padding: 32px;
	max-width: 520px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	direction: rtl;
	font-family: var(--eqmp-font);
}

.eqmp-modal-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 24px;
	color: var(--eqmp-text);
}

.eqmp-modal-field {
	margin-bottom: 16px;
}

.eqmp-modal-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--eqmp-text-muted);
}

.eqmp-modal-field input,
.eqmp-modal-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	font-family: var(--eqmp-font);
	font-size: 14px;
	box-sizing: border-box;
	direction: rtl;
	transition: border-color 0.2s;
}

.eqmp-modal-field input:focus,
.eqmp-modal-field textarea:focus {
	border-color: var(--eqmp-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}

/* Toggle Row */
.eqmp-modal-toggle-row {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
}

/* Toggle Switch — pill style */
.eqmp-toggle-switch {
	width: 48px;
	height: 26px;
	background: #ccc;
	border-radius: 13px;
	cursor: pointer;
	position: relative;
	transition: background 0.2s;
	flex-shrink: 0;
}

.eqmp-toggle-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.eqmp-toggle-switch.active {
	background: var(--eqmp-primary);
}

.eqmp-toggle-switch.active::after {
	transform: translateX(-22px);
}

/* ── Field pairs (side-by-side) ──────────────────────────────── */
.eqmp-modal-field-pair {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}

.eqmp-modal-field-pair > .eqmp-modal-field {
	flex: 1;
	margin-bottom: 0;
}

/* ── Toggle inline (transport row) ───────────────────────────── */
.eqmp-toggle-inline-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
	padding: 8px 0;
	flex-shrink: 0;
}

.eqmp-transport-row {
	align-items: flex-end;
}

/* ── Radio rows ──────────────────────────────────────────────── */
.eqmp-modal-radio-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 4px;
}

.eqmp-modal-radio-row > span {
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
}

.eqmp-radio-options {
	display: flex;
	gap: 16px;
}

.eqmp-radio-options label {
	font-size: 13px;
	font-weight: 500;
	color: var(--eqmp-text, #333);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.eqmp-radio-options input[type="radio"] {
	accent-color: var(--eqmp-primary, #c8a951);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* ── Readonly field ──────────────────────────────────────────── */
.eqmp-readonly-field {
	background: #f8f9fa !important;
	color: #666 !important;
	cursor: not-allowed;
}

/* Modal Actions */
.eqmp-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-start;
	margin-top: 24px;
}

.eqmp-btn-modal-submit {
	background: var(--eqmp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	font-family: var(--eqmp-font);
	transition: background 0.2s;
}

.eqmp-btn-modal-submit:hover {
	background: var(--eqmp-primary-hover);
}

.eqmp-btn-modal-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.eqmp-btn-modal-cancel {
	background: #fff;
	border: 1px solid var(--eqmp-border);
	border-radius: 8px;
	padding: 12px 24px;
	cursor: pointer;
	font-family: var(--eqmp-font);
	font-size: 14px;
	transition: border-color 0.2s;
}

.eqmp-btn-modal-cancel:hover {
	border-color: var(--eqmp-text-muted);
}

/* Field Error */
.eqmp-field-error {
	color: var(--eqmp-error);
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

/* Dashboard Mobile */
@media screen and (max-width: 768px) {
	.eqmp-stats-row {
		flex-wrap: wrap;
	}

	.eqmp-stat-card {
		min-width: calc(50% - 8px);
	}

	.eqmp-dashboard-wrap .eqmp-request-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.eqmp-request-card-actions {
		align-items: flex-start;
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.eqmp-supplier-card-actions {
		flex-wrap: wrap;
	}

	.eqmp-modal {
		width: 100%;
		border-radius: 12px 12px 0 0;
		position: fixed;
		bottom: 0;
		left: 0;
		max-height: 90vh;
		margin: 0;
	}

	.eqmp-modal-toggle-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.eqmp-modal-field-pair {
		flex-direction: column;
		gap: 0;
	}

	.eqmp-modal-field-pair > .eqmp-modal-field {
		margin-bottom: 14px;
	}

	.eqmp-modal-radio-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

@media screen and (max-width: 480px) {
	.eqmp-stat-card {
		min-width: 100%;
	}

	.eqmp-form-wrap .eqmp-step4-grid {
		grid-template-columns: 1fr;
	}

	.eqmp-form-wrap .eqmp-marketplace-toggle {
		flex-direction: row-reverse;
	}

	.eqmp-marketplace-grid {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════════════════════════════════════ */
/*  Marketplace Public Listing (السوق العام)                     */
/* ══════════════════════════════════════════════════════════════ */

/* ── Login gate ──────────────────────────────────────────────── */
.eqmp-marketplace-login-msg {
	max-width: 500px;
	margin: 60px auto;
	text-align: center;
	padding: 48px 32px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--eqmp-border, #e9ecef);
	font-family: var(--eqmp-font, 'Cairo', sans-serif);
}

.eqmp-marketplace-login-msg p {
	font-size: 16px;
	color: var(--eqmp-text, #1a1a2e);
	margin: 0 0 16px;
}

.eqmp-marketplace-login-msg a {
	display: inline-block;
	background: #27AE60;
	color: #fff;
	padding: 10px 32px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s;
}

.eqmp-marketplace-login-msg a:hover {
	background: #219150;
}

/* ── Container ───────────────────────────────────────────────── */
.eqmp-mkt-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 40px;
	font-family: var(--eqmp-font, 'Cairo', sans-serif);
}

/* ── Header (green gradient) ─────────────────────────────────── */
.eqmp-mkt-header {
	background: linear-gradient(135deg, #27AE60 0%, #6FCF97 100%);
	color: #fff;
	padding: 32px 24px;
	border-radius: 16px;
	margin-bottom: 24px;
	text-align: center;
}

.eqmp-mkt-header h2 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
	color: #fff;
}

.eqmp-mkt-header p {
	font-size: 14px;
	margin: 0;
	opacity: 0.9;
}

/* ── Filters bar ─────────────────────────────────────────────── */
.eqmp-mkt-filters {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.eqmp-mkt-search {
	flex: 1;
	min-width: 200px;
}

.eqmp-mkt-search input {
	width: 100%;
	padding: 10px 16px;
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	outline: none;
	transition: border-color 0.2s;
}

.eqmp-mkt-search input:focus {
	border-color: #27AE60;
}

.eqmp-mkt-dropdowns {
	display: flex;
	gap: 8px;
}

.eqmp-mkt-dropdowns select {
	padding: 10px 16px;
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: 10px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	cursor: pointer;
	outline: none;
	min-width: 130px;
}

.eqmp-mkt-dropdowns select:focus {
	border-color: #27AE60;
}

/* ── Cards grid ──────────────────────────────────────────────── */
.eqmp-mkt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.eqmp-mkt-card {
	background: #fff;
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: 16px;
	padding: 20px;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
}

.eqmp-mkt-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Card top — classification badge */
.eqmp-mkt-card-top {
	margin-bottom: 12px;
	text-align: left; /* badge on left in RTL */
}

.eqmp-mkt-badge {
	display: inline-block;
	background: #E8F5E9;
	color: #2E7D32;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
}

/* Card title */
.eqmp-mkt-card-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--eqmp-text, #111);
	margin: 0 0 8px;
	line-height: 1.4;
}

/* Location */
.eqmp-mkt-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--eqmp-text-muted, #6c757d);
	margin-bottom: 12px;
}

.eqmp-mkt-card-location svg {
	flex-shrink: 0;
	color: #27AE60;
}

/* Meta rows (client, etc) */
.eqmp-mkt-card-meta {
	border-top: 1px solid #f1f3f5;
	padding-top: 12px;
	margin-bottom: auto;
}

.eqmp-mkt-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
	font-size: 13px;
}

.eqmp-mkt-meta-label {
	color: var(--eqmp-text-muted, #6c757d);
}

.eqmp-mkt-meta-value {
	font-weight: 600;
	color: var(--eqmp-text, #111);
}

/* Card footer */
.eqmp-mkt-card-footer {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #f1f3f5;
}

.eqmp-mkt-offers-count {
	display: block;
	font-size: 12px;
	color: var(--eqmp-text-muted, #6c757d);
	margin-bottom: 10px;
	text-align: left;
}

.eqmp-mkt-offer-btn {
	display: block;
	width: 100%;
	padding: 10px 0;
	background: #27AE60;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.eqmp-mkt-offer-btn:hover {
	background: #219150;
}

/* ── Empty state ─────────────────────────────────────────────── */
.eqmp-mkt-empty {
	text-align: center;
	padding: 48px 24px;
	color: var(--eqmp-text-muted, #6c757d);
	font-size: 15px;
	background: #f8f9fa;
	border-radius: 12px;
	margin-top: 20px;
}

/* ── Offer Modal ─────────────────────────────────────────────── */
.eqmp-mkt-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.eqmp-mkt-modal-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.eqmp-mkt-modal {
	background: #fff;
	border-radius: 20px;
	width: 90%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	animation: eqmpModalIn 0.3s ease;
}

@keyframes eqmpModalIn {
	from { transform: translateY(24px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.eqmp-mkt-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #f1f3f5;
}

.eqmp-mkt-modal-header h3 {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	color: var(--eqmp-text, #111);
}

.eqmp-mkt-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: var(--eqmp-text-muted, #6c757d);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.eqmp-mkt-modal-body {
	padding: 20px 24px;
}

.eqmp-mkt-modal-request {
	font-size: 14px;
	font-weight: 700;
	color: #27AE60;
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #E8F5E9;
	border-radius: 10px;
}

.eqmp-mkt-form-row {
	margin-bottom: 14px;
}

.eqmp-mkt-form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
	margin-bottom: 6px;
}

.eqmp-mkt-form-row input,
.eqmp-mkt-form-row textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--eqmp-border, #e0e0e0);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.eqmp-mkt-form-row input:focus,
.eqmp-mkt-form-row textarea:focus {
	border-color: #27AE60;
}

.eqmp-mkt-modal-msg {
	display: none;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
}

.eqmp-mkt-modal-msg.success {
	background: #E8F5E9;
	color: #2E7D32;
}

.eqmp-mkt-modal-msg.error {
	background: #FFEBEE;
	color: #C62828;
}

.eqmp-mkt-modal-footer {
	padding: 16px 24px 20px;
	border-top: 1px solid #f1f3f5;
}

.eqmp-mkt-submit-btn {
	display: block;
	width: 100%;
	padding: 12px 0;
	background: #27AE60;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.eqmp-mkt-submit-btn:hover {
	background: #219150;
}

.eqmp-mkt-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ── Modal form pairs (side-by-side fields) ───────────────────── */
.eqmp-mkt-form-pair {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}

.eqmp-mkt-form-pair > .eqmp-mkt-form-row {
	flex: 1;
	margin-bottom: 0;
}

/* ── Modal toggle rows ───────────────────────────────────────── */
.eqmp-mkt-form-toggles {
	margin-bottom: 14px;
	border: 1px solid #f1f3f5;
	border-radius: 10px;
	overflow: hidden;
}

.eqmp-mkt-toggle-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
	border-bottom: 1px solid #f1f3f5;
}

.eqmp-mkt-toggle-row:last-child {
	border-bottom: none;
}

/* ── Toggle inline (transport row) ───────────────────────────── */
.eqmp-mkt-toggle-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
	padding: 8px 0;
	flex-shrink: 0;
}

.eqmp-mkt-transport-row {
	align-items: flex-end;
}

/* ── Toggle switch — shared across toggles and inline ────────── */
.eqmp-mkt-modal .eqmp-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.eqmp-mkt-modal .eqmp-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.eqmp-mkt-modal .eqmp-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: 0.3s;
}

.eqmp-mkt-modal .eqmp-toggle-slider::before {
	content: '';
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
}

.eqmp-mkt-modal .eqmp-toggle input:checked + .eqmp-toggle-slider {
	background: #27AE60;
}

.eqmp-mkt-modal .eqmp-toggle input:checked + .eqmp-toggle-slider::before {
	transform: translateX(20px);
}

/* ── Radio rows ──────────────────────────────────────────────── */
.eqmp-mkt-radio-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 4px;
}

.eqmp-mkt-radio-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--eqmp-text, #111);
}

.eqmp-mkt-radio-options {
	display: flex;
	gap: 16px;
}

.eqmp-mkt-radio-options label {
	font-size: 13px;
	font-weight: 500;
	color: var(--eqmp-text, #333);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.eqmp-mkt-radio-options input[type="radio"] {
	accent-color: #27AE60;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* ── Readonly duration field ─────────────────────────────────── */
.eqmp-mkt-readonly {
	background: #f8f9fa !important;
	color: #666 !important;
	cursor: not-allowed;
}

/* ── Mobile responsive ───────────────────────────────────────── */
@media screen and (max-width: 600px) {
	.eqmp-mkt-filters {
		flex-direction: column;
	}

	.eqmp-mkt-dropdowns {
		width: 100%;
	}

	.eqmp-mkt-dropdowns select {
		flex: 1;
		min-width: 0;
	}

	.eqmp-mkt-grid {
		grid-template-columns: 1fr;
	}

	.eqmp-mkt-modal {
		width: 95%;
		border-radius: 16px;
	}

	.eqmp-mkt-form-pair {
		flex-direction: column;
		gap: 0;
	}

	.eqmp-mkt-form-pair > .eqmp-mkt-form-row {
		margin-bottom: 14px;
	}

	.eqmp-mkt-radio-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}