/* tramed Shop popup — хар хүрэн · зааны яс · алтан. Theme-ийн загвар нөлөөлөхгүйн тулд #trs дотор. */
html.trs-lock, html.trs-lock body { overflow: hidden !important; }

#trs {
  --ink: #1E140C; --cream: #F6F0E6; --cream2: #E6D8BF; --coral: #C9A35A; --coral2: #8A5A32; --muted: #6B5646; --ok: #2F5D48;
  position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.45;
}
#trs[hidden] { display: none !important; }
#trs *, #trs *::before, #trs *::after { box-sizing: border-box; }
#trs .trs-scrim { position: absolute; inset: 0; background: rgba(23, 16, 10, .6); opacity: 0; transition: opacity .22s; }
#trs .trs-sheet {
  position: relative; width: min(440px, calc(100vw - 32px)); max-height: min(92vh, 760px); display: flex; flex-direction: column;
  background: var(--cream); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s;
}
#trs.on .trs-scrim { opacity: 1; }
#trs.on .trs-sheet { transform: none; opacity: 1; }
@media (max-width: 600px) {
  #trs { align-items: flex-end; }
  #trs .trs-sheet { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
}

#trs .trs-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 8px 22px; }
#trs .trs-head b { margin-right: auto; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
#trs .trs-x {
  width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; margin: 0; background: transparent !important; color: var(--ink) !important;
  display: grid; place-items: center; cursor: pointer; box-shadow: none !important;
}
#trs .trs-x:hover { background: var(--cream2) !important; }
#trs .trs-x[hidden] { display: none; }
#trs .trs-x svg { width: 20px; height: 20px; }
#trs .trs-head .trs-x[data-trs-back] { margin-left: -10px; }
#trs .trs-body { overflow: auto; padding: 6px 22px 24px; display: flex; flex-direction: column; gap: 12px; }

#trs .trs-prod { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 10px; }
#trs .trs-th { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; background: var(--cream2) center/cover no-repeat; }
#trs .trs-pn { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#trs .trs-pn b { font-size: 15px; font-weight: 800; line-height: 1.25; }
#trs .trs-pp { display: flex; gap: 8px; align-items: baseline; }
#trs .trs-pp s { color: var(--muted); font-size: 13px; }
#trs .trs-pp em { font-style: normal; font-weight: 800; font-size: 17px; color: var(--ink); }

#trs .trs-lbl { display: block; margin: 4px 0 -4px; font-size: 13px; font-weight: 800; color: var(--ink); }
#trs .trs-in {
  width: 100%; height: 50px; padding: 0 16px; margin: 0; border: 2px solid var(--cream2) !important; border-radius: 14px !important; background: #fff !important;
  font: 600 16px/1 'Montserrat', system-ui, sans-serif !important; color: var(--ink) !important; box-shadow: none !important; outline: none;
}
#trs .trs-in:focus { border-color: var(--ink) !important; }
#trs .trs-cp { text-transform: uppercase; }
#trs .trs-note { margin: 0; font-size: 13.5px; color: var(--muted); }
#trs .trs-note a { color: var(--ink); font-weight: 700; }
#trs .trs-c { text-align: center; align-self: center; }

#trs .trs-btn {
  width: 100%; min-height: 54px; margin: 4px 0 0; padding: 0 20px; border: 0 !important; border-radius: 999px !important;
  background: var(--ink) !important; color: #fff !important; font: 800 16px/1.2 'Montserrat', system-ui, sans-serif !important;
  cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; transition: transform .12s, background .15s;
}
#trs .trs-btn:hover { background: #3A2618 !important; }
#trs .trs-btn:active { transform: scale(.98); }
#trs .trs-btn[disabled] { opacity: .6; cursor: default; }
#trs .trs-btn.trs-ghost { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; margin-top: 0; }
#trs .trs-link {
  background: none !important; border: 0 !important; padding: 2px 0; margin: 0; color: var(--ink) !important; font: 700 14px/1.3 'Montserrat', system-ui, sans-serif !important;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none !important; text-transform: none !important;
}
#trs .trs-cplink { align-self: flex-start; color: var(--muted) !important; font-weight: 600 !important; }
#trs .trs-err { margin: 0; color: #b3261e; font-size: 14px; font-weight: 700; text-align: center; }
#trs .trs-err:empty { display: none; }


