/* PCMarket PWA — Splash, დაყენების ბანერი, push-ის შეთავაზება, ანგარიშის push გვერდი */

/* ---------- Splash (მხოლოდ დაყენებულ აპში) ---------- */
.pcm-splash{position:fixed;inset:0;z-index:2147483000;background:#fff;color:#010B14;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;text-align:center;transition:opacity .3s ease}
.pcm-splash[hidden]{display:none}
.pcm-splash.is-out{opacity:0;pointer-events:none}
.pcm-splash__mid{display:flex;flex-direction:column;align-items:center}
.pcm-splash img{width:260px;max-width:72vw;height:auto}
.pcm-splash__tag{font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-size:15px;color:#15803D;margin-top:34px}
.pcm-splash__h{font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-size:min(15px,4vw);line-height:1.35;margin-top:8px;white-space:nowrap}
.pcm-splash__h span{color:#E10208}
.pcm-splash__foot{position:absolute;left:24px;right:24px;bottom:calc(40px + env(safe-area-inset-bottom));margin:0;font:12px/1.6 'Noto Sans Georgian',system-ui,sans-serif;color:#5B6470}

/* ---------- დაყენების ბანერი ---------- */
.pcmi{position:fixed;inset:0;z-index:100000;font-family:'Noto Sans Georgian',system-ui,-apple-system,sans-serif;color:#010B14}
.pcmi__dim{position:absolute;inset:0;background:rgba(1,11,20,.45);opacity:0;transition:opacity .25s}
.pcmi__sheet{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:12px 12px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .25s ease;max-width:560px;margin:0 auto}
.pcmi.is-on .pcmi__dim{opacity:1}
.pcmi.is-on .pcmi__sheet{transform:none}
.pcmi__grip{display:block;width:40px;height:4px;border-radius:2px;background:#D5D9DF;margin:0 auto 16px}
.pcmi__top{display:flex;gap:14px;align-items:center}
.pcmi__top img{width:60px;height:60px;border-radius:14px;border:1px solid #E6E8EC;flex:none;background:#fff}
.pcmi__top strong{display:block;font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-size:18px;font-weight:400;line-height:1.3}
.pcmi__top span{display:block;font-size:13px;color:#5B6470;margin-top:2px}
.pcmi__list{list-style:none;padding:0;margin:18px 0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.pcmi__list li{display:flex;gap:10px;align-items:center}
.pcmi__list svg{flex:none}
.pcmi__go,.pcmi__later{display:block;width:100%;border:0;cursor:pointer;font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif}
.pcmi__go{height:48px;border-radius:4px;background:#E10208;color:#fff;font-size:16px}
.pcmi__go:hover,.pcmi__go:focus-visible{background:#B80006}
.pcmi__later{height:44px;background:none;color:#5B6470;font-size:14px;margin-top:6px}
/* iPhone */
.pcmi--ios .pcmi__sheet{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));border-radius:12px;padding:20px}
.pcmi--ios .pcmi__top img{width:52px;height:52px;border-radius:12px}
.pcmi--ios .pcmi__top strong{font-size:17px}
.pcmi--ios .pcmi__top > div{flex:1}
.pcmi__x{width:36px;height:36px;border:0;background:#F4F5F7;border-radius:4px;flex:none;display:flex;align-items:center;justify-content:center;color:#5B6470;cursor:pointer}
.pcmi__steps{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:14px;font-size:14px}
.pcmi__steps li{display:flex;gap:12px;align-items:center}
.pcmi__steps li span{flex:1}
.pcmi__steps b{width:28px;height:28px;border-radius:50%;background:#E10208;color:#fff;font-family:'BPG Mrgvlovani Caps 2010',sans-serif;font-weight:400;display:flex;align-items:center;justify-content:center;flex:none}
.pcmi__note{margin:16px 0 0;padding:10px 12px;background:#F0FDF4;border-radius:4px;font-size:12px;color:#15803D;line-height:1.5}
.pcmi__arrow{position:absolute;left:50%;bottom:calc(72px + env(safe-area-inset-bottom));margin-left:-9px;width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;border-top:12px solid #fff;opacity:0;transition:opacity .25s}
.pcmi.is-on .pcmi__arrow{opacity:1}
@media (min-width:768px){.pcmi--ios .pcmi__sheet{bottom:auto;top:16px;left:auto;right:16px;width:380px}.pcmi__arrow{display:none}}

/* ---------- აპში: „ჩართე შეტყობინებები“ ---------- */
.pcm-softpush{position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9990;background:#fff;border:1px solid #E6E8EC;border-radius:8px;box-shadow:0 10px 28px rgba(1,11,20,.14);padding:12px;display:flex;align-items:center;gap:10px;font:13px/1.4 'Noto Sans Georgian',system-ui,sans-serif;color:#2B3440;max-width:520px;margin:0 auto}
.pcm-softpush > svg{flex:none}
.pcm-softpush span{flex:1;min-width:0}
.pcm-softpush strong{display:block;font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-weight:400;font-size:14px;color:#010B14}
.pcm-softpush__go{border:0;border-radius:4px;background:#16A34A;color:#fff;height:36px;padding:0 14px;font-family:'BPG Mrgvlovani Caps 2010',sans-serif;cursor:pointer;flex:none}
.pcm-softpush__x{width:32px;height:32px;border:0;background:none;color:#5B6470;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
@media (min-width:769px){.pcm-softpush{bottom:16px}}

/* ---------- ჩამრთველი ---------- */
.pcm-switch{position:relative;width:52px;height:30px;border-radius:15px;border:0;padding:3px;background:#D5D9DF;cursor:pointer;flex:none;transition:background .15s}
.pcm-switch span{display:block;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.pcm-switch[aria-checked="true"]{background:#16A34A}
.pcm-switch[aria-checked="true"] span{transform:translateX(22px)}
.pcm-switch:disabled{opacity:.5;cursor:default}
.pcm-switch:focus-visible{outline:2px solid #2563EB;outline-offset:2px}

/* ---------- ანგარიში → აპი და შეტყობინებები ---------- */
.pcm-pushacc{max-width:640px}
.pcm-pushacc__dev{background:#fff;border:1px solid #E6E8EC;border-radius:4px;padding:14px;display:flex;gap:12px;align-items:center}
.pcm-pushacc__dev > div{flex:1}
.pcm-pushacc__dev strong{display:block;font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-weight:400;font-size:15px}
.pcm-pushacc__st{display:block;font-size:12px;color:#5B6470;margin-top:2px}
.pcm-pushacc__st.is-ok{color:#15803D}
.pcm-pushacc__st.is-bad{color:#B80006}
.pcm-pushacc__h{font-family:'BPG Mrgvlovani Caps 2010','Noto Sans Georgian',sans-serif;font-size:14px;font-weight:400;color:#5B6470;margin:22px 0 8px}
.pcm-pushacc__list{background:#fff;border:1px solid #E6E8EC;border-radius:4px}
.pcm-pushacc__row{display:flex;gap:12px;align-items:center;padding:14px;border-bottom:1px solid #EEF0F3}
.pcm-pushacc__row:last-child{border-bottom:0}
.pcm-pushacc__row > div{flex:1;min-width:0}
.pcm-pushacc__row strong{display:block;font-size:14px;font-weight:600;font-family:inherit}
.pcm-pushacc__row span{display:block;font-size:12px;color:#5B6470;margin-top:2px;line-height:1.4}
.pcm-pushacc__me{font-style:normal;font-weight:400;color:#15803D}
.pcm-pushacc__del{border:0;background:none;color:#B80006;font-size:13px;padding:8px;cursor:pointer;font-family:inherit}
.pcm-pushacc__empty{margin:0;padding:14px;font-size:13px;color:#5B6470}
.pcm-pushacc__ios,.pcm-pushacc__foot{margin-top:10px}
.pcm-acc__admin{display:flex;align-items:center;gap:10px}
.pcm-acc__admin b{margin-left:auto;background:#E10208;color:#fff;border-radius:10px;padding:0 7px;font-size:12px;line-height:20px}

/* =====================================================================
 * აპის ხედი (v0.51.2): html.pcm-app — დაყენებული აპი (display-mode: standalone)
 * ან სატესტოდ ?pcm_app=1. ბრაუზერში საიტი უცვლელია.
 * ===================================================================== */

/* ჰერო → მხოლოდ ძიება + პოპულარული ტეგები ერთ ხაზზე */
html.pcm-app .pcm-hero { min-height: 0; background: #fff !important; border-bottom: 1px solid #E6E8EC; display: block; }
html.pcm-app .pcm-hero__shade,
html.pcm-app .pcm-hero__kicker,
html.pcm-app .pcm-hero__title,
html.pcm-app .pcm-hero__lead { display: none !important; }
html.pcm-app .pcm-hero__in { padding: 12px 14px; gap: 10px; align-items: stretch; text-align: left; }
html.pcm-app .pcm-hsearch { margin: 0; max-width: none; padding: 0; gap: 0; flex-direction: row; align-items: stretch; box-shadow: none; border: 1px solid #D5D9DF; overflow: hidden; }
html.pcm-app .pcm-hsearch label { flex: 1; min-width: 0; padding: 0 10px; gap: 8px; }
html.pcm-app .pcm-hsearch input { min-height: 46px !important; font-size: 15px !important; }
html.pcm-app .pcm-hsearch__btn { flex: none; width: 84px; min-height: 0; border-radius: 0; padding: 0; font-size: 14px; }
html.pcm-app .pcm-hero__tags { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 6px; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.pcm-app .pcm-hero__tags::-webkit-scrollbar { display: none; }
html.pcm-app .pcm-hero__tags > span { display: none; }
html.pcm-app .pcm-htag { flex: none; min-height: 32px; padding: 0 12px; border-radius: 16px; background: #F4F5F7; border: 1px solid #E6E8EC; color: #2B3440 !important; font-size: 12.5px; white-space: nowrap; }
html.pcm-app .pcm-htag:hover { background: #EEF0F3; }

/* სექციები უფრო კომპაქტურად */
html.pcm-app .pcm-sec { padding-top: 22px; }
html.pcm-app .pcm-sec__title { font-size: 17px !important; text-align: left !important; margin-bottom: 10px !important; }

/* კატეგორიები → ერთი ხაზი, გვერდზე სქროლით */
html.pcm-app .pcm-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
html.pcm-app .pcm-cats::-webkit-scrollbar { display: none; }
html.pcm-app .pcm-cat { flex: none; width: 104px; padding: 8px 4px; gap: 4px; border-radius: 6px; scroll-snap-align: start; transform: none !important; box-shadow: none !important; }
html.pcm-app .pcm-cat__ic,
html.pcm-app .pcm-cat--img .pcm-cat__ic { width: 56px; height: 42px; border-radius: 8px; }
html.pcm-app .pcm-cat__ic img { width: 26px; height: 26px; }
html.pcm-app .pcm-cat--img .pcm-cat__ic { width: 64px; height: 48px; }
html.pcm-app .pcm-cat--img .pcm-cat__ic img { width: auto; height: auto; max-height: 48px; max-width: 64px; }
html.pcm-app .pcm-cat strong { font-size: 11px; font-weight: 400; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }

/* ტელეფონზე ქვედა ბარი უკვე შეიცავს „დამატებას“ და „ანგარიშს“ — ზედა ზოლში აღარ ვიმეორებთ (ფავორიტები და მესიჯები რჩება) */
@media (max-width: 768px) {
	html.pcm-app .pcm-hdr__nav .pcm-publish,
	html.pcm-app .pcm-hdr__nav > .pcm-hlink:not(.pcm-hlink--fav) { display: none !important; }
}
html.pcm-app .pcm-cat__sub,
html.pcm-app .pcm-cat__n { display: none; }

/* „ციფრებში“ სტატისტიკა აპში არ ჩანს */
html.pcm-app .pcm-sec--stats { display: none; }

/* ფუთერი → მხოლოდ წესები · კონფიდენციალურობა · კონტაქტი + © */
.pcm-ftr__app { display: none; }
html.pcm-app .pcm-ftr__grid,
html.pcm-app .pcm-ftr__bottom { display: none; }
html.pcm-app .pcm-ftr { margin-top: 24px; }
html.pcm-app .pcm-ftr__app { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 16px 18px; font-size: 12px; line-height: 1.7; color: #5B6470; text-align: center; }
html.pcm-app .pcm-ftr__app a { color: #2B3440; }
