/* ===== پاپ‌آپ و دکمه‌ی استعلام قیمت ===== */
.eh-inquiry-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.eh-inquiry-cta__label { color: var(--eh-muted, #717171); font-size: 12.5px; font-weight: 700; }
.eh-inquiry-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #2d3cb8, var(--eh-primary, #242f9b)); color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(36, 47, 155, .22); transition: transform .18s ease, box-shadow .18s ease; }
.eh-inquiry-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(36, 47, 155, .28); }
.eh-inquiry-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eh-inquiry-call { color: var(--eh-primary, #242f9b); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.eh-inquiry-call:hover { text-decoration: underline; }
.eh-call-order { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; border: 1px dashed #c9cff5; border-radius: 18px; background: linear-gradient(135deg, #f6f7ff, #fff); }
.eh-call-order > p { margin: 0; color: #4d5370; font-size: 13px; line-height: 2; }
.eh-call-order .eh-inquiry-btn { min-width: 220px; }
.eh-p-card__price .eh-inquiry-cta, .eh-p-row__price .eh-inquiry-cta { gap: 5px; }
.eh-p-card__price .eh-inquiry-btn, .eh-p-row__price .eh-inquiry-btn { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12px; box-shadow: none; }
.eh-p-card__price .eh-inquiry-btn svg, .eh-p-row__price .eh-inquiry-btn svg { width: 15px; height: 15px; }
.eh-p-card__price .eh-inquiry-call, .eh-p-row__price .eh-inquiry-call { display: none; }
.eh-p-card__price .eh-inquiry-cta__label, .eh-p-row__price .eh-inquiry-cta__label { font-size: 11px; }
.eh-seller-card .eh-inquiry-btn { width: 100%; }

html.eh-inq-lock { overflow: hidden; }
.eh-inq { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; direction: rtl; font-family: inherit; }
.eh-inq.is-open { display: flex; }
.eh-inq__backdrop { position: absolute; inset: 0; background: rgba(17, 22, 56, .55); backdrop-filter: blur(3px); }
.eh-inq__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 22px 20px; border-radius: 22px; background: #fff; color: var(--eh-ink, #1c1c25); box-shadow: 0 30px 70px rgba(17, 22, 56, .35); animation: ehInqIn .22s ease; }
@keyframes ehInqIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.eh-inq__x { position: absolute; top: 12px; left: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f2f8; color: #4a53a8; font-size: 22px; line-height: 1; cursor: pointer; }
.eh-inq__x:hover { background: #e4e7f7; }
.eh-inq__box h2 { margin: 0 0 6px; padding-inline-start: 0; font-size: 19px; font-weight: 800; }
.eh-inq__intro { margin: 0 0 14px; color: #5b6075; font-size: 13px; line-height: 2; }
.eh-inq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.eh-inq__field { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: #3a3f58; }
.eh-inq__grid .eh-inq__field { margin-bottom: 0; }
.eh-inq__field-label b, .eh-inq__qty-label b { color: #e03c1f; }
.eh-inq__field input:not([type="hidden"]), .eh-inq__field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid #dfe3f5; border-radius: 12px; background: #fafbff; color: var(--eh-ink, #1c1c25); font-family: inherit; font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.eh-inq__field textarea { min-height: 70px; resize: vertical; }
.eh-inq__field input:focus, .eh-inq__field textarea:focus { border-color: var(--eh-primary, #242f9b); background: #fff; box-shadow: 0 0 0 3px rgba(36, 47, 155, .12); }
.eh-inq__err { min-height: 0; color: #d33a1e; font-size: 11.5px; font-style: normal; font-weight: 600; }
.eh-inq__err:empty { display: none; }
.eh-inq__trap { position: absolute; right: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.eh-inq__msg { min-height: 0; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.eh-inq__msg:empty { display: none; }
.eh-inq__msg.is-ok { padding: 10px 12px; border-radius: 12px; background: #e6f6ef; color: #0e6f4c; }
.eh-inq__msg.is-bad { padding: 10px 12px; border-radius: 12px; background: #fdeceb; color: #b4281a; }
.eh-inq__actions { display: flex; align-items: center; gap: 10px; }
.eh-inq__actions[hidden] { display: none; }
.eh-inq__submit { flex: 1; min-height: 46px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #2d3cb8, var(--eh-primary, #242f9b)); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(36, 47, 155, .22); }
.eh-inq__submit:disabled { opacity: .6; cursor: wait; }
.eh-inq__cancel { min-height: 46px; padding: 0 18px; border: 1.5px solid #dfe3f5; border-radius: 14px; background: #fff; color: #4a53a8; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.eh-inq__cancel:hover { background: #f4f5fc; }
@media (max-width: 560px) {
    .eh-inq { align-items: flex-end; padding: 0; }
    .eh-inq__box { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 22px 16px 18px; }
    .eh-inq__grid { grid-template-columns: 1fr; }
}


/* ===== بازطراحی بخش استعلام ===== */
.eh-inquiry-cta { display: grid; gap: 10px; width: 100%; }
.eh-inquiry-cta__label { display: flex; align-items: center; gap: 8px; color: var(--eh-ink, #1c1c25); font-size: 17px; font-weight: 900; line-height: 1.5; }
.eh-inquiry-cta__label svg { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: var(--eh-primary, #242f9b); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eh-inquiry-cta__hint { color: var(--eh-muted, #717171); font-size: 12px; line-height: 1.9; }
.eh-inquiry-btn { width: 100%; min-height: 50px; border-radius: 15px; font-size: 14.5px; }
.eh-inquiry-call { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 0 2px; color: var(--eh-muted, #717171); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.eh-inquiry-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eh-inquiry-call b { color: var(--eh-primary, #242f9b); font-weight: 800; letter-spacing: .3px; }
.eh-inquiry-call:hover b { text-decoration: underline; }

/* داخل بخش تیره‌ی کارت فروشنده */
.eh-seller-card__price-panel .eh-inquiry-cta { gap: 11px; padding-top: 4px; }
.eh-seller-card__price-panel .eh-inquiry-cta__label { color: #fff; font-size: 18px; }
.eh-seller-card__price-panel .eh-inquiry-cta__label svg { stroke: var(--eh-accent, #f0bb40); }
.eh-seller-card__price-panel .eh-inquiry-cta__hint { color: #cfd4fb; }
.eh-seller-card__price-panel .eh-inquiry-btn { background: #fff; color: var(--eh-primary, #242f9b); box-shadow: 0 12px 26px rgba(8, 12, 50, .32); }
.eh-seller-card__price-panel .eh-inquiry-btn:hover { background: var(--eh-accent, #f0bb40); color: #3b2a00; }
.eh-seller-card__price-panel .eh-inquiry-call { color: #cfd4fb; }
.eh-seller-card__price-panel .eh-inquiry-call b { color: #fff; }
.eh-seller-card__price .eh-inquiry-cta { flex: 1 1 100%; }
.eh-seller-card__availability--ask i { background: var(--eh-accent, #f0bb40); }

/* مراحل استعلام */
.eh-inquiry-steps { margin-top: 14px; padding: 14px 14px 12px; border-radius: 16px; background: linear-gradient(160deg, #f6f7ff, #fff); border: 1px solid #e3e6f8; }
.eh-inquiry-steps__title { margin: 0 0 12px; color: var(--eh-primary, #242f9b); font-size: 13px; font-weight: 800; }
.eh-inquiry-steps ol { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.eh-inquiry-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.eh-inquiry-steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: 12px; width: 2px; height: calc(100% - 14px); background: repeating-linear-gradient(to bottom, #c9cff5 0 4px, transparent 4px 8px); }
.eh-inquiry-steps li > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--eh-primary, #242f9b); color: #fff; font-size: 12px; font-weight: 800; }
.eh-inquiry-steps li strong { display: block; color: var(--eh-ink, #1c1c25); font-size: 12.5px; font-weight: 800; }
.eh-inquiry-steps li small { display: block; margin-top: 2px; color: var(--eh-muted, #717171); font-size: 11.5px; line-height: 1.8; }

/* باکس استعلام در ستون اصلی (موبایل و تبلت؛ در دسکتاپ کارت سمت چپ جایگزین است) */
.eh-call-order { gap: 12px; margin-top: 22px; padding: 18px; border: 1px solid #dfe3f8; border-radius: 20px; background: linear-gradient(160deg, #f6f7ff, #fff); box-shadow: 0 10px 26px rgba(36, 47, 155, .08); }
.eh-call-order > p { color: #4d5370; font-size: 13px; line-height: 2; }
.eh-call-order .eh-inquiry-btn { min-width: 0; }
@media (min-width: 1181px) { .eh-call-order { display: none; } }

/* کارت‌های فهرست: فشرده */
.eh-p-card__price .eh-inquiry-cta, .eh-p-row__price .eh-inquiry-cta { gap: 5px; }
.eh-p-card__price .eh-inquiry-cta__hint, .eh-p-row__price .eh-inquiry-cta__hint, .eh-p-card__price .eh-inquiry-call, .eh-p-row__price .eh-inquiry-call, .eh-p-card__price .eh-inquiry-cta__label svg, .eh-p-row__price .eh-inquiry-cta__label svg { display: none; }
.eh-p-card__price .eh-inquiry-cta__label, .eh-p-row__price .eh-inquiry-cta__label { font-size: 12px; font-weight: 800; }
.eh-p-card__price .eh-inquiry-btn, .eh-p-row__price .eh-inquiry-btn { width: auto; min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12px; }


/* ===== پاپ‌آپ استعلام: عرض بیشتر و چیدمان دو ستونه تا در دسکتاپ اسکرول نداشته باشد ===== */
.eh-inq__box { width: min(760px, 100%); padding: 26px 26px 22px; }
.eh-inq__box h2 { font-size: 20px; }
.eh-inq__intro { margin-bottom: 16px; }
@media (min-width: 900px) {
    .eh-inq__box { width: min(960px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: start; padding: 28px 30px 24px; }
    .eh-inq__box > h2, .eh-inq__box > .eh-inq__intro, .eh-inq__box > .eh-inq__msg, .eh-inq__box > .eh-inq__actions { grid-column: 1 / -1; }
    .eh-inq__box > .eh-inq__variant-container { grid-column: 1; grid-row: span 3; align-self: start; margin-bottom: 0 !important; }
    .eh-inq__box > .eh-inq__grid { grid-column: 2; }
    .eh-inq__box > .eh-inq__field { grid-column: 2; margin-bottom: 12px; }
    .eh-inq__box > .eh-inq__actions { margin-top: 6px; }
}
@media (max-width: 560px) {
    .eh-inq__box { padding: 22px 16px 18px; }
}

/* بدون ردیف فروشنده (فروشگاه تک‌فروشنده است): فاصله‌ی لیست مزایا از بخش قیمت */
.eh-seller-card__checklist { padding-top: 16px; }


/* ===== کارت سمت چپ: پهن‌تر و بدون اسکرول ===== */
@media (min-width: 1181px) {
    .eh-seller-card { width: 340px !important; bottom: auto !important; overflow: visible !important; }
    .estehkam-product form > .container > .mt-12.flex > .relative { padding-left: 374px !important; }
}
