/* Components that appear after an interaction. Split from main.css by the build; loaded without blocking. */
/* :not(body): WordPress puts «search-results» on <body> of a search page; these rules are the header dropdown's. */
:not(body).search-results { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 95; max-height: min(70vh, 540px); overflow: auto; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.search-hit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--text); }
.search-hit:hover, .search-hit.is-active { background: var(--surface-purple); color: var(--text); }
.search-hit img, .search-hit__ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--surface-soft); flex-shrink: 0; }
.search-hit__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.search-hit__title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit__price { font-size: 13px; color: var(--brand); font-weight: 800; }
.search-results__empty { margin: 0; padding: 18px; color: var(--text-2); text-align: center; }
.search-results__all { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 0; border-radius: 14px; background: var(--tint); color: var(--on-tint); font-weight: 800; font-size: 13px; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(19 17 26 / .5); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 88vw); display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform .25s var(--ease); border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 22px; background: var(--brand-grad); color: #fff; font-size: 1.05rem; }
.drawer__head .icon-btn { color: #fff; background: rgb(255 255 255 / .16); }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
@media (max-width: 860px) {
:not(body).search-results { position: static; margin-top: 10px; max-height: calc(100vh - 100px); box-shadow: none; border: 0; padding: 0; }
}
/* Categories: every one on a single line and the whole list visible (no scroll); only a very short window scrolls it. */
.mega__cats { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px; list-style: none; background: var(--surface-soft); border-inline-end: 1px solid var(--border); max-height: calc(100vh - 150px); overflow-y: auto; }
.mega__cats a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; white-space: nowrap; border-radius: 14px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.mega__cats a[aria-selected="true"], .mega__cats a:hover { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.mega__cats span:not(.mega__thumb) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mega__thumb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft-grad); overflow: hidden; flex-shrink: 0; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega__caret { width: 16px; height: 16px; opacity: 0; transition: opacity .15s, transform .15s; }
.mega__cats a[aria-selected="true"] .mega__caret { opacity: 1; transform: translateX(-3px); }
/* The right side takes the list's height (height 0 + min-height 100%: it never makes the menu taller) and scrolls itself if needed. */
.mega__panes { height: 0; min-height: 100%; padding: 20px 22px; overflow-y: auto; }
.mega__pane[hidden] { display: none; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mega__head strong { display: block; font-size: 1.05rem; font-weight: 900; }
.mega__head span { color: var(--text-2); font-size: 12.5px; }
.mega__all { display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 12px; background: var(--tint); color: var(--on-tint); font-size: 13px; font-weight: 800; white-space: nowrap; }
.mega__all .icon { width: 16px; height: 16px; }
.mega__subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.mega__subs a { display: block; padding: 6px 12px; border-radius: 99px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 600; }
.mega__subs a:hover { background: var(--surface-purple); color: var(--brand); }
.mega__label { margin: 0 0 10px; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.mega__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mega__products a { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 1px solid var(--border); color: var(--text); transition: box-shadow .2s, transform .2s var(--ease); }
.mega__products a:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.mega__pimg { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft-grad); }
.mega__pimg img { width: 100%; height: 100%; object-fit: cover; }
.mega__products li, .mega__products a { min-width: 0; }
/* One line: a long name ends with … (full name in the tooltip) and never makes its card taller than the others. */
.mega__pname { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minicart { position: fixed; inset: 0; z-index: 220; }
.minicart[hidden] { display: none; }
.minicart__backdrop { position: absolute; inset: 0; background: rgb(19 17 26 / .5); opacity: 0; transition: opacity .25s; }
.minicart__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--bg); border-radius: 0 var(--r-xl) var(--r-xl) 0; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .3s var(--ease); overflow: hidden; }
.minicart.is-open .minicart__backdrop { opacity: 1; }
.minicart.is-open .minicart__panel { transform: none; }
.minicart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--brand-grad); color: #fff; }
.minicart__head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.minicart__head .icon-btn { color: #fff; background: rgb(255 255 255 / .16); }
.minicart__body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.minicart__added { display: flex; align-items: center; gap: 12px; margin: 14px 14px 0; padding: 12px 14px; border-radius: var(--r); background: var(--success-soft); color: var(--success); animation: sbj-rise .3s var(--ease); }
.minicart__added strong { display: block; font-size: 14px; }
.minicart__added span { display: block; color: var(--text-2); font-size: 12.5px; }
.minicart__added-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--success); color: #fff !important; flex-shrink: 0; }
.minicart__error { margin: 14px 14px 0; padding: 10px 14px; border-radius: var(--r); background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; }
.minicart__error p { margin: 0; }
.minicart__items { flex: 1; margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 10px; align-content: start; }
.minicart__item { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: opacity .2s; }
.minicart__item.is-new { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgb(108 53 242 / .1); }
.minicart__item.is-removing { opacity: .4; }
.minicart__img img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.minicart__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.minicart__name { color: var(--text) !important; font-size: 13.5px; font-weight: 800; line-height: 1.6; }
.minicart__meta { color: var(--text-2); font-size: 11.5px; line-height: 1.7; }
.minicart__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.minicart__price { font-size: 13.5px; font-weight: 900; }
.minicart__single { color: var(--text-3); font-size: 12px; }
.minicart__remove { align-self: start; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--danger-soft); color: var(--danger); }
.minicart__remove .icon { width: 17px; height: 17px; }
.minicart__foot { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 14px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgb(40 19 79 / .06); }
.minicart__total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.minicart__total strong { font-size: 1.1rem; }
.minicart__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.minicart__secondary .btn { min-height: 44px; font-size: 13.5px; }
.minicart__empty { display: grid; justify-items: center; gap: 8px; margin: auto; padding: 32px 24px; text-align: center; }
.minicart__empty-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--tint); color: var(--brand); }
.minicart__empty-icon .icon { width: 32px; height: 32px; }
.minicart__empty p { color: var(--text-2); font-size: 13px; }
.minicart__loading { display: flex; justify-content: center; gap: 6px; margin: auto; padding: 40px; }
.minicart__loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-light); animation: sbj-dot 1s infinite ease-in-out; }
.minicart__loading span:nth-child(2) { animation-delay: .15s; }
.minicart__loading span:nth-child(3) { animation-delay: .3s; }
.sheet__backdrop { position: absolute; inset: 0; background: rgb(19 17 26 / .5); opacity: 0; transition: opacity .25s; }
.sheet__panel { position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .3s var(--ease); }
.sheet__grab { width: 44px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: var(--border); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.sheet__head strong { font-size: 1.05rem; font-weight: 900; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sheet__links a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--surface-purple); color: var(--on-tint); font-size: 13px; font-weight: 800; }
.sheet__links .icon { width: 19px; height: 19px; }
@media (max-width: 1100px) {
.mega__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__products li:nth-child(4) { display: none; }
}
@media (max-width: 860px) {
.minicart__panel { width: 100%; border-radius: 0; }
}
.search-suggest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 6px 4px; }
.search-suggest__block { min-width: 0; }
.search-suggest__block[hidden] { display: none; }
.search-suggest__block > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.search-suggest__block > header strong { font-size: 13px; color: var(--text-2); }
.search-suggest__block > header button { border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 700; }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search-suggest__chips button { padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13px; }
.search-suggest__cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.search-suggest__cats::-webkit-scrollbar { display: none; }
.search-suggest__cats a { display: grid; justify-items: center; gap: 6px; flex: 0 0 76px; color: var(--text); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.4; }
.search-suggest__cats a > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--soft-grad); overflow: hidden; color: var(--brand); }
.search-suggest__cats img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.search-suggest__products a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 700; }
.search-suggest__products img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.search-suggest__products span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:not(body).search-results:has(.search-suggest) { max-height: min(76vh, 620px); }
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat-tiles[hidden], .cat-drill[hidden] { display: none; }
.cat-tile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); font: inherit; text-align: center; transition: transform .15s, border-color .15s; }
.cat-tile:active { transform: scale(.96); border-color: var(--brand); }
.cat-tile__img { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--soft-grad); overflow: hidden; color: var(--brand); }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__name { font-size: 12.5px; font-weight: 800; line-height: 1.5; }
.cat-tile__more { color: var(--text-3); font-size: 10.5px; }
.cat-drill { display: grid; gap: 12px; animation: sbj-drill .22s var(--ease); }
.cat-drill__back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; }
.cat-drill__back .icon { width: 18px; height: 18px; }
.cat-drill__all { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 18px; background: var(--brand-grad); color: #fff; }
.cat-drill__all span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; opacity: .9; }
.cat-drill__all .icon { width: 16px; height: 16px; }
.cat-drill__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-drill__list a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; }
.cat-drill__img { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: var(--surface-soft); overflow: hidden; color: var(--brand); }
.cat-drill__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-drill__img .icon { width: 18px; height: 18px; }
@media (max-width: 860px) {
:not(body).search-results { flex: 1; position: static; max-height: none !important; margin-top: 12px; padding: 0; overflow-y: auto; border: 0; background: transparent; box-shadow: none; }
.search-hit { background: var(--surface); margin-bottom: 6px; }
}
.aichat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand-grad); color: #fff; }
.aichat__head .icon-btn { color: #fff; background: rgb(255 255 255 / .14); }
.aichat__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 14px; background: rgb(255 255 255 / .18); }
.aichat__who { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.aichat__who strong { font-size: 14.5px; }
.aichat__who small { font-size: 11.5px; opacity: .85; }
.aichat__human { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; background: #fff; color: #1c93e3; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.aichat__log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.aichat__msg { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.95; word-break: break-word; }
.aichat__msg--assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-start-start-radius: 6px; }
.aichat__msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-start-end-radius: 6px; }
.aichat__msg a { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.aichat__msg--user a { color: #fff; }
.aichat__msg.is-error { border-color: var(--danger); color: var(--danger); }
.aichat__li { display: block; padding-inline-start: 12px; position: relative; }
.aichat__li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.aichat__msg.is-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.aichat__msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: sbj-typing 1s infinite ease-in-out; }
.aichat__msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.aichat__msg.is-typing span:nth-child(3) { animation-delay: .3s; }
.aichat__quick { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.aichat__quick::-webkit-scrollbar { display: none; }
.aichat__quick[hidden] { display: none; }
.aichat__quick button { flex-shrink: 0; padding: 7px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; }
.aichat__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--bg); }
.aichat__form textarea { flex: 1; min-height: 46px; max-height: 120px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; line-height: 1.6; resize: none; }
.aichat__form textarea:focus { outline: 0; border-color: var(--brand); }
.aichat__send { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 16px; background: var(--brand-grad); color: #fff; }
.aichat__form.is-busy .aichat__send { opacity: .5; pointer-events: none; }
.aichat__note { margin: 0; padding: 0 14px 10px; background: var(--bg); color: var(--text-3); font-size: 10.5px; text-align: center; }
@media (max-width: 860px) {
.aichat__form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
.cat-tiles { gap: 8px; }
.cat-tile { gap: 8px; padding: 12px 6px 10px; border-radius: 18px; color: var(--text) !important; }
.cat-tile__img { width: 48px; height: 48px; border-radius: 15px; }
.cat-tile__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-size: 12px; line-height: 1.45; color: var(--text); }
.cat-tile { align-content: center; justify-items: center; min-height: 112px; }
.cat-tile__name { min-height: 0; }
@media (min-width: 861px) {
.search-suggest__cats { flex-wrap: wrap; overflow: visible; gap: 12px 8px; }
}
/* ایوا: guided choices, product / order cards, action buttons (inside the .aichat panel) */
.eva__chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 94%; align-self: flex-start; }
.eva__chips--stack { flex-direction: column; align-items: flex-start; }
.eva__chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1.5px solid var(--brand); border-radius: 99px; background: var(--surface); color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.5; text-align: start; cursor: pointer; transition: background .15s, color .15s; }
.eva__chip .icon { width: 17px; height: 17px; flex: none; }
.eva__chip:hover { background: var(--brand); color: #fff; }
.eva__chip--muted { border-color: var(--border); color: var(--text-2); }
.eva__chip--muted:hover { background: var(--surface-2); color: var(--text); }
[data-theme="dark"] .eva__chip { color: var(--brand-light); border-color: var(--brand-light); }
[data-theme="dark"] .eva__chip:hover { background: var(--brand); color: #fff; }
.eva__wrap { max-width: 94%; align-self: flex-start; }
.eva__cards { display: grid; gap: 6px; }
.eva__card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, transform .15s; }
.eva__card:hover { border-color: var(--brand); transform: translateY(-1px); }
.eva__card img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.eva__card-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.eva__card-body strong { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eva__card-body small { color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eva__status { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 10.5px; font-style: normal; font-weight: 800; }
.eva__status--completed { background: var(--success-soft); color: var(--success); }
.eva__status--processing, .eva__status--on-hold, .eva__status--card-review, .eva__status--manager-review { background: var(--surface-purple); color: var(--on-tint); }
.eva__status--pending, .eva__status--pending-card, .eva__status--failed { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #b45309; }
.eva__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eva__btn { display: inline-flex; align-items: center; padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text) !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.eva__btn--primary { border-color: var(--brand); background: var(--brand); color: #fff !important; }
.eva__plans { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.eva__plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 12px; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: 12px; background: var(--surface); color: var(--text) !important; font-size: 12.5px; font-weight: 800; text-decoration: none !important; }
.eva__plan b { flex: none; color: var(--brand); font-weight: 900; white-space: nowrap; }
.eva__plan:hover { border-color: var(--brand); background: var(--surface-purple); }
[data-theme="dark"] .eva__plan { background: #1d1927; border-color: rgb(139 92 246 / .35); }
[data-theme="dark"] .eva__plan b { color: #c4b5fd; }
[data-theme="dark"] .eva__plan:hover { background: #2a2140; border-color: #a78bfa; }
.eva__btn:hover { border-color: var(--brand); }
.eva .aichat__log { gap: 10px; }
.eva-fab__icon { background: #fff; color: var(--brand); }
/* ===== ایوا — look ===== */
.eva-fab { gap: 10px; height: 56px; padding-inline: 6px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 10px 30px rgb(60 22 143 / .18), 0 2px 6px rgb(0 0 0 / .06); }
.eva-fab:hover { box-shadow: 0 14px 34px rgb(60 22 143 / .26); }
[data-theme="dark"] .eva-fab { border-color: var(--line); box-shadow: 0 10px 30px rgb(0 0 0 / .45); }
.eva-fab__avatar, .eva__avatar { position: relative; display: block; flex: none; }
.eva-fab__avatar img { display: block; width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.eva-dot { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: #22c55e; }
.eva-fab .aichat-fab__label { display: grid; line-height: 1.3; text-align: start; }
.eva-fab .aichat-fab__label strong { font-size: 14px; font-weight: 900; }
.eva-fab .aichat-fab__label small { color: var(--text-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
	/* Phones: just the avatar, above the tab bar (position from main.css) */
	.eva-fab { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
	.eva-fab .aichat-fab__label { display: none; }
	.eva-fab__avatar img { width: 46px; height: 46px; box-shadow: none; }
}
.eva { border-radius: 28px; border: 0; box-shadow: 0 30px 80px rgb(20 10 50 / .35); }
@media (max-width: 860px) { .eva, [data-theme="dark"] .eva { border-radius: 0; box-shadow: none; } }
[data-theme="dark"] .eva__status--pending, [data-theme="dark"] .eva__status--pending-card, [data-theme="dark"] .eva__status--failed { color: #fbbf24; }
[data-theme="dark"] .eva { background: #15121d; box-shadow: 0 30px 80px rgb(0 0 0 / .6), 0 0 0 1px rgb(139 92 246 / .22); }
[data-theme="dark"] .eva .aichat__log { background: #110e18; }
[data-theme="dark"] .eva .aichat__msg--assistant { background: #1d1927; border: 1px solid rgb(255 255 255 / .06); box-shadow: none; }
[data-theme="dark"] .eva__chip { background: #1d1927; border-color: rgb(139 92 246 / .45); color: #c4b5fd; box-shadow: none; }
[data-theme="dark"] .eva__chip .icon { color: #a78bfa; }
[data-theme="dark"] .eva__chip:hover { background: #2a2140; border-color: #a78bfa; color: #fff; }
[data-theme="dark"] .eva__chip--muted { border-color: rgb(255 255 255 / .12); color: #a7a2b4; }
[data-theme="dark"] .eva__card { background: #1d1927; border-color: rgb(255 255 255 / .06); box-shadow: none; }
[data-theme="dark"] .eva__btn { background: #1d1927; border-color: rgb(255 255 255 / .12); }
[data-theme="dark"] .eva__btn--primary { background: var(--brand); border-color: var(--brand); }
[data-theme="dark"] .eva .aichat__form, [data-theme="dark"] .eva__dock { background: #15121d; border-color: rgb(255 255 255 / .07); }
[data-theme="dark"] .eva__navbtn { color: #a7a2b4; }
[data-theme="dark"] .eva__navbtn:hover { color: #c4b5fd; }
[data-theme="dark"] .eva-fab { background: #1d1927; border-color: rgb(139 92 246 / .35); box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
[data-theme="dark"] .eva-dot { border-color: #1d1927; }
.eva__head { padding: 14px 16px; background: var(--brand-grad); }
.eva__head::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgb(255 255 255 / .1); pointer-events: none; }
.eva__head { position: relative; overflow: hidden; }
.eva__head > * { position: relative; }
.eva__avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .28); }
.eva__avatar .eva-dot { border-color: #6c35f2; }
.eva .aichat__who strong { font-size: 15.5px; letter-spacing: .1px; }
.eva .aichat__who small { font-size: 11.5px; opacity: .9; }
.eva .aichat__head .icon-btn { width: 34px; height: 34px; border-radius: 11px; background: rgb(255 255 255 / .16); }
.eva .aichat__head .icon-btn:hover { background: rgb(255 255 255 / .28); }
.eva .aichat__log { padding: 16px 14px 10px; gap: 10px; background: color-mix(in srgb, var(--brand) 4%, var(--bg)); }
.eva .aichat__msg--assistant { max-width: 90%; border: 0; border-radius: 20px; border-start-start-radius: 6px; background: var(--surface); box-shadow: 0 2px 10px rgb(60 22 143 / .06); font-size: 13.5px; line-height: 2; }
.eva .aichat__msg--user { background: var(--brand-grad); box-shadow: 0 6px 16px rgb(108 53 242 / .25); }
[data-theme="dark"] .eva .aichat__msg--assistant { background: var(--surface-2); }
.eva .aichat__msg.is-typing { padding: 12px 16px; }
.eva .aichat__msg.is-typing span { background: var(--brand); opacity: .55; }
.eva__chips { gap: 7px; }
.eva__chip { padding: 9px 14px; border-width: 1.5px; border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); background: var(--surface); box-shadow: 0 1px 3px rgb(60 22 143 / .05); font-size: 12.5px; }
.eva__chip .icon { color: var(--brand); }
.eva__chip:hover { border-color: var(--brand); background: var(--surface-purple); color: var(--brand); }
.eva__chip:hover .icon { color: inherit; }
.eva__chips--stack .eva__chip { width: 100%; max-width: 300px; justify-content: flex-start; border-radius: 14px; }
.eva__chip--muted { border-color: var(--border); color: var(--text-2); box-shadow: none; }
.eva__card { border-radius: 18px; box-shadow: 0 2px 10px rgb(60 22 143 / .06); border-color: transparent; }
.eva__card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgb(60 22 143 / .12); }
.eva .aichat__form { padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.eva .aichat__form textarea { min-height: 48px; border-radius: 16px; border-color: var(--line); background: var(--bg); }
.eva .aichat__form textarea:focus { background: var(--surface); box-shadow: 0 0 0 4px rgb(108 53 242 / .12); }
.eva .aichat__send { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 6px 16px rgb(108 53 242 / .3); }
@media (max-width: 860px) {
	.eva .aichat__form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
	.eva .eva__dock { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* ایوا: Eva on the left, the visitor on the right; bottom bar instead of a text field */
.eva .aichat__msg--assistant, .eva .eva__chips, .eva .eva__wrap { align-self: flex-end; }
.eva .aichat__msg--assistant { border-start-start-radius: 20px; border-start-end-radius: 6px; }
.eva .aichat__msg--user { align-self: flex-start; border-start-end-radius: 20px; border-start-start-radius: 6px; }
.eva .eva__chips { justify-content: flex-end; }
.eva .eva__chips--stack { align-items: flex-end; }
.eva .aichat__msg.is-writing { white-space: pre-line; }
.eva .aichat__msg.is-writing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: var(--brand); animation: eva-caret .8s steps(2) infinite; }
@keyframes eva-caret { to { opacity: 0; } }
.eva__chip--accent { border-color: var(--brand); background: var(--surface-purple); color: var(--brand); }
.eva__dock { flex: none; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.eva__dock:empty { display: none; }
.eva__dock .eva__chips { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; max-width: none; }
.eva__dock .eva__chip { width: 100%; max-width: none; justify-content: flex-start; min-height: 42px; padding: 8px 14px; border-radius: 12px; }
.eva__dock .eva__chip--tg { justify-content: center; }
.eva__dock .eva__chips--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eva__dock .eva__chips--grid .eva__chip { justify-content: center; padding-inline: 8px; text-align: center; }
.eva__dock .eva__chips--grid .eva__chip--more { grid-column: 1 / -1; }
.eva__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding-top: 6px; }
.eva__navbtn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.eva__navbtn:hover { color: var(--brand); }
.eva__dock .eva__chip--more { justify-content: center; min-height: 38px; border-style: dashed; background: transparent; box-shadow: none; color: var(--brand); font-size: 12px; }
.eva__dock .eva__chip--more .icon { width: 16px; height: 16px; }
.eva__dock .eva__chip--more:hover { background: var(--surface-purple); }
[data-theme="dark"] .eva__dock .eva__chip--more { background: transparent; }
.eva__chip--tg { border-color: #2aabee; color: #1c93e3; }
.eva__chip--tg:hover { background: #2aabee; border-color: #2aabee; color: #fff; }
.eva__bar-btn--tg .tg-logo { width: 18px; height: 18px; }
@media (max-width: 860px) { .eva__bar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }
/* Eva: where the earlier conversation (kept in this browser) ends */
.eva__sep { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--text-3); font-size: 11.5px; font-weight: 700; }
.eva__sep::before, .eva__sep::after { content: ""; flex: 1; border-top: 1px dashed var(--border); }