#trs .trs-total { display: flex; justify-content: space-between; align-items: baseline; background: #fff; border-radius: 18px; padding: 14px 18px; }
#trs .trs-total small { font-size: 13px; font-weight: 800; color: var(--muted); }
#trs .trs-total b { font-size: 28px; font-weight: 800; }
#trs .trs-warn { background: #fff4e5; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
#trs .trs-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border-radius: 22px; padding: 18px; }
#trs .trs-qr img { width: min(240px, 70vw); height: auto; display: block; image-rendering: pixelated; }
#trs .trs-qr small { font-size: 13px; color: var(--muted); text-align: center; }
#trs .trs-banks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#trs .trs-bank { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; background: #fff; border-radius: 14px; text-decoration: none !important; color: var(--ink) !important; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; }
#trs .trs-bank img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
#trs .trs-more summary { cursor: pointer; font-weight: 700; font-size: 14px; text-align: center; padding: 6px; }
#trs .trs-wait { display: flex; align-items: center; gap: 10px; background: var(--cream2); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
#trs .trs-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--cream2); border-top-color: var(--coral); animation: trsspin .8s linear infinite; flex-shrink: 0; display: inline-block; }
#trs .trs-wait .trs-spin { border-color: #fff; border-top-color: var(--coral); }
@keyframes trsspin { to { transform: rotate(360deg); } }
#trs .trs-load { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; color: var(--muted); font-size: 14px; }

#trs .trs-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 4px; }
#trs .trs-okc { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
#trs .trs-okc svg { width: 30px; height: 30px; }
#trs .trs-ok h3 { margin: 0; font-family: inherit !important; letter-spacing: -.01em; font-size: 22px; font-weight: 800; color: var(--ink); }
#trs .trs-ok p { margin: 0; color: var(--muted); font-size: 15px; }
#trs .trs-files { display: flex; flex-direction: column; gap: 8px; }
#trs .trs-file {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px; border-radius: 16px; background: var(--coral); color: var(--ink) !important;
  text-decoration: none !important; font-weight: 800; font-size: 15px; transition: background .15s;
}
#trs .trs-file:hover { background: #D9B26A; }
#trs .trs-file svg { width: 22px; height: 22px; flex-shrink: 0; }
#trs .trs-file span { overflow-wrap: anywhere; }

/* [trshop_buy] */
.trs-buy-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 8px; background: #C9A35A; color: #17100A; font: 700 15px 'Montserrat', system-ui, sans-serif; cursor: pointer; }

/* ---- hint (имэйлийн алдаа) ---- */
#trs .trs-hint { margin: -4px 0 0; font-size: 14px; color: var(--ink); }
#trs .trs-hint:empty { display: none; }
#trs .trs-hint span { color: var(--coral2); font-weight: 700; }
#trs .trs-hint button { background: none !important; border: 0 !important; padding: 0; color: var(--ink) !important; font: 700 14px 'Montserrat', system-ui, sans-serif !important; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
#trs .trs-a { display: flex; align-items: center; justify-content: center; text-decoration: none !important; }

