/* Taheri Hub — هم‌رنگ سایت: سبز تیره، سبز روشن، کارت‌های خاکستری روشن، دکمه‌های گرد. فونت از قالب سایت. */
.thub {
  --thub-green-dark: #114d2a;
  --thub-green: #1d9e55;
  --thub-green-soft: #e8f5ec;
  --thub-line: #cfe6d7;
  --thub-card: #f5f5f4;
  --thub-ink: #111311;
  --thub-muted: #5b605c;
  --thub-black: #0b0f0c;
  --thub-warn-bg: #fff6e5;
  --thub-warn-line: #ebcb8b;
  --thub-err-bg: #fbebeb;
  --thub-radius: 22px;
  color: var(--thub-ink);
  direction: rtl;
  text-align: right;
  font-family: inherit;
  line-height: 1.9;
  box-sizing: border-box;
}
.thub *, .thub *::before, .thub *::after { box-sizing: inherit; }
.thub-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.thub-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* دکمه‌ها */
.thub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.thub-btn:hover { transform: translateY(-1px); }
.thub-btn--dark { background: var(--thub-black); color: #fff; }
.thub-btn--dark:hover { background: var(--thub-green-dark); color: #fff; }
.thub-btn--line { background: #fff; color: var(--thub-ink); border-color: #cfd3cf; }
.thub-btn--line:hover { border-color: var(--thub-green); color: var(--thub-green-dark); }
.thub-btn--wide { width: 100%; margin-top: 8px; }
.thub-link-btn { background: none; border: 0; color: var(--thub-muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 8px 0; }

/* کادر سفارش سریع صفحه‌ی اول */
.thub-quick {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 12px;
  background: #fff; border: 1px solid var(--thub-line); border-radius: 30px;
  box-shadow: 0 10px 30px rgba(17, 77, 42, .06); max-width: 860px; margin: 0 auto;
}
.thub-quick input {
  flex: 999 1 320px; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 12px 16px; color: var(--thub-ink);
}
.thub-quick .thub-btn { flex: 1 1 auto; }

/* نوار محموله‌ی بعدی */
.thub-ship { background: var(--thub-green-dark); color: #fff; text-align: center; padding: 12px 18px; border-radius: 999px; font-weight: 500; }
.thub-ship strong { color: #b9f0cd; }
.thub-sep { opacity: .5; margin: 0 6px; }

/* فرم‌ها */
.thub-form-wrap, .thub-order { max-width: 760px; margin: 0 auto; }
.thub-form { background: var(--thub-card); border: 1px solid var(--thub-line); border-radius: var(--thub-radius); padding: 26px; }
.thub-lead { margin: 0 0 18px; color: var(--thub-muted); }
.thub-field { margin-bottom: 16px; flex: 1 1 240px; border: 0; padding: 0; }
.thub-field legend, .thub-field label, .thub-box > label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.thub input[type=text], .thub input[type=url], .thub input[type=tel], .thub input[type=number], .thub textarea, .thub input[type=file] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid #cfd3cf; border-radius: 16px; background: #fff; color: var(--thub-ink);
}
.thub input:focus, .thub textarea:focus { outline: 2px solid var(--thub-green); outline-offset: 1px; border-color: var(--thub-green); }
.thub-row { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.thub-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 8px 0 16px; cursor: pointer; }
.thub-check input { margin-top: 7px; accent-color: var(--thub-green-dark); width: 18px; height: 18px; }
.thub-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.thub-pill input { position: absolute; opacity: 0; }
.thub-pill span {
  display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--thub-line);
  background: #fff; cursor: pointer; font-weight: 500; min-height: 44px; line-height: 26px;
}
.thub-pill input:checked + span { background: var(--thub-green-dark); color: #fff; border-color: var(--thub-green-dark); }
.thub-pill input:focus-visible + span { outline: 2px solid var(--thub-green); outline-offset: 2px; }
.thub-hint { color: var(--thub-muted); font-size: 15px; margin: 0 0 12px; }
.thub-warn { background: var(--thub-warn-bg); border: 1px solid var(--thub-warn-line); padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.thub-rules { margin: 8px 0 12px; }
.thub-rules summary { cursor: pointer; color: var(--thub-green-dark); font-weight: 700; }
.thub-rules p, .thub-small { font-size: 14px; color: var(--thub-muted); }

/* پیام‌ها */
.thub-alert { padding: 14px 18px; border-radius: 16px; margin-bottom: 16px; border: 1px solid var(--thub-line); background: var(--thub-green-soft); }
.thub-alert--err { background: var(--thub-err-bg); border-color: #efc2c2; }

/* صفحه‌ی سفارش */
.thub-order__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.thub-order__head h2 { margin: 0; }
.thub-badge { padding: 6px 16px; border-radius: 999px; background: var(--thub-green-soft); color: var(--thub-green-dark); font-weight: 700; font-size: 14px; border: 1px solid var(--thub-line); }
.thub-badge--expired, .thub-badge--issue, .thub-badge--cancelled, .thub-badge--rejected { background: var(--thub-err-bg); color: #8a1f1f; border-color: #efc2c2; }
.thub-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0; counter-reset: s; }
.thub-steps li { flex: 1 1 90px; text-align: center; font-size: 13px; color: var(--thub-muted); padding-top: 14px; border-top: 4px solid #e2e4e2; }
.thub-steps li.done { border-color: var(--thub-green); color: var(--thub-ink); }
.thub-steps li.now { border-color: var(--thub-green-dark); color: var(--thub-green-dark); font-weight: 700; }
.thub-card { background: var(--thub-card); border: 1px solid var(--thub-line); border-radius: var(--thub-radius); padding: 20px 22px; white-space: normal; overflow-wrap: anywhere; }
.thub-box { background: #fff; border: 1px solid var(--thub-line); border-radius: var(--thub-radius); padding: 22px; margin-top: 16px; }
.thub-box h3 { margin-top: 0; }
.thub-box summary { cursor: pointer; font-weight: 700; color: var(--thub-green-dark); }
.thub-pay { background: var(--thub-black); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; font-weight: 500; }
.thub-addr { white-space: pre-wrap; background: var(--thub-card); padding: 14px; border-radius: 14px; font-family: inherit; }
.thub-qa { border-top: 1px solid var(--thub-line); padding-top: 10px; margin-top: 10px; font-size: 15px; }
.thub-inline { display: inline-block; margin-top: 12px; }

@media (max-width: 600px) {
  .thub-form, .thub-box, .thub-card { padding: 18px; }
  .thub-quick { border-radius: 24px; }
  .thub-quick .thub-btn { width: 100%; }
}

/* ================================================================ فرم مرحله‌ای (نسخه ۱.۱) */
.thub-wiz { max-width: 1160px; margin: 0 auto; }
.thub-ico { flex: none; vertical-align: middle; }
.thub-wiz__head { text-align: center; padding: 8px 0 26px; }
.thub-eyebrow { display: inline-block; padding: 6px 18px; border: 1px solid var(--thub-line); border-radius: 999px; color: var(--thub-green); background: #fff; font-size: 14px; font-weight: 700; }
.thub-wiz__title { font-size: clamp(26px, 4vw, 40px); line-height: 1.35; margin: 18px 0 10px; font-weight: 800; color: var(--thub-ink); }
.thub-wiz__sub { max-width: 640px; margin: 0 auto; color: var(--thub-muted); font-size: 17px; }
.thub-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 20px 0 0; font-size: 15px; color: var(--thub-ink); }
.thub-trust li { display: inline-flex; align-items: center; gap: 8px; }
.thub-trust .thub-ico { color: var(--thub-green); }

/* نوار مراحل */
.thub-progress { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 22px; }
.thub-progress li { flex: 1 1 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #e4e6e3; color: var(--thub-muted); font-size: 15px; transition: all .2s ease; }
.thub-progress__num { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #eef0ed; font-weight: 800; flex: none; }
.thub-progress li.is-current { border-color: var(--thub-green-dark); color: var(--thub-ink); box-shadow: 0 6px 18px rgba(17, 77, 42, .08); }
.thub-progress li.is-current .thub-progress__num { background: var(--thub-green-dark); color: #fff; }
.thub-progress li.is-done { color: var(--thub-green-dark); }
.thub-progress li.is-done .thub-progress__num { background: var(--thub-green-soft); color: var(--thub-green-dark); }

/* چیدمان دو ستونه */
.thub-wiz__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.thub-wiz__form { background: #fff; border: 1px solid #e4e6e3; border-radius: 26px; padding: 30px; box-shadow: 0 12px 40px rgba(11, 15, 12, .05); }
.thub-step + .thub-step { margin-top: 34px; padding-top: 30px; border-top: 1px dashed #e0e3df; }
.thub-wiz.is-js .thub-step { display: none; margin: 0; padding: 0; border: 0; }
.thub-wiz.is-js .thub-step.is-active { display: block; animation: thubIn .25s ease; }
@keyframes thubIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.thub-step__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.thub-label { display: block; font-weight: 700; margin: 0 0 8px; font-size: 15px; }
.thub-req { color: #b42318; }

/* کادر لینک */
.thub-linkbox { display: flex; align-items: center; gap: 8px; border: 1.5px solid #d6dad5; border-radius: 18px; background: #fafbfa; padding: 6px 8px 6px 6px; transition: border-color .15s, box-shadow .15s; }
.thub-linkbox:focus-within { border-color: var(--thub-green); box-shadow: 0 0 0 4px rgba(29, 158, 85, .12); background: #fff; }
.thub-linkbox__icon { color: var(--thub-muted); padding: 0 8px; display: inline-flex; }
.thub .thub-linkbox input { border: 0; background: transparent; padding: 12px 4px; font-size: 16px; outline: 0; box-shadow: none; }
.thub .thub-linkbox input:focus { outline: 0; }
.thub-linkbox__paste { flex: none; border: 0; background: var(--thub-green-soft); color: var(--thub-green-dark); font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 12px; cursor: pointer; }
.thub-shopbadge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 14px; border-radius: 999px; background: var(--thub-green-soft); color: var(--thub-green-dark); font-weight: 700; font-size: 14px; }
.thub-or { display: flex; align-items: center; gap: 14px; color: var(--thub-muted); margin: 22px 0; font-size: 14px; }
.thub-or::before, .thub-or::after { content: ""; flex: 1; border-top: 1px solid #e4e6e3; }

/* آپلود عکس */
.thub-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px 18px; border: 2px dashed #cfd6cf; border-radius: 22px; background: #fafbfa; cursor: pointer; transition: all .15s ease; }
.thub-drop:hover, .thub-drop.is-over { border-color: var(--thub-green); background: var(--thub-green-soft); }
.thub-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.thub-drop__icon { width: 54px; height: 54px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--thub-green-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.thub-drop__icon .thub-ico { width: 26px; height: 26px; }
.thub-drop__title { font-weight: 800; font-size: 17px; }
.thub-drop__hint { color: var(--thub-muted); font-size: 14px; }
.thub-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thub-thumb { position: relative; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; border: 1px solid #e4e6e3; }
.thub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thub-thumb button { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgba(11, 15, 12, .75); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.thub-thumb button .thub-ico { width: 14px; height: 14px; }

/* کاشی‌های دسته */
.thub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.thub-tile input { position: absolute; opacity: 0; pointer-events: none; }
.thub-tile__box { height: 100%; min-height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; text-align: center; border: 1.5px solid #e2e5e1; border-radius: 18px; background: #fff; cursor: pointer; transition: all .15s ease; font-weight: 700; font-size: 14px; line-height: 1.6; }
.thub-tile__icon { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #f2f4f1; color: var(--thub-ink); transition: all .15s ease; }
.thub-tile__icon .thub-ico { width: 22px; height: 22px; }
.thub-tile:hover .thub-tile__box { border-color: var(--thub-green); }
.thub-tile input:checked + .thub-tile__box { border-color: var(--thub-green-dark); background: var(--thub-green-soft); box-shadow: 0 0 0 3px rgba(17, 77, 42, .10); }
.thub-tile input:checked + .thub-tile__box .thub-tile__icon { background: var(--thub-green-dark); color: #fff; }
.thub-tile input:focus-visible + .thub-tile__box { outline: 2px solid var(--thub-green); outline-offset: 2px; }
.thub-catfields { margin-bottom: 8px; }
.thub-fields { display: flex; flex-wrap: wrap; gap: 0 16px; }
.thub-fields .thub-field { flex: 1 1 220px; }
.thub-field--wide { flex-basis: 100% !important; }
.thub-warn { display: flex; gap: 10px; align-items: flex-start; }
.thub-warn .thub-ico { color: #b45309; margin-top: 4px; }

/* تعداد و کلید نمونه */
.thub-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid #d6dad5; border-radius: 16px; overflow: hidden; background: #fff; }
.thub-stepper button { width: 48px; border: 0; background: #f4f6f3; font-size: 22px; cursor: pointer; color: var(--thub-ink); }
.thub-stepper button:hover { background: var(--thub-green-soft); }
.thub .thub-stepper input { width: 70px; border: 0; border-radius: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.thub-stepper input::-webkit-outer-spin-button, .thub-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.thub-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 0 16px; flex: 1 1 260px; }
.thub-switch input { position: absolute; opacity: 0; }
.thub-switch__track { width: 46px; height: 26px; border-radius: 999px; background: #d7dbd6; position: relative; flex: none; transition: background .15s; }
.thub-switch__track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.thub-switch input:checked + .thub-switch__track { background: var(--thub-green-dark); }
.thub-switch input:checked + .thub-switch__track::after { transform: translateX(-20px); }
.thub-switch input:focus-visible + .thub-switch__track { outline: 2px solid var(--thub-green); outline-offset: 2px; }
.thub-switch__text { display: flex; flex-direction: column; line-height: 1.6; }
.thub-switch__text small { color: var(--thub-muted); }

/* قوانین، خطا، دکمه‌ها */
.thub-rules { border: 1px solid #e4e6e3; border-radius: 16px; padding: 12px 16px; margin: 8px 0 10px; background: #fafbfa; }
.thub-rules summary { display: flex; align-items: center; gap: 8px; }
.thub-rules__body { font-size: 14px; color: var(--thub-muted); margin-top: 10px; }
.thub-error { color: #b42318; background: var(--thub-err-bg); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 8px 0 0; }
.thub-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; }
.thub-actions .thub-btn--dark:only-child { margin-right: auto; }
.thub-btn--ghost { background: transparent; color: var(--thub-ink); border-color: #d6dad5; }
.thub-btn--ghost:hover { border-color: var(--thub-ink); }
.thub-btn--big { min-height: 54px; padding: 12px 34px; font-size: 17px; }
.thub-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ستون کناری */
.thub-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.thub-side__card { background: var(--thub-card); border: 1px solid var(--thub-line); border-radius: 22px; padding: 18px 20px; }
.thub-side__card h4 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.thub-side__card--green { background: var(--thub-green-dark); border-color: var(--thub-green-dark); color: #fff; display: flex; gap: 14px; align-items: flex-start; }
.thub-side__icon { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.thub-side__k { font-size: 13px; opacity: .8; }
.thub-side__v { font-size: 18px; font-weight: 800; color: #b9f0cd; margin: 2px 0 4px; }
.thub-sum { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.thub-sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.thub-sum dt { color: var(--thub-muted); }
.thub-sum dd { margin: 0; font-weight: 700; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.thub-howto { list-style: persian; margin: 0; padding: 0 20px 0 0; font-size: 14px; color: var(--thub-muted); display: flex; flex-direction: column; gap: 8px; }
.thub-side__wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; background: var(--thub-black); color: #fff !important; text-decoration: none; font-weight: 700; }
.thub-side__wa:hover { background: var(--thub-green-dark); }

@media (max-width: 900px) {
  .thub-wiz__grid { grid-template-columns: 1fr; }
  .thub-side { position: static; order: 2; }
}
@media (max-width: 600px) {
  .thub-wiz__form { padding: 20px 16px; border-radius: 22px; }
  .thub-progress { gap: 6px; }
  .thub-progress li { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 12px; text-align: center; }
  .thub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thub-actions { flex-direction: column-reverse; }
  .thub-actions .thub-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .thub-wiz * { animation: none !important; transition: none !important; } }
.thub .is-invalid { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important; }

/* ================================================================ نسخه ۱.۲: حلقه‌ها، مراحل متصل، گفتگو، بررسی نهایی */
.thub-wiz__head { position: relative; overflow: hidden; padding: 34px 12px 30px; border-radius: 30px; background: radial-gradient(120% 90% at 50% 0%, #f2faf5 0%, rgba(242, 250, 245, 0) 70%); }
.thub-wiz__head > *:not(.thub-rings) { position: relative; z-index: 1; }
.thub-rings { position: absolute; inset: 0; pointer-events: none; }
.thub-rings span { position: absolute; top: 50%; left: 8%; border: 1.5px solid rgba(29, 158, 85, .28); border-radius: 999px; transform: translate(-50%, -50%); }
.thub-rings span:nth-child(1) { width: 220px; height: 220px; }
.thub-rings span:nth-child(2) { width: 380px; height: 380px; border-color: rgba(29, 158, 85, .18); }
.thub-rings span:nth-child(3) { width: 560px; height: 560px; border-color: rgba(29, 158, 85, .10); }
.thub-step__lead { color: var(--thub-muted); margin: 0 0 20px; font-size: 15px; }

/* مراحل متصل */
.thub-progress { counter-reset: none; position: relative; gap: 0; background: #fff; border: 1px solid #e4e6e3; border-radius: 22px; padding: 10px; box-shadow: 0 6px 20px rgba(11, 15, 12, .04); }
.thub-progress li { border: 0; background: transparent; box-shadow: none; position: relative; justify-content: center; }
.thub-progress li + li::before { content: ""; position: absolute; right: -12%; width: 24%; top: 50%; border-top: 2px dashed #dfe3de; }
.thub-progress li.is-done + li::before, .thub-progress li.is-done + li.is-current::before { border-top-style: solid; border-color: var(--thub-green); }
.thub-progress li.is-current { background: var(--thub-green-soft); box-shadow: none; border-radius: 16px; }
.thub-progress li.is-done .thub-progress__num { background: var(--thub-green); color: #fff; }

/* فروشگاه‌ها */
.thub-shops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.thub-shops span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #f2f4f1; color: var(--thub-muted); }

/* گفتگو با فروشنده */
.thub-chat { margin-top: 26px; border: 1px solid var(--thub-line); border-radius: 24px; overflow: hidden; background: #fff; }
.thub-chat__head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--thub-green-dark); color: #fff; }
.thub-chat__head small { display: block; opacity: .85; font-size: 13px; line-height: 1.7; }
.thub-chat__avatar { width: 42px; height: 42px; border-radius: 999px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.thub-chat__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: linear-gradient(#f6f9f6, #f6f9f6) padding-box; min-height: 90px; }
.thub-bubble { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.8; white-space: pre-line; position: relative; }
.thub-bubble--them { align-self: flex-end; background: #fff; border: 1px solid #e4e6e3; border-bottom-left-radius: 6px; }
.thub-bubble--me { align-self: flex-start; background: var(--thub-green-dark); color: #fff; border-bottom-right-radius: 6px; }
.thub-bubble__who { display: block; font-size: 12px; font-weight: 700; color: var(--thub-green); margin-bottom: 2px; }
.thub-bubble__meta { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.thub-bubble--wait { color: var(--thub-muted); display: inline-flex; align-items: center; gap: 10px; }
.thub-typing { display: inline-flex; gap: 3px; }
.thub-typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--thub-green); animation: thubDot 1.2s infinite ease-in-out; }
.thub-typing i:nth-child(2) { animation-delay: .15s; } .thub-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes thubDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.thub-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: #f6f9f6; }
.thub-chips button { font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--thub-line); background: #fff; color: var(--thub-green-dark); cursor: pointer; min-height: 36px; }
.thub-chips button:hover { background: var(--thub-green-soft); }
.thub-chat__composer { padding: 12px 14px; border-top: 1px solid #e9ece8; background: #fff; }
.thub .thub-chat__composer textarea { border-radius: 16px; resize: vertical; }
.thub-chat__composer--send { display: flex; gap: 10px; align-items: flex-end; }
.thub-chat__composer--send .thub-btn { min-width: 50px; padding: 10px 14px; }
.thub-chat--order { margin-top: 16px; }

/* بررسی نهایی */
.thub-review { display: flex; flex-direction: column; gap: 12px; }
.thub-review__sec { border: 1px solid #e4e6e3; border-radius: 18px; padding: 14px 18px; background: #fafbfa; }
.thub-review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.thub-review__edit { border: 0; background: none; color: var(--thub-green); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }
.thub-review__list { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.thub-review__list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.thub-review__list dt { color: var(--thub-muted); }
.thub-review__list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.thub-thumbs--small .thub-thumb { width: 56px; height: 56px; border-radius: 12px; }
.thub-next { margin: 18px 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--thub-green-soft); border: 1px solid var(--thub-line); }
.thub-next ol { list-style: persian; margin: 8px 0 0; padding: 0 20px 0 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.thub-check.is-invalid { color: #b42318; }
.thub-check { padding: 10px 14px; border-radius: 14px; border: 1px solid #e4e6e3; background: #fff; margin: 8px 0; }
.thub-check:has(input:checked) { border-color: var(--thub-green); background: var(--thub-green-soft); }

@media (max-width: 600px) {
  .thub-rings span { left: 50%; }
  .thub-progress { padding: 6px; }
  .thub-progress li + li::before { display: none; }
  .thub-progress li { padding: 8px 2px; }
  .thub-review__list div { grid-template-columns: 1fr; gap: 0; }
  .thub-bubble { max-width: 92%; }
  .thub-wiz.is-js .thub-step.is-active .thub-actions { position: sticky; bottom: 0; z-index: 5; margin: 22px -16px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid #e4e6e3; border-radius: 0 0 22px 22px; }
}

/* ================================================================ نسخه ۱.۳: نوع خرید، چند مدل، هشدار قیمت، تصمیم تغییر قیمت */
.thub-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 20px; }
.thub-seg__opt { position: relative; cursor: pointer; }
.thub-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.thub-seg__opt > span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border: 1.5px solid #e4e6e3; border-radius: 18px; background: #fff; transition: border-color .15s, background .15s; }
.thub-seg__opt > span .thub-ico { grid-row: span 2; width: 26px; height: 26px; color: var(--thub-green); }
.thub-seg__opt small { color: var(--thub-muted); font-size: 13px; }
.thub-seg__opt input:checked + span { border-color: var(--thub-green); background: var(--thub-green-soft); box-shadow: 0 0 0 3px rgba(29, 158, 85, .12); }
.thub-seg__opt input:focus-visible + span { outline: 2px solid var(--thub-green); outline-offset: 2px; }
.thub-seg--small .thub-seg__opt > span { grid-template-columns: 1fr; padding: 10px 14px; }
.thub-ind { margin-bottom: 18px; }

.thub-trap { border: 1px solid #f1d9a6; background: #fffaf0; border-radius: 18px; padding: 14px 18px; margin: 4px 0 22px; font-size: 14px; }
.thub-trap > strong { display: flex; gap: 8px; align-items: center; color: #8a5a00; }
.thub-trap ul { margin: 8px 0; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.thub-trap p { margin: 6px 0 0; }
.thub-trap__shop { padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px dashed #e8c98a; font-weight: 700; }

.thub-vars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.thub-vars__head, .thub-var { display: grid; grid-template-columns: minmax(0, 2.2fr) 90px minmax(0, 1.2fr) 40px; gap: 8px; align-items: center; }
.thub-vars__head { font-size: 12px; color: var(--thub-muted); padding: 0 4px; }
.thub .thub-var input { min-height: 46px; }
.thub-var__x { width: 40px; height: 40px; border: 1px solid #e4e6e3; border-radius: 12px; background: #fff; color: var(--thub-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.thub-var__x:hover { color: #b42318; border-color: #f0b8b2; }
.thub-vars__add { margin-bottom: 18px; }

.thub-decide { border-color: #f1d9a6; background: #fffaf0; }
.thub-decide__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.thub-decide__nums div { background: #fff; border: 1px solid #eee3cc; border-radius: 14px; padding: 10px 12px; }
.thub-decide__nums dt { font-size: 12px; color: var(--thub-muted); }
.thub-decide__nums dd { margin: 2px 0 0; font-weight: 800; }
.thub-decide__nums .is-total { border-color: var(--thub-green); }
.thub-decide__btns { display: grid; gap: 10px; margin-top: 12px; }

@media (max-width: 600px) {
  .thub-seg { grid-template-columns: 1fr; }
  .thub-vars__head { display: none; }
  .thub-var { grid-template-columns: 1fr 80px 40px; grid-template-areas: "t q x" "p p p"; padding: 10px; border: 1px solid #e4e6e3; border-radius: 16px; background: #fafbfa; }
  .thub-var > input:nth-child(1) { grid-area: t; } .thub-var > input:nth-child(2) { grid-area: q; }
  .thub-var > input:nth-child(3) { grid-area: p; } .thub-var > button { grid-area: x; }
  .thub-decide__nums { grid-template-columns: 1fr; }
}
.thub-wiz.is-industrial .thub-catfields .thub-fields { display: none; }

/* ================================================================ کرایه‌ی حدودی */
.thub-tariffs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.thub-tariffs li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #e4e6e3; padding-bottom: 6px; }
.thub-tariffs li > span:last-child { text-align: left; }
.thub-tariffs small { display: block; color: var(--thub-muted); font-size: 12px; }
.thub-calc__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.thub .thub-calc select, .thub .thub-calc input { min-height: 44px; font-size: 14px; }
.thub-calc__out { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--thub-green-soft); color: var(--thub-green-dark); font-weight: 800; text-align: center; }
.thub-calc__note { margin: 8px 0 0; font-size: 12px; color: var(--thub-muted); }
.thub-est { align-self: end; padding: 10px 14px; border-radius: 14px; background: var(--thub-green-soft); color: var(--thub-green-dark); font-weight: 700; font-size: 14px; }
.thub-est:empty { display: none; }
.thub-calc__cap { margin: -4px 0 10px; font-size: 13px; font-weight: 700; color: var(--thub-green-dark); }

/* ================================================================ پیش‌نمایش کالا */
.thub-pv { margin: 12px 0 4px; }
.thub-pv__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1.5px solid var(--thub-green); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(17, 77, 42, .08); }
.thub-pv__card.is-limited { border-color: #e4e6e3; box-shadow: none; }
.thub-pv__img { position: relative; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: #f2f4f1; display: flex; align-items: center; justify-content: center; color: #9aa39b; }
.thub-pv__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thub-pv__img:not(.is-empty) .thub-ico { display: none; }
.thub-pv__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.thub-pv__shop { font-size: 12px; font-weight: 700; color: var(--thub-green); }
.thub-pv__title { font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thub-pv__price { font-size: 14px; }
.thub-pv__price b { color: var(--thub-green-dark); font-size: 16px; }
.thub-pv__price small { display: block; color: var(--thub-muted); font-size: 12px; }
.thub-pv__actions { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.thub-pv__actions a { color: var(--thub-green-dark); font-weight: 700; text-decoration: none; }
.thub-pv__actions button { border: 0; background: none; padding: 0; font: inherit; color: var(--thub-muted); cursor: pointer; text-decoration: underline; }
.thub-pv__warn { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: #fffaf0; border: 1px solid #f1d9a6; font-size: 13px; line-height: 1.9; }
.thub-pv__card.is-loading .thub-pv__img, .thub-pv__line { background: linear-gradient(90deg, #eef1ee 25%, #f7f9f7 50%, #eef1ee 75%); background-size: 200% 100%; animation: thubShimmer 1.2s infinite linear; }
.thub-pv__line { display: block; height: 12px; width: 40%; border-radius: 6px; }
.thub-pv__line.is-long { width: 85%; height: 16px; }
.thub-pv__hint { font-size: 12px; color: var(--thub-muted); }
@keyframes thubShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.thub-pv--review { margin: 0 0 10px; }
.thub-pv--review .thub-pv__card { box-shadow: none; }
.thub-drop.is-wanted { border-color: #e8c98a; background: #fffaf0; }
.thub-sum__pv { display: flex !important; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #eef0ed; }
.thub-sum__pv[hidden] { display: none !important; }
.thub-sum__pv img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.thub-sum__pv span { font-size: 13px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .thub-pv__card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .thub-pv__img { width: 84px; height: 84px; }
}
.thub-shopbadge[hidden], .thub-pv[hidden] { display: none !important; }

/* ================================================================ تایپوگرافی: فونت سایت، وزن‌ها و فاصله‌ها */
.thub { font-family: var(--thub-font, inherit); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; letter-spacing: 0; line-height: 1.85; }
.thub input, .thub select, .thub textarea, .thub button { font-family: inherit; letter-spacing: 0; }
.thub h2, .thub h3, .thub h4, .thub strong, .thub b { letter-spacing: 0; }
.thub-wiz__title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; line-height: 1.35; margin: 14px 0 10px; }
.thub-wiz__sub { font-size: clamp(15px, 1.4vw, 17px); font-weight: 400; color: var(--thub-muted); line-height: 1.9; }
.thub-step__title { font-size: 21px; font-weight: 800; line-height: 1.5; }
.thub-label { font-weight: 700; font-size: 14px; }
.thub-eyebrow { font-weight: 700; font-size: 13px; }
.thub-trust li { font-weight: 500; }
.thub-side__card h4, .thub-rep h4 { font-weight: 800; font-size: 16px; }
.thub-side__v, .thub-pv__price b, .thub-tiers b, .thub-calc__out, .thub-decide__nums dd, .thub-rep__facts strong, .thub-alt__meta b, .thub-sum dd { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.thub-btn { font-weight: 800; letter-spacing: 0; }

/* ================================================================ گزارش کالا (صفحه‌ی سفارش) */
.thub-rep { margin: 16px 0; padding: 22px; border: 1px solid var(--thub-line); border-radius: 26px; background: #fff; box-shadow: 0 10px 30px rgba(17, 77, 42, .06); }
.thub-rep__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.thub-rep__head h3 { margin: 0; font-size: 20px; font-weight: 900; }
.thub-rep__head small { color: var(--thub-muted); font-size: 12px; }
.thub-rep__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--thub-green-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.thub-rep__alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff4f2; border: 1px solid #f3c0b8; color: #8a2a1c; margin-bottom: 16px; line-height: 1.9; }
.thub-rep__alert strong { display: block; }
.thub-rep__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thub-rep__facts > div { padding: 12px 14px; border-radius: 16px; background: #f6f8f6; border: 1px solid #edf0ec; display: flex; flex-direction: column; gap: 2px; }
.thub-rep__facts span { font-size: 12px; color: var(--thub-muted); }
.thub-rep__facts strong { font-size: 15px; font-weight: 800; }
.thub-rep__facts small { font-size: 12px; line-height: 1.7; }
.thub-rep__facts .is-ok { background: var(--thub-green-soft); border-color: #cfe8d8; }
.thub-rep__facts .is-warn { background: #fffaf0; border-color: #f1d9a6; }
.thub-rep__facts .is-warn small { color: #8a5a00; }
.thub-rep h4 { margin: 22px 0 10px; }
.thub-rep h4 small { font-weight: 400; color: var(--thub-muted); font-size: 13px; }
.thub-tiers { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e4e6e3; border-radius: 16px; overflow: hidden; font-size: 14px; }
.thub-tiers th { background: #f6f8f6; font-weight: 700; color: var(--thub-muted); font-size: 12px; text-align: right; padding: 10px 14px; }
.thub-tiers td { padding: 11px 14px; border-top: 1px solid #eef0ed; }
.thub-tiers tr.is-on td { background: var(--thub-green-soft); }
.thub-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--thub-green-dark); color: #fff; font-size: 12px; font-weight: 700; }
.thub-rep__tip { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: 14px; color: var(--thub-green-dark); font-weight: 700; }
.thub-rep__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.thub-rep__notes li { position: relative; padding-right: 26px; font-size: 14px; }
.thub-rep__notes li::before { content: ""; position: absolute; right: 4px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--thub-green); border-bottom: 2px solid var(--thub-green); transform: rotate(-45deg); }
.thub-time { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.thub-time li { position: relative; padding: 30px 8px 0; text-align: center; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.thub-time li::before { content: ""; position: absolute; top: 6px; right: 50%; transform: translateX(50%); width: 14px; height: 14px; border-radius: 999px; background: #fff; border: 3px solid var(--thub-green); z-index: 1; }
.thub-time li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; border-top: 2px dashed #cfe8d8; }
.thub-time li:last-child::after { display: none; }
.thub-time li.is-end::before { background: var(--thub-green); }
.thub-time strong { font-weight: 800; }
.thub-time span { color: var(--thub-muted); font-size: 12px; line-height: 1.7; }
.thub-alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.thub-alt { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #e4e6e3; border-radius: 18px; background: #fff; }
.thub-alt.is-chosen { border-color: var(--thub-green); box-shadow: 0 0 0 3px rgba(29, 158, 85, .12); }
.thub-alt__img { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #f2f4f1; color: #9aa39b; display: flex; align-items: center; justify-content: center; }
.thub-alt__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thub-alt__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.thub-alt__body strong { font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thub-alt__body p { margin: 0; font-size: 12px; color: var(--thub-muted); line-height: 1.8; }
.thub-alt__shop { font-size: 11px; font-weight: 700; color: var(--thub-green); }
.thub-alt__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.thub-alt__meta li { padding: 2px 8px; border-radius: 999px; background: #f2f4f1; }
.thub-alt__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; font-size: 13px; }
.thub-alt__actions a { color: var(--thub-green-dark); font-weight: 700; text-decoration: none; }
.thub-alt__actions .thub-btn { padding: 8px 14px; min-height: 38px; font-size: 13px; }
@media (max-width: 600px) {
  .thub-rep { padding: 16px; border-radius: 22px; }
  .thub-time { grid-template-columns: 1fr; gap: 12px; }
  .thub-time li { text-align: right; padding: 0 30px 0 0; }
  .thub-time li::before { top: 4px; right: 0; transform: none; }
  .thub-time li::after { top: 18px; right: 6px; width: 0; height: calc(100% + 12px); border-top: 0; border-right: 2px dashed #cfe8d8; }
}

/* ================================================================ تحویل */
.thub-dl { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #e4e6e3; }
.thub-dl .thub-seg { margin-bottom: 12px; }
.thub-code { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; margin: 8px 0 14px; border-radius: 18px; background: var(--thub-green-dark); color: #fff; text-align: center; }
.thub-code span { font-size: 13px; opacity: .85; }
.thub-code strong { font-size: 34px; font-weight: 900; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.thub-code small { font-size: 12px; opacity: .85; line-height: 1.8; }
.thub-dledit summary { cursor: pointer; font-weight: 700; color: var(--thub-green-dark); padding: 6px 0; }

/* ---------------------------------------------------------------- زمان تحویل و ظرفیت [thub_delivery_info] */
.thub-dinfo { display: flex; flex-direction: column; gap: 12px; }
.thub-dinfo__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.thub-dinfo__card { background: var(--thub-black); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.thub-dinfo__card span, .thub-dinfo__card small { color: #c9d3cc; font-size: 13px; }
.thub-dinfo__card strong { font-size: 26px; line-height: 1.4; color: #fff; }
.thub-dinfo__cap { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--thub-line); border-radius: 18px; color: var(--thub-ink); text-decoration: none; background: #fff; }
.thub-dinfo__cap:hover { border-color: var(--thub-green); }
.thub-dinfo__cap small { color: var(--thub-muted); font-size: 13px; }
.thub-dinfo__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.thub-dinfo__row > span { color: var(--thub-green-dark); font-weight: 700; }
.thub-bar { display: flex; height: 10px; border-radius: 999px; background: #e3efe7; overflow: hidden; }
.thub-bar > span { display: block; height: 100%; background: var(--thub-green); }
.thub-bar--dark { height: 14px; background: rgba(255,255,255,.18); }
.thub-bar--dark > span:first-child { background: rgba(255,255,255,.55); }
.thub-bar--dark > span + span { background: #7cf0a9; transition: width .25s ease; }

/* ---------------------------------------------------------------- ماشین‌حساب حمل [thub_ship_calc] */
.thub-calc { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.thub-calc__cap { background: var(--thub-green-dark); color: #fff; border-radius: var(--thub-radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.thub-calc__cap .thub-dinfo__row, .thub-calc__cap .thub-dinfo__row > span, .thub-calc__cap small { color: #d9f5e3; }
.thub-calc__cap strong { color: #fff; }
.thub-calc__group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thub-calc__group legend, .thub-calc__group label strong { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 8px; }
.thub-calc__svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thub-calc__cls { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.thub-calc__opt { position: relative; cursor: pointer; }
.thub-calc__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.thub-calc__opt > span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 12px; border: 1px solid var(--thub-line); border-radius: 14px; background: #fff; font-size: 14px; }
.thub-calc__opt small { font-size: 12px; color: var(--thub-muted); }
.thub-calc__opt input:checked + span { border: 2px solid var(--thub-green-dark); background: var(--thub-green-soft); color: var(--thub-green-dark); font-weight: 800; }
.thub-calc__opt input:focus-visible + span { outline: 3px solid var(--thub-green); outline-offset: 2px; }
.thub-calc__svc .thub-calc__opt input:checked + span { background: var(--thub-green-dark); color: #fff; }
.thub-calc__svc .thub-calc__opt input:checked + span small { color: #d9f5e3; }
.thub-calc__units { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #eef6f1; }
.thub-calc__units button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.thub-calc__units button.is-on { background: #fff; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.thub-calc__amount { display: flex; gap: 8px; }
.thub-calc__amount button { width: 52px; min-height: 52px; border: 1px solid var(--thub-line); border-radius: 14px; background: #fff; font: inherit; font-size: 22px; cursor: pointer; }
.thub-calc__amount input { flex: 1; min-width: 0; min-height: 52px; border: 1px solid var(--thub-line); border-radius: 14px; text-align: center; font: inherit; font-size: 20px; font-weight: 800; }
.thub-calc__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.thub-calc__presets button { min-height: 40px; padding: 0 14px; border: 1px solid var(--thub-line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.thub-calc__presets button.is-on { border-color: var(--thub-green-dark); background: var(--thub-green-soft); font-weight: 800; }
.thub-calc__result { border: 2px solid var(--thub-green); border-radius: var(--thub-radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: #fbfefc; }
.thub-calc__result.is-quote { border-color: var(--thub-warn-line); background: var(--thub-warn-bg); }
.thub-calc__price { display: flex; flex-direction: column; }
.thub-calc__price small { color: var(--thub-muted); }
.thub-calc__price strong { font-size: 24px; line-height: 1.5; }
.thub-calc__line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.thub-calc__line.is-strong { font-weight: 800; }
.thub-calc__fit { margin: 0; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--thub-green-soft); color: var(--thub-green-dark); }
.thub-calc__fit.is-split { background: var(--thub-warn-bg); color: #5c3300; }
.thub-calc__cta { display: flex; flex-direction: column; gap: 8px; }
.thub-calc__cta small { text-align: center; color: var(--thub-muted); }
.thub-btn--big { min-height: 56px; font-size: 17px; }

/* نوع ارسال در فرم ارسال بار */
.thub-svc { border: 0; padding: 0; margin: 0 0 14px; }
.thub-svc__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thub-svc__opt { position: relative; cursor: pointer; }
.thub-svc__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.thub-svc__opt > span { display: flex; flex-direction: column; align-items: center; min-height: 52px; justify-content: center; border: 1px solid var(--thub-line); border-radius: 14px; background: #fff; }
.thub-svc__opt small { color: var(--thub-muted); font-size: 12px; }
.thub-svc__opt input:checked + span { border: 2px solid var(--thub-green-dark); background: var(--thub-green-soft); }
.thub-svc__opt input:focus-visible + span { outline: 3px solid var(--thub-green); outline-offset: 2px; }
@media (max-width: 480px) { .thub-dinfo__card strong { font-size: 22px; } }

/* ---------------------------------------------------------------- پنل من (۱.۱۲) */
.thub-acc { max-width: 760px; margin: 0 auto; }
.thub-acc__card { background: var(--thub-card); border: 1px solid var(--thub-line); border-radius: var(--thub-radius); padding: 30px 26px; max-width: 460px; margin: 0 auto; text-align: center; }
.thub-acc__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 1px solid var(--thub-line); font-size: 28px; box-shadow: 0 0 0 8px var(--thub-green-soft); margin-bottom: 10px; }
.thub-acc__h { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--thub-ink); }
.thub-acc__lead { margin: 0 0 16px; color: var(--thub-muted); }
.thub-acc__note { background: var(--thub-green-soft); border: 1px solid var(--thub-line); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.thub-acc__label { display: block; text-align: right; font-weight: 700; margin-bottom: 6px; }
.thub-acc__input, .thub-acc__code, .thub-acc__two input { width: 100%; min-height: 50px; border: 1px solid #cfd3cf; border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 17px; background: #fff; color: var(--thub-ink); }
.thub-acc__input:focus, .thub-acc__code:focus, .thub-acc__two input:focus { outline: 2px solid var(--thub-green); outline-offset: 1px; border-color: transparent; }
.thub-acc__code { text-align: center; letter-spacing: 10px; font-size: 26px; font-weight: 800; }
.thub-acc__small { font-size: 13px; color: var(--thub-muted); margin: 12px 0 0; }
.thub-acc__small a { color: var(--thub-green-dark); }
.thub-acc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.thub-acc__who { margin: 0; color: var(--thub-muted); font-size: 14px; word-break: break-all; }
.thub-acc__out { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.thub-acc__sec { background: var(--thub-card); border: 1px solid var(--thub-line); border-radius: var(--thub-radius); padding: 20px; margin: 0 0 14px; }
.thub-acc__sec--hot { background: #fff; border-color: var(--thub-green); box-shadow: 0 0 0 4px var(--thub-green-soft); }
.thub-acc__h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.thub-acc__qs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.thub-acc__q { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e3e6e4; border-radius: 16px; padding: 12px; }
.thub-acc__qi { font-size: 22px; line-height: 1.2; }
.thub-acc__qb { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.thub-acc__qb b { font-size: 14px; }
.thub-acc__qn { font-size: 13px; color: var(--thub-muted); }
.thub-acc__qn strong { font-size: 20px; color: var(--thub-green-dark); }
.thub-acc__bar { display: block; height: 6px; border-radius: 99px; background: #e8ebe9; overflow: hidden; margin-top: 4px; }
.thub-acc__bar i { display: block; height: 100%; background: var(--thub-green); border-radius: 99px; }
.thub-acc__bonus { font-size: 12px; color: var(--thub-green-dark); font-weight: 700; }
.thub-acc__sec > .thub-btn { margin-top: 12px; }
.thub-acc__row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #e3e6e4; border-radius: 14px; margin-top: 8px; color: var(--thub-ink); text-decoration: none; transition: border-color .15s; }
.thub-acc__row:hover { border-color: var(--thub-green); color: var(--thub-ink); }
.thub-acc__row--hot { border-color: var(--thub-line); }
.thub-acc__row--hot .thub-acc__t b { white-space: normal; }
.thub-acc__ref { font-weight: 800; font-size: 13px; background: var(--thub-green-soft); color: var(--thub-green-dark); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.thub-acc__t { min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.thub-acc__t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thub-acc__t small { color: var(--thub-muted); font-size: 12px; }
.thub-acc__go { font-size: 13px; font-weight: 700; color: var(--thub-green-dark); white-space: nowrap; }
.thub-acc__empty { color: var(--thub-muted); margin: 0 0 10px; }
.thub-acc__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.thub-acc__attach summary { cursor: pointer; font-weight: 700; }
.thub-acc__two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.thub-acc__foot { text-align: center; }
@media (max-width: 560px) {
  .thub-acc__card { padding: 24px 16px; }
  .thub-acc__qs, .thub-acc__two { grid-template-columns: 1fr; }
  .thub-acc__row { grid-template-columns: auto 1fr; }
  .thub-acc__go { display: none; }
  .thub-acc__sec { padding: 16px 14px; }
}
