/* ป็อบอัพแจ้งเตือนฝั่งลูกค้า (แทนที่การแจ้งเตือนเล็กมุมจอสำหรับข้อผิดพลาด/คำเตือน/ยืนยัน) */
.rr-pop-back{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:18px;
  background:rgba(15,23,42,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;transition:opacity .16s ease}
.rr-pop-back.in{opacity:1}
.rr-pop{box-sizing:border-box;width:100%;max-width:380px;max-height:calc(100dvh - 36px);overflow:auto;background:#fff;color:#111827;border-radius:22px;
  padding:26px 22px 20px;text-align:center;box-shadow:0 24px 60px rgba(15,23,42,.35);transform:translateY(10px) scale(.96);transition:transform .18s cubic-bezier(.2,.9,.3,1.2)}
.rr-pop-back.in .rr-pop{transform:none}
.rr-pop-ic{width:68px;height:68px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center}
.rr-pop-ic svg{width:34px;height:34px;display:block}
.rr-pop-ic.error{background:#fee2e2;color:#dc2626}
.rr-pop-ic.warning{background:#fef3c7;color:#d97706}
.rr-pop-ic.success{background:#dcfce7;color:#16a34a}
.rr-pop-ic.info{background:#dbeafe;color:#2563eb}
.rr-pop-ic.question{background:#e0e7ff;color:#4f46e5}
.rr-pop-ic.error svg{animation:rrPopShake .45s ease .1s both}
.rr-pop-ic.success svg path{stroke-dasharray:30;stroke-dashoffset:30;animation:rrPopDraw .4s ease .15s forwards}
.rr-pop-t{font-size:1.15rem;font-weight:700;line-height:1.35;margin:0 0 6px}
.rr-pop-x{font-size:.95rem;line-height:1.6;color:#4b5563;margin:0;overflow-wrap:anywhere;white-space:pre-line}
.rr-pop-b{display:flex;gap:10px;margin-top:20px}
.rr-pop-b button{flex:1;min-height:46px;border-radius:14px;border:1px solid transparent;font:inherit;font-weight:700;cursor:pointer;padding:10px 14px}
.rr-pop-ok{background:var(--primary,#111827);color:var(--primary-text,#fff)}
.rr-pop-ok.danger{background:#dc2626;color:#fff}
.rr-pop-no{background:#f3f4f6;color:#374151;border-color:#e5e7eb}
.rr-pop-b button:focus-visible{outline:3px solid rgba(37,99,235,.45);outline-offset:2px}
.rr-pop-bar{height:3px;border-radius:3px;background:rgba(22,163,74,.35);margin:16px -6px 0;transform-origin:left;animation:rrPopBar linear forwards}
@keyframes rrPopShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@keyframes rrPopDraw{to{stroke-dashoffset:0}}
@keyframes rrPopBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.rr-pop-back,.rr-pop{transition:none}.rr-pop-ic svg,.rr-pop-ic svg path{animation:none!important;stroke-dashoffset:0!important}.rr-pop-bar{animation:none}}
