/* First-party support chat, isolated from the page's existing forms and dialogs. */
.rf-chat [hidden]{display:none!important}
.rf-chat-launcher{position:fixed;right:25px;bottom:25px;z-index:85;display:flex;align-items:center;gap:10px;min-height:56px;padding:15px 20px;border:1px solid #ffffff30;border-radius:18px;background:var(--blue,#2558f4);color:#fff;box-shadow:0 8px 30px #2558f438;font-size:14px;font-weight:650;line-height:1.25;transition:background .2s,transform .2s}
.rf-chat-launcher:hover{background:#1644d8;transform:translateY(-2px)}
.rf-chat-launcher>.icon{width:23px;height:23px}
.rf-chat-badge{display:grid;place-items:center;position:absolute;right:-6px;top:-7px;min-width:23px;height:23px;padding:0 5px;border:2px solid white;border-radius:20px;background:#dc354b;color:#fff;font-size:11px}
.rf-chat-dialog{position:fixed;inset:auto 24px 96px auto;margin:0;padding:0;width:390px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100dvh - 120px);overflow:hidden;border:1px solid #e0e7f5;border-radius:22px;background:#fff;color:#16213a;box-shadow:0 20px 90px #14233e35;font-family:var(--font,'Segoe UI',sans-serif);font-size:13px;line-height:1.55;z-index:90}
.rf-chat-dialog[open]{display:flex;flex-direction:column}
.rf-chat-header{display:flex;align-items:center;gap:11px;flex:none;padding:20px 18px;background:linear-gradient(120deg,#162d66,#2558f4);color:#fff}
.rf-chat-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:14px;background:#fff}
.rf-chat-avatar img{border-radius:8px}
.rf-chat-header>div{flex:1;min-width:0}
.rf-chat-header h2{font-family:var(--heading,'Segoe UI',sans-serif);font-size:15px;font-weight:700;letter-spacing:-.3px;line-height:1.4;color:white}
.rf-chat-header p{font-size:11px;line-height:1.5;color:#e2eaff;margin:3px 0 0;display:flex;align-items:center;gap:6px}
.rf-chat-header p:before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#bdcbe8;flex-shrink:0}
.rf-chat-header p[data-online=true]:before{background:#72edbe;box-shadow:0 0 0 3px #72edbe22}
.rf-chat-icon{display:grid;place-items:center;background:#ffffff15;color:white;border-radius:10px;width:33px;height:33px;flex-shrink:0}
.rf-chat-icon:hover{background:#ffffff30}
.rf-chat-icon>.icon{width:18px;height:18px}
.rf-chat-intro{padding:23px 22px 18px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}
.rf-chat-eyebrow{font-size:8px;font-weight:750;color:#2558f4;letter-spacing:1.6px}
.rf-chat-intro h3{font-size:22px;letter-spacing:-.7px;line-height:1.25;margin:9px 0 9px}
.rf-chat-intro>p{font-size:12px;color:#6d7587;line-height:1.65;margin:0 0 19px}
.rf-chat-field{margin:0 0 13px}
.rf-chat-field label{display:block;color:#263551;font-size:11px;font-weight:650;margin-bottom:5px}
.rf-chat-field label span{font-weight:400;color:#6d7587}
.rf-chat-field input,.rf-chat-field textarea{display:block;width:100%;min-width:0;padding:10px 12px;border:1px solid #dce3f0;border-radius:8px;background:#fff;color:#16213a;font-size:13px;line-height:1.5;transition:border-color .15s}
.rf-chat-field input:hover,.rf-chat-field textarea:hover{border-color:#b7c8ee}
.rf-chat-field textarea{resize:vertical;min-height:72px;max-height:170px}
.rf-chat-field input:focus,.rf-chat-field textarea:focus,.rf-chat-composer textarea:focus{border-color:#2558f4;outline:2px solid #2558f426;outline-offset:1px}
.rf-chat-primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 15px;border-radius:8px;border:1px solid #2558f4;background:#2558f4;color:#fff;font-size:11px;font-weight:650;line-height:1.35}
.rf-chat-primary:hover{background:#1644d8}
.rf-chat-primary>.icon{height:16px;width:16px}
#rf-chat-start{width:100%}
.rf-chat-intro>.rf-chat-privacy{font-size:10px;line-height:1.65;margin:14px 0 0}
.rf-chat-privacy a,.rf-chat-powered a{color:#2558f4;text-decoration:underline;text-underline-offset:2px}
.rf-chat-thread{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.rf-chat-thread-note{padding:10px 17px;border-bottom:1px solid #e9edf5;background:#f6f8fc;color:#748097;font-size:10px;line-height:1.5;margin:0;flex:none}
.rf-chat-messages{overflow:auto;overscroll-behavior:contain;flex:1;min-height:110px;padding:19px 17px;display:flex;flex-direction:column;gap:14px;background:#fff;scrollbar-width:thin}
.rf-chat-message{max-width:88%;align-self:flex-start;min-width:70px}
.rf-chat-message[data-role=visitor]{align-self:flex-end}
.rf-chat-message-meta{font-size:9px;color:#7d879a;display:flex;gap:8px;align-items:center;margin-bottom:5px}
.rf-chat-message[data-role=visitor] .rf-chat-message-meta{justify-content:flex-end}
.rf-chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;border-radius:3px 13px 13px 13px;background:#f0f4fb;color:#27364f;font-size:12px;line-height:1.6}
.rf-chat-message[data-role=visitor] .rf-chat-message-body{background:#2558f4;color:white;border-radius:13px 3px 13px 13px}
.rf-chat-composer{flex:none;padding:12px 14px 9px;border-top:1px solid #e6ebf4;background:white}
.rf-chat-composer textarea{display:block;width:100%;padding:9px 10px;max-height:115px;min-height:61px;resize:vertical;border:1px solid #dce3f0;border-radius:9px;font-size:12px;line-height:1.55;color:#16213a;background:#fff}
.rf-chat-composer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.rf-chat-composer>div>span{font-size:9px;line-height:1.5;color:#8b94a5;max-width:150px}
.rf-chat-composer .rf-chat-primary{min-height:35px;white-space:nowrap;padding:8px 11px;font-size:10px}
.rf-chat-powered{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:6px 15px 12px;background:white;font-size:8px;line-height:1.45;color:#8791a3}
.rf-chat-powered>span{max-width:240px}
.rf-chat-powered a{white-space:nowrap}
.rf-chat-error{padding:11px 16px;background:#fff3f3;border-bottom:1px solid #f4d1d6;color:#9c3443;font-size:11px;line-height:1.55;flex:none}
.rf-chat-error>button{font-size:11px;color:#8a2434;text-decoration:underline;text-underline-offset:3px;background:none;padding:0;margin:3px 0 0;display:block;font-weight:650}
.rf-chat-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:17px;color:#6d7587;background:#f6f8fc;font-size:11px;flex:none}
.rf-chat-spinner{width:14px;height:14px;border:2px solid #d8e3ff;border-top-color:#2558f4;border-radius:50%;animation:rf-chat-spin .8s linear infinite}
.rf-chat-closed{flex:none;padding:15px 17px;background:#f3f6fc;border-top:1px solid #e6ebf4}
.rf-chat-closed p{font-size:11px;line-height:1.6;color:#6d7587;margin:0 0 8px}
.rf-chat-closed button{padding:0;background:none;color:#2558f4;text-decoration:underline;text-underline-offset:3px;font-size:11px;font-weight:650}
.rf-chat-latest{position:absolute;right:18px;bottom:167px;font-size:10px;line-height:1.4;padding:7px 11px;border:1px solid #d7e2fc;border-radius:20px;background:#f1f5ff;color:#2558f4;box-shadow:0 3px 10px #14233e12}
.rf-chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes rf-chat-spin{to{transform:rotate(360deg)}}
@media(max-width:520px){.rf-chat-launcher{right:16px;bottom:16px;min-height:50px;border-radius:15px;padding:12px 15px;font-size:12px;gap:8px}.rf-chat-launcher>.icon{height:21px;width:21px}.rf-chat-dialog{right:12px;bottom:79px;width:calc(100vw - 24px);max-width:none;max-height:calc(100dvh - 96px);height:590px;border-radius:18px}.rf-chat-header{padding:16px}.rf-chat-field input,.rf-chat-field textarea,.rf-chat-composer textarea{font-size:16px}.rf-chat-intro{padding:20px 18px}.rf-chat-header h2{font-size:14px}}
@media(max-height:600px){.rf-chat-dialog{inset:12px 12px 12px auto;height:calc(100dvh - 24px);max-height:none}.rf-chat-header{padding:11px 15px}.rf-chat-avatar{width:36px;height:36px}.rf-chat-avatar img{width:26px;height:26px}.rf-chat-messages{min-height:0}.rf-chat-thread-note{padding:7px 13px}.rf-chat-powered{display:none}.rf-chat-composer textarea{min-height:45px;max-height:75px}.rf-chat-composer>div>span{display:none}.rf-chat-composer>div{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.rf-chat-launcher{transition:none}.rf-chat-spinner{animation:none}}
@media print{.rf-chat{display:none!important}}
