/* Routes of Peru chat — official plum/gold identity, no brown palette. */
:root{
  --rop-plum:#712e71;
  --rop-plum-dark:#3f1747;
  --rop-plum-soft:#f3edf5;
  --rop-gold:#d2bd87;
  --rop-gold-light:#f4e9c8;
  --rop-ink:#211a25;
  --rop-muted:#726a77;
  --rop-line:#e8e2eb;
  --rop-paper:#ffffff;
  --rop-wash:#faf8fb;
  --rop-wa:#20bd5a;
  --rop-shadow:0 22px 60px rgba(39,18,46,.23);
}
.rop-chat-btn,.rop-chat-panel,.rop-chat-panel *,.rop-chat-backdrop{box-sizing:border-box}
.rop-chat-btn{
  position:fixed;right:22px;bottom:22px;z-index:999997;
  width:72px;height:72px;padding:0;border:3px solid #fff;border-radius:50%;
  background:#fff;box-shadow:0 8px 26px rgba(54,24,63,.28),0 0 0 2px var(--rop-gold);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:box-shadow .18s ease;
}
.rop-chat-btn:hover{box-shadow:0 10px 28px rgba(54,24,63,.3),0 0 0 3px var(--rop-gold)}
.rop-chat-btn:focus-visible,.rop-chat-close:focus-visible,.rop-lang button:focus-visible,.rop-quick button:focus-visible,.rop-chat-foot button:focus-visible,.rop-wa:focus-visible{outline:3px solid #e5cc83;outline-offset:3px}
.rop-chat-btn[hidden]{display:none!important}
.rop-fab-avatar{position:absolute;inset:0;display:block;overflow:hidden;border-radius:50%;background:#f4eff6}
.rop-fab-face{display:block;width:100%;height:100%;object-fit:cover;object-position:center 36%}
.rop-fab-logo{position:absolute;right:-7px;bottom:-3px;width:30px;height:30px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(29,15,34,.2)}
.rop-fab-logo-img{display:block;width:100%;height:100%;object-fit:cover}
.rop-fab-online{position:absolute;right:3px;top:4px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#24bd62;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.rop-chat-backdrop{
  position:fixed;left:0;right:0;top:0;bottom:0;z-index:1000009;
  padding:0;padding-bottom:env(safe-area-inset-bottom, 0px);
  background:rgba(18,10,24,.6);
  visibility:hidden;opacity:0;pointer-events:none;
  touch-action:none;overscroll-behavior:none;
}
.rop-chat-backdrop.is-open{visibility:visible;opacity:1;pointer-events:auto}
html.rop-chat-open,body.rop-chat-open{overscroll-behavior:none!important}
.rop-chat-panel{
  position:fixed;right:22px;bottom:16px;z-index:999997;
  display:none;flex-direction:column;overflow:hidden;
  overscroll-behavior:contain;touch-action:pan-y;
  width:410px;max-width:calc(100vw - 30px);
  height:min(760px,calc(100vh - var(--rop-header-bottom, 78px) - 28px));
  max-height:calc(100vh - var(--rop-header-bottom, 78px) - 28px);
  height:min(760px,calc(100dvh - var(--rop-header-bottom, 78px) - 28px - env(safe-area-inset-bottom, 0px)));
  max-height:calc(100dvh - var(--rop-header-bottom, 78px) - 28px - env(safe-area-inset-bottom, 0px));
  background:var(--rop-paper);border:1px solid rgba(113,46,113,.17);border-radius:25px;
  box-shadow:var(--rop-shadow);color:var(--rop-ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  transform-origin:bottom right;
}
.rop-chat-panel.open{display:flex}
.rop-chat-panel.is-kb-open{z-index:1000010}
.rop-chat-head{position:relative;flex:0 0 auto;padding:13px 15px 11px;color:#fff;background:linear-gradient(128deg,var(--rop-plum-dark),#55215f 56%,var(--rop-plum));isolation:isolate;touch-action:none;overscroll-behavior:contain}
.rop-chat-head:before{content:"";position:absolute;z-index:-1;right:-27px;top:-77px;width:194px;height:194px;border:1px solid rgba(244,233,200,.23);border-radius:50%;box-shadow:0 0 0 12px rgba(244,233,200,.035),0 0 0 27px rgba(244,233,200,.025)}
.rop-chat-head:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--rop-gold),#fff8e8,var(--rop-gold),transparent)}
.rop-head-top{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-height:49px}
.rop-chat-avatar{position:relative;flex:0 0 49px;width:49px;height:49px;overflow:visible;border:2px solid rgba(255,255,255,.84);border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.22)}
.rop-chat-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;border-radius:50%}
.rop-chat-presence{position:absolute;right:-1px;bottom:0;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#27c363}
.rop-chat-title{flex:1;min-width:0}
.rop-chat-title b{display:block;font-size:15px;line-height:1.22;letter-spacing:.1px}
.rop-chat-title span{display:block;margin-top:4px;font-size:11.5px;line-height:1.2;opacity:.85}
.rop-brand-logo{flex:0 0 38px;width:38px;height:38px;object-fit:cover;border:2px solid rgba(255,255,255,.9);border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.2)}
.rop-chat-close{flex:0 0 30px;width:30px;height:30px;margin-left:1px;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .16s,transform .16s}
.rop-chat-close:hover{background:rgba(255,255,255,.24);transform:rotate(90deg)}
.rop-head-language{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}
.rop-language-label{margin-right:auto;font-size:10.5px;letter-spacing:.3px;opacity:.8}
.rop-lang{display:flex;gap:5px}
.rop-lang button{min-width:36px;padding:5px 8px;border:1px solid rgba(255,255,255,.36);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;font-size:10px;font-weight:750;letter-spacing:.35px;cursor:pointer;transition:background .15s,color .15s,transform .15s}
.rop-lang button:hover{transform:translateY(-1px);background:rgba(255,255,255,.2)}
.rop-lang button.on{border-color:#fff;background:#fff;color:var(--rop-plum-dark);box-shadow:0 1px 5px rgba(0,0,0,.14)}
.rop-chat-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:15px 14px;background:radial-gradient(ellipse at 94% 0%,rgba(210,189,135,.13),transparent 36%),var(--rop-wash);display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#cec2d2 transparent}
.rop-msg{max-width:88%;box-sizing:border-box;padding:10px 13px;border-radius:16px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;animation:none}
.rop-msg.bot{align-self:flex-start;background:#fff;color:var(--rop-ink);border:1px solid rgba(113,46,113,.08);border-bottom-left-radius:5px;box-shadow:0 2px 8px rgba(48,29,55,.07)}
.rop-msg.user{align-self:flex-end;background:linear-gradient(135deg,#793a7c,var(--rop-plum));color:#fff;border-bottom-right-radius:5px;box-shadow:0 3px 10px rgba(86,39,92,.19)}
.rop-msg a{color:#642466;font-weight:650;text-decoration-thickness:1px;text-underline-offset:2px}
.rop-msg.user a{color:#fff1bf}
.rop-msg.rop-chat-notice{align-self:center;max-width:96%;padding:7px 10px;background:#fbf6e8;border:1px solid #e9dbb8;border-radius:12px;color:#5e4b67;font-size:11.3px;text-align:center}
.rop-typing{font-size:12.3px!important;color:var(--rop-muted)!important;font-style:italic}
.rop-quick-wrap{flex:0 0 auto;padding:8px 11px 9px;background:#fff;border-top:1px solid var(--rop-line);touch-action:none;overscroll-behavior:contain}
.rop-chat-panel.has-messages .rop-quick-wrap{display:none}
.rop-quick-label{margin:0 2px 7px;color:var(--rop-muted);font-size:10.5px;font-weight:700;letter-spacing:.2px}
.rop-quick{display:flex;gap:6px;flex-wrap:wrap}
.rop-quick button{max-width:100%;padding:6px 10px;border:1px solid #ded1e2;border-radius:16px;background:#fff;color:var(--rop-plum-dark);font-size:11.1px;line-height:1.25;font-weight:650;cursor:pointer;transition:all .15s}
.rop-quick button:hover:not(:disabled){transform:translateY(-1px);background:var(--rop-plum);border-color:var(--rop-plum);color:#fff}
.rop-quick button:disabled{opacity:.56;cursor:wait}
.rop-chat-foot{flex:0 0 auto;display:flex;gap:7px;align-items:flex-end;padding:8px 10px;background:#fff;border-top:1px solid var(--rop-line);touch-action:pan-y;overscroll-behavior:contain}
.rop-chat-foot textarea{flex:1;min-width:0;min-height:46px;max-height:156px;box-sizing:border-box;resize:none;overflow-x:hidden;overflow-y:hidden;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #ded8e2;border-radius:22px;padding:11px 14px;background:#fff;color:var(--rop-ink);font:inherit;font-size:13px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;transition:border .18s,box-shadow .18s;scrollbar-width:thin;scrollbar-color:#cec2d2 transparent}
.rop-chat-foot textarea:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rop-chat-foot textarea::placeholder{color:#918895}
.rop-chat-foot textarea:focus{border-color:#95619a;box-shadow:0 0 0 3px rgba(113,46,113,.1)}
.rop-chat-foot textarea:disabled{background:#f7f5f8;color:#8f8792}
.rop-chat-foot button{flex:0 0 40px;width:40px;height:40px;padding:0;border-radius:50%;cursor:pointer;touch-action:manipulation;display:flex;align-items:center;justify-content:center;transition:transform .16s,background .16s,opacity .16s}
.rop-chat-foot button:disabled{opacity:.5;cursor:wait}
.rop-chat-foot .rop-voice-btn{background:#f5f1f7;color:var(--rop-plum);border:1px solid #e4d9e8}
.rop-chat-foot .rop-voice-btn:hover:not(:disabled){transform:translateY(-2px);background:#eee5f1}
.rop-chat-foot .rop-voice-btn svg{width:20px;height:20px;fill:currentColor}
.rop-chat-foot .rop-voice-btn.is-listening{background:#c52b56;color:#fff;border-color:#c52b56}
.rop-chat-foot .rop-voice-btn[hidden]{display:none}
.rop-chat-foot .rop-send-btn{border:0;background:linear-gradient(135deg,#7e4281,var(--rop-plum-dark));color:#fff;box-shadow:0 2px 7px rgba(70,27,76,.25)}
.rop-chat-foot .rop-send-btn:hover:not(:disabled){transform:translateY(-2px);background:var(--rop-plum-dark)}
.rop-chat-foot .rop-send-btn svg{width:19px;height:19px;fill:currentColor;transform:translateX(-1px)}
.rop-contact-wrap{flex:0 0 auto;padding:7px 10px 10px;background:#fff;border-top:1px solid var(--rop-line);touch-action:none;overscroll-behavior:contain}
.rop-contact-label{margin:0 1px 6px;color:var(--rop-muted);font-size:10px;font-weight:650;line-height:1.25}
.rop-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.rop-wa{display:flex;min-width:0;align-items:center;gap:7px;padding:7px 8px;border:1px solid #e3e7e4;border-radius:13px;background:#fff;color:#17432b;text-decoration:none;transition:transform .15s,box-shadow .15s,border-color .15s}
.rop-wa:hover{transform:translateY(-1px);border-color:#b7dfc4;box-shadow:0 4px 12px rgba(20,94,49,.1)}
.rop-wa-icon{flex:0 0 28px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--rop-wa);color:#fff}
.rop-wa-icon svg{display:block;width:17px;height:17px;fill:currentColor}
.rop-wa-copy{display:block;min-width:0;line-height:1.18}
.rop-wa-copy b{display:block;color:#17432b;font-size:10.7px;font-weight:750}
.rop-wa-copy small{display:block;margin-top:3px;color:#59695e;font-size:9.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(hover:none) and (pointer:coarse){
  .rop-chat-foot textarea{font-size:16px}
}
@media(max-width:520px){
  .rop-chat-btn{right:16px;bottom:16px;width:66px;height:66px}
  .rop-chat-panel{right:8px;top:calc(var(--rop-header-bottom, 70px) + 8px);bottom:auto;width:calc(100vw - 16px);max-width:430px;height:min(700px,calc(100vh - var(--rop-header-bottom, 70px) - 20px));max-height:calc(100vh - var(--rop-header-bottom, 70px) - 20px);height:min(700px,calc(100dvh - var(--rop-header-bottom, 70px) - 16px - env(safe-area-inset-bottom, 0px)));max-height:calc(100dvh - var(--rop-header-bottom, 70px) - 16px - env(safe-area-inset-bottom, 0px));border-radius:22px;border:1px solid rgba(113,46,113,.17)}
  .rop-chat-head{padding:12px 13px 10px}
  .rop-chat-body{padding:13px 12px}
  .rop-chat-foot textarea{font-size:16px}
  .rop-msg{font-size:13.2px}
  .rop-quick-wrap{padding:7px 9px 8px}
  .rop-contact-wrap{padding:7px 8px max(9px,env(safe-area-inset-bottom))}
  .rop-wa{gap:5px;padding:6px 6px}
  .rop-wa-copy small{font-size:8.8px}
  .rop-chat-panel.is-kb-open{right:8px;left:8px;width:auto;max-width:none;z-index:1000010;border-radius:18px;box-shadow:0 14px 36px rgba(20,12,26,.34)}
  .rop-chat-panel.is-kb-open .rop-chat-head{padding:9px 12px 8px}
  .rop-chat-panel.is-kb-open .rop-head-top{min-height:40px}
  .rop-chat-panel.is-kb-open .rop-chat-avatar{flex-basis:40px;width:40px;height:40px}
  .rop-chat-panel.is-kb-open .rop-brand-logo{flex-basis:32px;width:32px;height:32px}
  .rop-chat-panel.is-kb-open .rop-head-language{margin-top:6px}
  .rop-chat-panel.is-kb-open .rop-contact-wrap{display:none}
}
@media(hover:none) and (pointer:coarse) and (max-width:960px) and (max-height:540px){
  .rop-chat-panel.is-kb-open{right:8px;left:8px;width:auto;max-width:none;z-index:1000010;border-radius:16px;box-shadow:0 14px 36px rgba(20,12,26,.34)}
  .rop-chat-panel.is-kb-open .rop-chat-head{padding:8px 12px 7px}
  .rop-chat-panel.is-kb-open .rop-head-top{min-height:36px}
  .rop-chat-panel.is-kb-open .rop-chat-avatar{flex-basis:36px;width:36px;height:36px}
  .rop-chat-panel.is-kb-open .rop-brand-logo{flex-basis:28px;width:28px;height:28px}
  .rop-chat-panel.is-kb-open .rop-head-language{margin-top:4px}
  .rop-chat-panel.is-kb-open .rop-contact-wrap{display:none}
}
@media(max-width:350px){
  .rop-head-top{gap:7px}
  .rop-chat-avatar{flex-basis:43px;width:43px;height:43px}
  .rop-chat-title b{font-size:13px}
  .rop-chat-title span{font-size:10px}
  .rop-brand-logo{flex-basis:32px;width:32px;height:32px}
  .rop-chat-close{flex-basis:27px;width:27px;height:27px}
  .rop-contact-row{gap:5px}
  .rop-wa{gap:4px;padding:5px}
  .rop-wa-icon{flex-basis:24px;width:24px;height:24px}
  .rop-wa-copy b{font-size:9.8px}
  .rop-wa-copy small{font-size:8px}
}

/* Keep the interface completely still: no pulsing, sliding, rotation, or hover movement. */
.rop-chat-backdrop,
.rop-chat-btn,
.rop-chat-btn *,
.rop-chat-panel,
.rop-chat-panel *,
.rop-chat-panel::before,
.rop-chat-panel::after,
.rop-chat-panel *::before,
.rop-chat-panel *::after{
  animation:none!important;
  transition:none!important;
  transform:none!important;
  scroll-behavior:auto!important;
}
