@import url('./marketing-reloop-brand-v1.css?v=1.0.1');
@import url('./marketing-reloop-brand-fix-v2.css?v=2.0.0');
#bfSupportRoot{position:fixed;right:22px;bottom:22px;z-index:9999;font-family:Inter,"Noto Sans Thai",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173452}#bfSupportRoot *{box-sizing:border-box}.bf-support-launcher{display:flex;align-items:center;gap:9px;border:0;border-radius:999px;background:#168bff;color:#fff;padding:12px 16px;box-shadow:0 14px 38px rgba(0,106,206,.28);cursor:pointer;font-weight:800;font-size:14px}.bf-support-launcher:hover{transform:translateY(-1px)}.bf-support-launcher i{width:10px;height:10px;border-radius:50%;background:#8dffb2;box-shadow:0 0 0 4px rgba(141,255,178,.16)}.bf-support-badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ff4e61;color:#fff;display:grid;place-items:center;font-size:11px}.bf-support-panel{position:absolute;right:0;bottom:58px;width:min(380px,calc(100vw - 28px));height:min(600px,calc(100vh - 100px));background:#fff;border:1px solid #dce8f5;border-radius:24px;box-shadow:0 24px 70px rgba(23,52,82,.22);overflow:hidden;display:none;grid-template-rows:auto 1fr auto}.bf-support-panel.open{display:grid}.bf-support-head{padding:16px 17px;background:linear-gradient(135deg,#0b73d1,#168bff);color:#fff;display:flex;align-items:center;gap:11px}.bf-support-head-logo{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.9);display:grid;place-items:center;font-weight:900;overflow:hidden}.bf-support-head-logo img{width:25px;height:25px;display:block;object-fit:contain}.bf-support-head-logo-fallback{color:#fff;font-weight:900}.bf-support-head-copy{min-width:0;flex:1}.bf-support-head-copy b,.bf-support-head-copy span{display:block}.bf-support-head-copy b{font-size:15px}.bf-support-head-copy span{font-size:11px;opacity:.86;margin-top:2px}.bf-support-close{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.13);color:#fff;font-size:20px;cursor:pointer}.bf-support-body{overflow:auto;padding:16px;background:#f7fbff}.bf-support-welcome{padding:14px;border:1px solid #dfeaf4;border-radius:16px;background:#fff;margin-bottom:12px}.bf-support-welcome b{display:block;font-size:14px}.bf-support-welcome p{margin:5px 0 0;font-size:12px;line-height:1.55;color:#6c8396}.bf-support-identify{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.bf-support-identify input{width:100%;height:38px;border:1px solid #d8e5ef;border-radius:10px;padding:0 10px;font-size:12px;outline:none}.bf-support-messages{display:grid;gap:9px}.bf-support-msg{max-width:83%;padding:10px 12px;border-radius:15px;font-size:12.5px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.bf-support-msg.customer{justify-self:end;background:#168bff;color:#fff;border-bottom-right-radius:5px}.bf-support-msg.admin{justify-self:start;background:#fff;border:1px solid #dce8f2;color:#274962;border-bottom-left-radius:5px}.bf-support-msg small{display:block;margin-top:5px;font-size:9.5px;opacity:.7}.bf-support-empty{padding:28px 10px;text-align:center;color:#8298aa;font-size:12px}.bf-support-compose{padding:12px;background:#fff;border-top:1px solid #e2ebf2;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.bf-support-compose textarea{resize:none;min-height:44px;max-height:110px;border:1px solid #d7e5ef;border-radius:13px;padding:11px 12px;outline:none;font:inherit;font-size:12.5px;line-height:1.45}.bf-support-compose textarea:focus{border-color:#8fcaff;box-shadow:0 0 0 3px rgba(22,139,255,.08)}.bf-support-send{height:44px;border:0;border-radius:13px;background:#168bff;color:#fff;padding:0 15px;font-weight:900;cursor:pointer}.bf-support-send:disabled{opacity:.5}.bf-support-status{padding:7px 12px;background:#eef7ff;color:#608099;font-size:10px;text-align:center}.bf-support-error{padding:8px 10px;border-radius:10px;background:#fff0f0;color:#a44747;font-size:11px;margin-bottom:10px}
.bf-support-ticket{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;background:#eef8ff;border:1px solid #cce7ff;border-radius:14px;padding:11px 12px;margin:0 0 12px}.bf-support-ticket-icon{width:32px;height:32px;border-radius:10px;background:#168bff;color:#fff;display:grid;place-items:center;font-weight:900}.bf-support-ticket-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.bf-support-ticket-top b{font-size:12.5px}.bf-support-ticket-top span{font-size:10px;font-weight:800;color:#0879dc;background:#fff;padding:4px 7px;border-radius:999px;border:1px solid #d5eaff;white-space:nowrap}.bf-support-ticket small{display:block;color:#66869e;font-size:10.5px;line-height:1.45;margin-top:4px}.bf-support-waiting{display:flex;gap:8px;align-items:center;padding:9px 11px;border-radius:12px;background:#fff;border:1px dashed #cfe1ee;color:#6b879a;font-size:10.5px;margin-top:11px}.bf-support-waiting i{width:8px;height:8px;border-radius:50%;background:#f0ad35;box-shadow:0 0 0 3px rgba(240,173,53,.12);flex:0 0 auto}.bf-support-queue{margin-top:12px;padding:13px;border-radius:15px;background:#fff9eb;border:1px solid #f4d993;color:#5d4b24}.bf-support-queue>b{display:block;font-size:12.5px}.bf-support-queue>p{font-size:11px;line-height:1.55;margin:5px 0 0;color:#755f2e}.bf-support-queue strong{font-weight:900}.bf-support-merchant-note,.bf-support-contact-saved{margin-top:9px;padding:8px 9px;border-radius:10px;background:#edf9f3;color:#267655;font-size:10.5px}.bf-support-callback{display:grid;gap:7px;margin-top:11px;padding-top:11px;border-top:1px solid rgba(140,110,40,.16)}.bf-support-callback>strong{font-size:11.5px}.bf-support-callback input{width:100%;height:36px;border:1px solid #dfd5b6;background:#fff;border-radius:10px;padding:0 10px;font:inherit;font-size:11.5px;outline:none}.bf-support-callback input:focus{border-color:#168bff;box-shadow:0 0 0 3px rgba(22,139,255,.08)}.bf-support-callback button{height:36px;border:0;border-radius:10px;background:#173452;color:#fff;font-weight:800;font-size:11.5px;cursor:pointer}.bf-support-callback button:disabled{opacity:.55}.bf-support-callback small{color:#8b7650;font-size:9.5px}
@media(max-width:640px){#bfSupportRoot{right:14px;bottom:14px}.bf-support-launcher span.label{display:none}.bf-support-launcher{width:52px;height:52px;padding:0;justify-content:center}.bf-support-launcher i{width:12px;height:12px}.bf-support-panel{right:0;bottom:62px;width:calc(100vw - 28px);height:min(620px,calc(100vh - 92px));border-radius:20px}.bf-support-identify{grid-template-columns:1fr}.bf-support-ticket-top{align-items:flex-start;flex-direction:column;gap:4px}}
/* RELOOP app surface: keep the RELOOP label on app.html, but move left only after Merchant Portal is actually open. */
body:has(#app.app) #bfSupportRoot .bf-support-launcher .label{font-size:0}
body:has(#app.app) #bfSupportRoot .bf-support-launcher .label::after{content:'ผู้ช่วย RELOOP';font-size:14px}
body:has(#app.app:not(.hide)) #bfSupportRoot{left:22px;right:auto}
body:has(#app.app:not(.hide)) #bfSupportRoot .bf-support-panel{left:0;right:auto}
@media(max-width:640px){body:has(#app.app:not(.hide)) #bfSupportRoot{left:14px;right:auto}body:has(#app.app:not(.hide)) #bfSupportRoot .bf-support-panel{left:0;right:auto}}
