/* OmadSavdo — chat va sharhlar */
.oscc, .oscc-modal, .oscc-ask, .osr { --p: #6D28D9; --p2: #5B21B6; --p50: #F5F3FF; --p100: #EDE9FE; --ink: #1C1530; --ink2: #3A3350; --mut: #6E6888; --line: #E7E3F0; --bg: #F6F5FA; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
.oscc *, .oscc-modal * { box-sizing: border-box; }
.oscc img, .oscc-modal img { display: inline-block; max-width: none; }
.oscc button, .oscc-modal button, .oscc-ask { font-family: inherit; cursor: pointer; }
.oscc-load, .oscc-none { padding: 30px 16px; text-align: center; color: var(--mut); font-size: 14px; }
.oscc-title { font-size: 22px; margin: 0 0 16px; }

.oscc-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: min(720px, calc(100vh - 220px)); min-height: 480px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.oscc-wrap > * { min-width: 0; }
.oscc { max-width: 100%; min-width: 0; }
.oscc-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #FCFBFE; }
.oscc-side__h { padding: 12px; border-bottom: 1px solid var(--line); }
.oscc .oscc-q { width: 100%; border: 1.5px solid var(--line) !important; border-radius: 12px !important; padding: 10px 14px !important; font: inherit; font-size: 14px; background: var(--surface, #fff); outline: none; box-shadow: none !important; height: auto !important; margin: 0; }
.oscc .oscc-q:focus { border-color: var(--p) !important; }
.oscc-list { overflow-y: auto; flex: 1; padding: 6px; }
.oscc-th { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 10px; border-radius: 14px; color: var(--ink2); margin: 0 0 2px; }
.oscc-th:hover { background: var(--bg); }
.oscc-th.is-on { background: var(--p50); box-shadow: inset 3px 0 0 var(--p); }
.oscc-th__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oscc-th__r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oscc-th b { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oscc-th time { font-size: 11.5px; color: var(--mut); flex: none; }
.oscc-th em { font-style: normal; font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oscc-th i { flex: none; min-width: 20px; height: 20px; border-radius: 10px; background: var(--p); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.oscc-th.is-new b, .oscc-th.is-new em { color: var(--ink); font-weight: 700; }
.oscc-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.oscc-ava--l { display: grid; place-items: center; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-weight: 800; font-size: 17px; }

.oscc-main { display: flex; min-width: 0; min-height: 0; background: var(--surface, #fff); }
.oscc-empty { margin: auto; text-align: center; padding: 30px; color: var(--mut); max-width: 360px; }
.oscc-empty div { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.oscc-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.oscc-empty p { font-size: 14px; margin: 0; }
.oscc-conv { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.oscc-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.oscc-h b { display: block; color: var(--ink); font-size: 15.5px; }
.oscc-h small { color: var(--mut); font-size: 12.5px; }
.oscc-h__link { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--p) !important; text-decoration: none !important; }
.oscc-back { display: none; border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--ink); padding: 0; }
.oscc-ctx { display: flex; align-items: center; gap: 10px; padding: 8px 18px; background: #FCFBFE; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.oscc-prod { display: inline-flex; align-items: center; gap: 10px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 6px 6px; text-decoration: none !important; max-width: 320px; }
.oscc-prod img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.oscc-prod span { display: flex; flex-direction: column; min-width: 0; }
.oscc-prod b { color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oscc-prod em { font-style: normal; color: var(--p); font-weight: 800; font-size: 13px; }
.oscc-prod--sm { padding: 3px 10px 3px 3px; }
.oscc-prod--sm img { width: 30px; height: 30px; }
.oscc-msgs { flex: 1; overflow-y: auto; padding: 18px; background: linear-gradient(180deg, #FAF9FD, #F5F3FA); display: flex; flex-direction: column; gap: 6px; }
.oscc-day { text-align: center; margin: 10px 0; }
.oscc-day span { font-size: 11.5px; font-weight: 700; color: var(--mut); background: var(--surface, #fff); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.oscc-m { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 78%; }
.oscc-m.is-me { align-self: flex-end; align-items: flex-end; }
.oscc-bub { background: var(--surface, #fff); border: 1px solid var(--line); color: var(--ink2); padding: 9px 13px 6px; border-radius: 16px 16px 16px 4px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(28,21,48,.04); }
.oscc-m.is-me .oscc-bub { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.oscc-bub a { color: inherit; text-decoration: underline; }
.oscc-bub time { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.oscc-quick { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
.oscc-quick button { flex: none; border: 1.5px solid var(--p100); background: var(--p50); color: var(--p2); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.oscc-quick button:hover { border-color: var(--p); }
.oscc-form { padding: 10px 14px; position: relative; }
.oscc-row { display: flex; gap: 8px; align-items: flex-end; }
.oscc-form textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oscc-att { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--mut); display: grid; place-items: center; padding: 0; }
.oscc-att:hover { border-color: var(--p); color: var(--p); }
.oscc-send:disabled { opacity: .55; cursor: wait; }
.oscc-form.is-drag::after, .oscc-md.is-drag::after { content: attr(data-drop); position: absolute; inset: 6px; border: 2px dashed var(--p); border-radius: 14px; background: var(--p50); opacity: .96; display: grid; place-items: center; color: var(--p); font-weight: 700; font-size: 14px; pointer-events: none; z-index: 2; text-align: center; padding: 10px; }
.oscc-pv { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.oscc-pv:empty { display: none; }
.oscc-pv div { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.oscc-pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oscc-pv button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 1; padding: 0; display: grid; place-items: center; }
.oscc-err { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #FEE2E2; color: #B91C1C; font-size: 13px; font-weight: 600; }
html[data-theme="dark"] .oscc-err { background: #3B1C1C; color: #FCA5A5; }
.oscc-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; width: min(340px, 62vw); }
.oscc-imgs--1 { grid-template-columns: 1fr; width: min(280px, 62vw); }
.oscc-imgs button { border: 0; padding: 0; background: rgba(0,0,0,.06); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: block; cursor: zoom-in; }
.oscc-imgs--1 button { aspect-ratio: auto; max-height: 320px; }
.oscc .oscc-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
.oscc .oscc-imgs--1 img { height: auto; max-height: 320px; object-fit: contain; }
.oscc-imgt { font-size: 10.5px; color: var(--mut); padding: 0 4px; }
.oscc-md .oscc-pv { margin: 10px 0 0; }
.oscc-md .oscc-err { margin: 10px 0 0; }
.oscc-md__att { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--ink2); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 700; flex: none; }
.oscc-md__att:hover { border-color: var(--p); color: var(--p); }
.oscc-md__f small { flex: 1; }
.oscc-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 8, 20, .88); display: flex; align-items: center; justify-content: center; padding: 50px 16px 70px; animation: osccIn .15s ease; font-family: "Manrope", system-ui, sans-serif; }
.oscc-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); filter: none !important; }
.oscc-lb__x, .oscc-lb__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; }
.oscc-lb__x { top: 12px; right: 12px; }
.oscc-lb__nav--p { left: 12px; top: 50%; transform: translateY(-50%); }
.oscc-lb__nav--n { right: 12px; top: 50%; transform: translateY(-50%); }
.oscc-lb__x:hover, .oscc-lb__nav:hover { background: rgba(255,255,255,.25); }
.oscc-lb__bar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; color: #ddd; font-size: 13px; }
.oscc-lb__bar a { color: #fff !important; background: rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; text-decoration: none !important; font-weight: 700; }
.oscc .oscc-form textarea { flex: 1; resize: none; border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 11px 14px !important; font: inherit; font-size: 14.5px; max-height: 140px; outline: none; box-shadow: none !important; margin: 0; min-height: 46px; height: 46px; }
.oscc .oscc-form textarea:focus { border-color: var(--p) !important; box-shadow: 0 0 0 4px var(--p100) !important; }
.oscc-send { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--p); color: #fff; display: grid; place-items: center; padding: 0; }
.oscc-send:hover { background: var(--p2); }
.oscc-safe { margin: 0; padding: 0 16px 10px; font-size: 11.5px; color: var(--mut); }

@media (max-width: 860px) {
	.oscc-wrap { grid-template-columns: 1fr; height: calc(100vh - 170px); min-height: 440px; }
	.oscc-wrap.is-conv .oscc-side { display: none; }
	.oscc-wrap:not(.is-conv) .oscc-main { display: none; }
	.oscc-wrap > * { min-width: 0; }
.oscc { max-width: 100%; min-width: 0; }
.oscc-side { border-right: 0; }
	.oscc-back { display: grid; place-items: center; }
	.oscc-h__link { display: none; }
	.oscc-m { max-width: 88%; }
}

/* Savol tugmasi va oyna */
.oscc-ask { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 10px 0; padding: 13px 18px; border-radius: 14px; border: 1.5px solid var(--p100); background: var(--p50); color: var(--p2); font-weight: 700; font-size: 15px; transition: all .15s; }
.oscc-ask:hover { background: var(--p100); border-color: #C4B5FD; }
.oscc-store-ask .oscc-ask { width: auto; margin: 0; padding: 10px 18px; background: var(--surface, #fff); }
.oscc-lock { overflow: hidden; }
.oscc-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 14, 40, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: osccIn .15s ease; }
@keyframes osccIn { from { opacity: 0; } }
.oscc-md { position: relative; width: min(500px, 100%); background: var(--surface, #fff); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); text-align: left; color: var(--ink2); }
.oscc-md h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); padding-right: 30px; }
.oscc-md p { margin: 0 0 14px; font-size: 14px; color: var(--mut); }
.oscc-md__p b { color: var(--ink); }
.oscc-md__ic { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.oscc-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bg); font-size: 22px; line-height: 1; color: var(--mut); padding: 0; }
.oscc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.oscc-chips button { border: 1.5px solid var(--line); background: var(--surface, #fff); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.oscc-chips button:hover { border-color: var(--p); color: var(--p); background: var(--p50); }
.oscc-md textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; outline: none; min-height: 100px; }
.oscc-md textarea:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--p100); }
.oscc-md__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.oscc-md__f small { color: var(--mut); font-size: 12.5px; }
.oscc-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 12px 22px; background: var(--p); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.oscc-btn:hover { background: var(--p2); }
.oscc-btn:disabled { opacity: .6; }

/* ---------- Sharhlar (sotuvchi paneli) ---------- */
.osr-top { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 16px; margin-bottom: 18px; }
.osr-score, .osr-dist, .osr-mini > div { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.osr-score { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.osr-score > b { font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1; }
.osr-score > span { font-size: 12.5px; color: var(--mut); }
.osr-stars { display: inline-flex; gap: 1px; font-size: 15px; letter-spacing: 0; }
.osr-stars i { font-style: normal; color: #E5E1EE; }
.osr-stars i.on { color: #F59E0B; }
.osr-stars--lg { font-size: 22px; }
.osr-dist { display: grid; gap: 6px; }
.osr-dist a { display: grid; grid-template-columns: 40px 1fr 34px; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink2) !important; font-size: 13.5px; font-weight: 700; padding: 2px 6px; border-radius: 8px; }
.osr-dist a:hover, .osr-dist a.is-on { background: var(--p50); }
.osr-dist i { height: 8px; background: var(--bg); border-radius: 9px; overflow: hidden; }
.osr-dist em { display: block; height: 100%; background: #F59E0B; border-radius: 9px; }
.osr-dist b { text-align: right; color: var(--mut); }
.osr-mini { display: grid; gap: 12px; }
.osr-mini > div { display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; }
.osr-mini small { color: var(--mut); font-size: 12.5px; font-weight: 600; }
.osr-mini b { font-size: 26px; color: var(--ink); }
.osr-mini .is-warn { background: #FFFBEB; border-color: #FDE68A; }
.osr-mini .is-warn b { color: #B45309; }
.osr-list { display: grid; gap: 12px; }
.osr-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.osr-prod { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: var(--ink2) !important; font-size: 13px; font-weight: 600; line-height: 1.35; }
.osr-prod img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg); display: block; }
.osr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.osr-meta > div { display: flex; flex-direction: column; margin-right: auto; }
.osr-meta b { color: var(--ink); font-size: 15px; }
.osr-meta small { color: var(--mut); font-size: 12.5px; }
.osr-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #A78BFA, #6D28D9); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.osr-ver { font-size: 11.5px; font-weight: 700; color: #15803D; background: #DCFCE7; padding: 2px 8px; border-radius: 999px; }
.osr-text { margin: 12px 0; font-size: 15px; color: var(--ink2); line-height: 1.55; }
.osr-reply { border-top: 1px dashed var(--line); padding-top: 10px; }
.osr-reply summary { cursor: pointer; font-weight: 700; color: var(--p); font-size: 14px; list-style: none; }
.osr-reply summary::-webkit-details-marker { display: none; }
.osr-reply__text { background: var(--p50); border-left: 3px solid var(--p); border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.osr .osr-reply textarea { width: 100%; margin-top: 10px; border: 1.5px solid var(--line) !important; border-radius: 12px !important; padding: 10px 14px !important; font: inherit; font-size: 14.5px; resize: vertical; outline: none; box-shadow: none !important; height: auto !important; }
.osr .osr-reply textarea:focus { border-color: var(--p) !important; box-shadow: 0 0 0 4px var(--p100) !important; }
.osr-reply__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.osr-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.osr-chip { border: 1.5px solid var(--line); background: var(--surface, #fff); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; font-family: inherit; }
.osr-chip:hover { border-color: var(--p); color: var(--p); }
.osr-pages { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.osr-pages a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface, #fff); font-weight: 700; color: var(--ink2) !important; text-decoration: none !important; }
.osr-pages a.is-on { background: var(--p); border-color: var(--p); color: #fff !important; }
@media (max-width: 1100px) { .osr-top { grid-template-columns: 1fr 1fr; } .osr-dist { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 680px) {
	.osr-top { grid-template-columns: 1fr; }
	.osr-mini { grid-template-columns: 1fr 1fr; }
	.osr-item { grid-template-columns: 1fr; }
	.osr-prod { flex-direction: row; align-items: center; }
	.osr-prod img { width: 56px; }
}

/* Mahsulot sahifasi: sotuvchi javobi */
.osc-vendor-reply > .comment_container, li.osc-vendor-reply .comment-text { background: #F5F3FF; border-radius: 14px; }
.osc-vr-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #5B21B6; background: #EDE9FE; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
