.maximoil-of-widget {
	max-width: 380px;
	margin: 0 auto;
	font-family: inherit;
}

.maximoil-of-card {
	background: linear-gradient(160deg, #2438a8 0%, #1a2a7a 55%, #16215f 100%);
	border-radius: 22px;
	padding: 28px 22px;
	box-shadow: 0 12px 34px rgba(20, 30, 90, 0.45);
	border: 1px solid rgba(196, 217, 46, 0.15);
}

.maximoil-of-title {
	color: #c3d92e;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.7;
	margin: 6px 0 24px;
}

.maximoil-of-subtitle {
	color: #e7ecf7;
	text-align: center;
	font-size: 13px;
	margin-top: -14px;
	margin-bottom: 20px;
	opacity: 0.85;
}

.maximoil-of-field {
	position: relative;
	margin-bottom: 14px;
}

.maximoil-of-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 14px;
	font-family: inherit;
	text-align: right;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.maximoil-of-select:focus {
	outline: none;
	border-color: #c3d92e;
}

.maximoil-of-select:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.maximoil-of-select option {
	background: #1a2a7a;
	color: #fff;
}

.maximoil-of-chevron {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #c3d92e;
	pointer-events: none;
	font-size: 14px;
}

.maximoil-of-submit {
	width: 100%;
	margin-top: 10px;
	padding: 15px 18px;
	border: none;
	border-radius: 30px;
	background: linear-gradient(180deg, #d4e94a 0%, #b8ce22 100%);
	color: #16215f;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 6px 16px rgba(195, 217, 46, 0.25);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.maximoil-of-submit:hover {
	filter: brightness(1.05);
}

.maximoil-of-submit:active {
	transform: scale(0.98);
}

.maximoil-of-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.maximoil-of-result {
	position: relative;
	margin-top: 20px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 18px;
	color: #ffffff;
}

.maximoil-of-close {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease;
}

.maximoil-of-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* ==================== شبکه‌ی محصولات مناسب ==================== */
.maximoil-of-products-loading {
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	padding: 14px 0 4px;
}

.maximoil-of-products-title {
	font-size: 13px;
	font-weight: 700;
	margin: 16px 0 10px;
	color: #fff;
}

.maximoil-of-products-row {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
}

.maximoil-of-product-card {
	flex: 0 0 120px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	padding: 8px;
	text-decoration: none;
	color: #222;
	display: block;
	transition: transform 0.15s ease;
}

.maximoil-of-product-card:hover {
	transform: translateY(-3px);
}

.maximoil-of-product-card img {
	width: 100%;
	height: 80px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}

.maximoil-of-product-name {
	font-size: 11px;
	font-weight: 600;
	margin-top: 6px;
	line-height: 1.4;
	max-height: 2.8em;
	overflow: hidden;
}

.maximoil-of-product-price {
	font-size: 11px;
	font-weight: 700;
	color: #1c2c86;
	margin-top: 4px;
}

.maximoil-of-result h3 {
	color: #c3d92e;
	margin: 0 0 10px;
	font-size: 16px;
}

.maximoil-of-result .maximoil-of-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
	color: #e7ecf7;
}

.maximoil-of-result .maximoil-of-row:last-of-type {
	border-bottom: none;
}

.maximoil-of-result .maximoil-of-note {
	margin-top: 10px;
	font-size: 12px;
	color: #c9d1ee;
	line-height: 1.8;
}

.maximoil-of-result a.maximoil-of-product-link {
	display: block;
	text-align: center;
	margin-top: 14px;
	background: linear-gradient(180deg, #d4e94a 0%, #b8ce22 100%);
	color: #16215f;
	font-weight: 700;
	padding: 10px;
	border-radius: 30px;
	text-decoration: none;
}

.maximoil-of-result.maximoil-of-error {
	color: #ffb4b0;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
}

/* ==================== حالت افقی (مخصوص هدر یا نوارهای عریض سایت) ==================== */
.maximoil-of-widget--horizontal {
	max-width: 1090px;
	margin: 0 auto;
}

@media (min-width: 782px) {
	.maximoil-of-widget--horizontal .maximoil-of-card {
		padding: 22px 29px;
	}
	.maximoil-of-widget--horizontal .maximoil-of-title {
		font-size: 19px;
		margin: 0 0 14px;
	}
	.maximoil-of-widget--horizontal .maximoil-of-fields-row {
		display: flex;
		align-items: flex-start;
		gap: 12px;
	}
	.maximoil-of-widget--horizontal .maximoil-of-field {
		flex: 1;
		margin-bottom: 0;
		min-width: 0;
	}
	.maximoil-of-widget--horizontal .maximoil-of-select {
		padding: 14px 20px;
		font-size: 15px;
	}
	.maximoil-of-widget--horizontal .maximoil-of-submit {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		margin-top: 0;
		padding: 14px 34px;
		font-size: 15px;
	}
	.maximoil-of-widget--horizontal .maximoil-of-result {
		margin-top: 14px;
	}
}