/* ---- бүтээгдэхүүний харагдац (wide) ---- */
#trs .trs-sheet.wide { width: min(900px, calc(100vw - 48px)); max-height: min(90vh, 720px); overflow: hidden; }
#trs .trs-sheet.wide .trs-head { position: absolute; top: 0; right: 0; z-index: 4; padding: 14px; }
#trs .trs-sheet.wide .trs-head b { display: none; }
#trs .trs-sheet.wide .trs-head .trs-x[data-trs-close] { background: #fff !important; box-shadow: 0 4px 14px rgba(0,0,0,.12) !important; }
#trs .trs-sheet.wide .trs-body { padding: 0; overflow: auto; }
#trs .trs-v { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }
#trs .trs-g { position: relative; min-width: 0; overflow: hidden; background: linear-gradient(135deg, var(--coral), #8A5A32); min-height: 100%; }
#trs .trs-gs { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
#trs .trs-gs::-webkit-scrollbar { display: none; }
#trs .trs-gi { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; aspect-ratio: 1; }
#trs .trs-i { min-width: 0; }
#trs .trs-gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
#trs .trs-ga { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0 !important; background: rgba(255,255,255,.9) !important; color: var(--ink) !important; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.15) !important; }
#trs .trs-ga svg { width: 18px; height: 18px; }
#trs .trs-ga.l { left: 12px; } #trs .trs-ga.r { right: 12px; }
#trs .trs-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
#trs .trs-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .25s, background .25s; }
#trs .trs-dots i.on { width: 20px; background: var(--coral); }
#trs .trs-i { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
#trs .trs-eb { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral2); padding-right: 40px; }
#trs .trs-i h2 { margin: -4px 0 0; padding-right: 40px; font: 800 28px/1.1 'Montserrat', 'Montserrat', sans-serif !important; letter-spacing: -.02em; color: var(--ink); text-transform: none; }
#trs .trs-pr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
#trs .trs-pr b { font: 800 26px 'Montserrat', 'Montserrat', sans-serif; }
#trs .trs-pr s { color: var(--muted); font-size: 15px; }
#trs .trs-pr em { font-style: normal; background: var(--coral); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
#trs .trs-left { font-size: 13px; font-weight: 800; color: var(--coral2); }
#trs .trs-desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
#trs .trs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#trs .trs-tags span { padding: 7px 11px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; }
#trs .trs-demo { align-self: flex-start; padding: 9px 16px; border-radius: 999px; box-shadow: 0 0 0 1.5px rgba(17,17,17,.25) inset; font-weight: 700; font-size: 14px; color: var(--ink) !important; text-decoration: none !important; }
#trs .trs-i .trs-lbl { margin-top: 6px; }
#trs .trs-i .trs-btn { margin-top: 2px; }
#trs .trs-more { align-self: center; font-weight: 700; font-size: 14px; color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
#trs .trs-more-qr summary { cursor: pointer; font-weight: 700; font-size: 14px; text-align: center; padding: 6px; }
#trs .trs-total small { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  #trs .trs-sheet.wide { width: 100%; max-height: 94vh; }
  #trs .trs-sheet.wide .trs-body { overflow: auto; }
  #trs .trs-v { grid-template-columns: minmax(0, 1fr); }
  #trs .trs-gi { aspect-ratio: 4 / 3; }
  #trs .trs-i { padding: 20px 20px 26px; }
  #trs .trs-i h2 { font-size: 23px !important; }
}

/* ===== v2.2 popup: зураг дээр, богино тайлбар, худалдан авах, доор нь дэлгэрэнгүй ===== */
#trs, #trs * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important; }
#trs h2, #trs .trs-pr b, #trs .trs-total b, #trs .trs-lh, #trs .trs-ok h3 { font-family: 'Forum', Georgia, serif !important; font-weight: 400 !important; letter-spacing: 0 !important; }
#trs .trs-sheet.wide .trs-body { overflow: auto; overscroll-behavior: contain; }
#trs .trs-v { align-items: start; }
#trs .trs-g { position: sticky; top: 0; align-self: start; min-height: 0; background: #fff; }
#trs .trs-gs { height: auto; }
#trs .trs-gi { aspect-ratio: 1; background: #fff; }
#trs .trs-gi img { object-fit: contain; }
#trs .trs-desc { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#trs .trs-desc.open { display: block; -webkit-line-clamp: unset; }
#trs .trs-sdmore { align-self: flex-start; margin-top: -6px; font-size: 13.5px !important; color: var(--muted) !important; }
#trs .trs-sdmore[hidden] { display: none; }
#trs .trs-buybox { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 20px; padding: 16px; margin-top: 4px; }
#trs .trs-buybox .trs-lbl { margin: 0; }
#trs .trs-buybox .trs-in { border-color: var(--cream2) !important; background: var(--cream) !important; }
#trs .trs-buybox .trs-note { text-align: center; font-size: 12.5px; }
#trs .trs-long:empty { display: none; }
#trs .trs-lh { margin: 14px 0 4px; font-size: 19px; font-weight: 800; color: var(--ink); }
#trs .trs-lt { font-size: 14.5px; line-height: 1.7; color: #4a443d; }
#trs .trs-lt > * + * { margin-top: 10px; }
#trs .trs-lt p, #trs .trs-lt li { margin: 0; }
#trs .trs-lt ul, #trs .trs-lt ol { padding-left: 18px; margin: 8px 0; }
#trs .trs-lt h1, #trs .trs-lt h2, #trs .trs-lt h3, #trs .trs-lt h4 { font-size: 16px !important; font-weight: 800; color: var(--ink); margin: 14px 0 4px; padding: 0 !important; }
#trs .trs-lt img { max-width: 100%; height: auto; border-radius: 12px; }
#trs .trs-lt table { width: 100%; border-collapse: collapse; font-size: 13px; }
#trs .trs-lt td, #trs .trs-lt th { border: 1px solid var(--cream2); padding: 6px 8px; }
#trs .trs-lt pre { white-space: pre-wrap; font: inherit; background: none; border: 0; padding: 0; margin: 0; }
@media (max-width: 760px) {
  #trs .trs-g { position: relative; }
  #trs .trs-gi { aspect-ratio: 1; }
  #trs .trs-sheet.wide .trs-head { position: absolute; }
}
/* зургийн хайрцаг өөрөө дөрвөлжин (утсан дээр мөр нь 0 өндөртэй болохоос сэргийлнэ) */
#trs .trs-g { aspect-ratio: 1; width: 100%; }
#trs .trs-g .trs-gs { height: 100%; }
#trs .trs-g .trs-gi { height: 100%; aspect-ratio: auto; }
#trs .trs-v { flex-shrink: 0; }

/* ===== tramed: биет барааны талбарууд ===== */
#trs .trs-btn { border-radius: 10px !important; font-weight: 700 !important; }
#trs .trs-in, #trs .trs-buybox .trs-in { border-radius: 10px !important; }
#trs .trs-ta { height: auto; min-height: 72px; padding: 12px 16px; line-height: 1.4 !important; resize: vertical; }
#trs .trs-lbl small { font-weight: 500; color: var(--muted); }
#trs .trs-fee { text-align: right !important; margin-top: -2px; }
#trs .trs-ok p b { color: var(--ink); }
#trs .trs-i h2 { font-size: 32px !important; }
#trs .trs-pr b { font-size: 28px; }

/* ===== сонголт (Багцаар / Дангаар) ===== */
#trs .trs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 8px; min-width: 0; }
#trs .trs-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 14px; margin: 0; border: 2px solid var(--cream2) !important; border-radius: 10px !important; background: var(--cream) !important; color: var(--ink) !important; cursor: pointer; text-align: left; box-shadow: none !important; text-transform: none !important; }
#trs .trs-opt span { font-weight: 700; font-size: 14.5px; }
#trs .trs-opt small { font-size: 13px; color: var(--muted); }
#trs .trs-opt.on { border-color: var(--ink) !important; background: #fff !important; }
#trs .trs-opt[disabled] { opacity: .45; cursor: default; }

#trs .trs-chrome { display: inline-block; margin: 4px 0; padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff !important; font-weight: 700; text-decoration: none !important; }
#trs .trs-opt { min-width: 0; } #trs .trs-opt span { overflow-wrap: anywhere; } #trs .trs-body { overflow-x: hidden; }

#trs .trs-vdesc{color:var(--ink,inherit);white-space:pre-line;margin:14px 0 4px;padding:12px 14px;border-left:3px solid #C9A35A;background:rgba(201,163,90,.08);border-radius:0 10px 10px 0;font-size:14.5px;line-height:1.6;overflow-wrap:anywhere}
