:root{--rgp-ink:#173342;--rgp-muted:#71808a;--rgp-gold:#b9975b;--rgp-bg:#f5f7f8}.rgp-chat{position:fixed;right:24px;bottom:24px;z-index:999990;font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--rgp-ink)}.rgp-launch{border:0;border-radius:999px;background:var(--rgp-accent,#b9975b);color:#fff;box-shadow:0 12px 35px #142d3b35;padding:12px 19px;display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}.rgp-launch-icon{width:30px;height:30px;border-radius:50%;background:#ffffff28;display:grid;place-items:center;font-size:19px}.rgp-window{position:absolute;right:0;bottom:68px;width:min(370px,calc(100vw - 28px));height:540px;max-height:calc(100dvh - 115px);background:#fff;border-radius:22px;box-shadow:0 20px 70px #102b3a35;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e8ecef}.rgp-window[hidden]{display:none}.rgp-head{background:#173342;color:white;padding:17px;display:flex;align-items:center;gap:11px}.rgp-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#b9975b;color:#fff;font-weight:800}.rgp-head div:nth-child(2){display:grid;gap:3px;flex:1}.rgp-head small{color:#c6d2d8;font-size:11px}.rgp-close{background:transparent;border:0;color:white;font-size:27px;cursor:pointer}.rgp-messages{flex:1;overflow:auto;padding:17px;background:#f7f9fa;display:flex;flex-direction:column;gap:10px}.rgp-msg{max-width:86%;padding:11px 13px;border-radius:16px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.rgp-bot{align-self:flex-start;background:#fff;border:1px solid #e9edef;border-bottom-left-radius:5px}.rgp-user{align-self:flex-end;background:#173342;color:#fff;border-bottom-right-radius:5px}.rgp-start,.rgp-compose{padding:12px;display:grid;gap:8px;border-top:1px solid #edf0f2;background:#fff}.rgp-start input,.rgp-compose input{width:100%;box-sizing:border-box;border:1px solid #dfe5e8;border-radius:12px;padding:12px;font:inherit;font-size:13px;outline:none}.rgp-start button,.rgp-compose button{border:0;border-radius:999px;background:var(--rgp-accent,#b9975b);color:#fff;padding:12px 16px;font-weight:700;cursor:pointer}.rgp-compose{grid-template-columns:1fr 45px}.rgp-compose button{padding:0;font-size:19px}.rgp-window footer{text-align:center;color:#9aa5ab;font-size:10px;padding:7px;background:#fff}.rgp-account{max-width:1050px;margin:30px auto;padding:10px;font-family:Inter,system-ui,sans-serif;color:var(--rgp-ink)}.rgp-account-card{background:#fff;border:1px solid #e9edef;border-radius:24px;padding:clamp(20px,4vw,42px);box-shadow:0 12px 35px #1733420d}.rgp-account-brand{font-weight:900;letter-spacing:.12em;color:#173342}.rgp-account-brand span{display:block;font-size:10px;color:#b9975b;letter-spacing:.2em}.rgp-account h2{font-size:30px;margin:25px 0 8px}.rgp-login-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:35px;margin-top:25px}.rgp-bookings{display:grid;gap:12px;margin:25px 0}.rgp-bookings article{display:flex;justify-content:space-between;gap:15px;padding:18px;border:1px solid #e8edef;border-radius:16px}.rgp-bookings article div{display:grid;gap:7px}.rgp-bookings span{font-size:13px;color:var(--rgp-muted)}.rgp-admin .form-table th{width:190px}.rgp-inbox-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:15px;max-width:1200px;min-height:600px}.rgp-inbox-layout>aside,.rgp-thread{background:#fff;border:1px solid #dfe5e8;border-radius:16px;overflow:hidden}.rgp-thread-item{display:grid;text-align:left;width:100%;padding:14px;border:0;border-bottom:1px solid #edf0f2;background:#fff;cursor:pointer;gap:4px}.rgp-thread-item.active{background:#f2f6f7}.rgp-thread-item small,.rgp-thread-item span{color:#71808a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rgp-thread-item span{font-size:12px}.rgp-thread{display:flex;flex-direction:column}.rgp-thread>header{padding:18px;border-bottom:1px solid #edf0f2;font-weight:700}.rgp-thread #rgp-thread-messages{padding:18px;flex:1;max-height:500px;overflow:auto}.rgp-admin-message{margin:0 0 14px;padding:12px 14px;background:#f4f6f7;border-radius:13px;max-width:85%}.rgp-admin-message.is-agent,.rgp-admin-message.is-ai{margin-left:auto;background:#e8f2ed}.rgp-admin-message small{color:#73818a;font-size:10px}.rgp-admin-message p{margin:5px 0 0;white-space:pre-wrap}.rgp-thread form{padding:14px;border-top:1px solid #edf0f2;display:flex;gap:10px}.rgp-thread textarea{flex:1;min-height:65px;border:1px solid #dfe5e8;border-radius:12px;padding:12px}@media(max-width:650px){.rgp-chat{right:14px;bottom:14px}.rgp-login-columns{grid-template-columns:1fr}.rgp-bookings article{flex-direction:column}.rgp-inbox-layout{grid-template-columns:1fr}.rgp-inbox-layout>aside{max-height:250px;overflow:auto}}

.rgp-register{display:grid;gap:12px}.rgp-register label{display:grid;gap:6px;font-weight:600}.rgp-register input,.rgp-bookings textarea{width:100%;border:1px solid #d8dee4;border-radius:12px;padding:12px}.rgp-register button,.rgp-bookings button{border:0;border-radius:999px;padding:12px 20px;background:#102b3a;color:#fff;font-weight:700;cursor:pointer}.rgp-account-nav{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.rgp-account-nav a{border-radius:999px;padding:10px 16px;background:#f1f4f5;text-decoration:none}.rgp-notice{padding:12px;border-radius:12px;margin:12px 0}.rgp-error{background:#fff0f0;color:#8b1e1e}.rgp-bookings article{display:grid;gap:14px}.rgp-bookings article form{margin-top:10px}.rgp-bookings textarea{display:block;margin:8px 0;min-height:64px}
.rgp-chat-actions{padding:0 12px 10px;background:#fff}.rgp-end-chat{width:100%;border:1px solid #e3e8eb;border-radius:999px;background:#fff;color:#6b3434;padding:10px 14px;font:600 12px inherit;cursor:pointer}.rgp-end-chat:hover{background:#fff5f5;border-color:#e5bcbc}.rgp-chat-ended{padding:13px 15px;background:#f4f6f7;color:#63717a;text-align:center;font-size:12px;line-height:1.5}.rgp-admin-chat-actions{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid #edf0f2}.rgp-admin-chat-actions span{font-size:12px;color:#71808a}

/* RIVAS Guest Portal 1.0.4 — refined floating chat */
.rgp-chat{right:24px;bottom:24px;color:#173342}
.rgp-launch{background:linear-gradient(135deg,#173342 0%,#254b5b 100%);border:1px solid #c5a66d;padding:9px 17px 9px 10px;gap:11px;box-shadow:0 12px 32px #102b3a30;transition:transform .2s,box-shadow .2s}
.rgp-launch:hover{transform:translateY(-2px);box-shadow:0 16px 38px #102b3a40}
.rgp-launch-icon{width:37px;height:37px;background:#b9975b;color:#fff;font-size:20px}
.rgp-launch-label{font-size:13px;letter-spacing:.01em}
.rgp-window{width:min(390px,calc(100vw - 28px));height:min(610px,calc(100dvh - 105px));bottom:76px;border:1px solid #e7e0d3;border-radius:25px;background:#fbfaf7;box-shadow:0 24px 75px #102b3a38;}
.rgp-head{padding:17px 19px;background:linear-gradient(120deg,#102b3a,#1e4050);min-height:72px}
.rgp-avatar{width:43px;height:43px;background:linear-gradient(145deg,#d6bd8a,#a8874e);color:#173342;border:2px solid #ffffff35;font-family:Georgia,serif;font-size:19px}
.rgp-head-copy{display:grid;gap:5px;flex:1}.rgp-head-copy strong{font-size:14px;letter-spacing:.015em}.rgp-head-copy small{font-size:11px;color:#d4e0e3;display:flex;align-items:center;gap:6px}.rgp-head-copy small i{width:7px;height:7px;border-radius:50%;background:#8ac5a4;display:inline-block}
.rgp-close{width:31px;height:31px;border-radius:50%;background:#ffffff17;font-size:22px;line-height:1}
.rgp-chat-intro{padding:15px 19px 13px;background:#f1eee7;border-bottom:1px solid #e8e1d4;display:grid;gap:5px}.rgp-intro-kicker{font-size:9px;letter-spacing:.16em;font-weight:800;color:#a1844f}.rgp-chat-intro strong{font-family:Georgia,serif;font-size:18px;color:#173342;font-weight:600}.rgp-chat-intro small{font-size:11px;color:#71808a;line-height:1.45}
.rgp-messages{padding:16px 16px 12px;background:#fbfaf7;gap:11px;min-height:100px}.rgp-msg{font-size:13px;line-height:1.55;padding:11px 14px;border-radius:17px;box-shadow:0 2px 8px #17334209}.rgp-bot{background:#fff;border:1px solid #ece8df;border-bottom-left-radius:5px;color:#29414c}.rgp-user{background:#173342;color:#fff;border-bottom-right-radius:5px}
.rgp-start,.rgp-compose{padding:13px 15px 15px;background:#fff;border-top:1px solid #eee9df;gap:9px}.rgp-start label{font-family:Georgia,serif;font-size:15px;font-weight:600;color:#173342;margin-bottom:1px}.rgp-start input,.rgp-compose input{border:1px solid #e4e5e1;background:#fbfbfa;border-radius:13px;padding:12px 13px;font-size:12px;transition:border .2s,box-shadow .2s}.rgp-start input:focus,.rgp-compose input:focus{border-color:#b9975b;box-shadow:0 0 0 3px #b9975b20}.rgp-start button{display:flex;justify-content:center;align-items:center;gap:12px;background:linear-gradient(110deg,#173342,#254b5b);padding:12px 16px;font-size:12px;letter-spacing:.01em}.rgp-start button span{font-size:17px;color:#dfc58f}.rgp-compose{grid-template-columns:minmax(0,1fr) 43px;align-items:center}.rgp-compose button{height:43px;border-radius:14px;background:#b9975b;color:#173342;font-size:18px}.rgp-chat-actions{padding:0 15px 11px;background:#fff}.rgp-end-chat{border-color:#e9e4dc;color:#8b6257;background:#fff;font-size:11px;padding:8px 13px}.rgp-end-chat:hover{background:#fbf5f1;border-color:#d9bdb1}.rgp-chat-ended{padding:13px 15px 16px;background:#fff;color:#71808a;display:grid;gap:10px}.rgp-chat-ended[hidden]{display:none}.rgp-new-chat{border:0;border-radius:999px;padding:11px 14px;background:#173342;color:#fff;font-size:12px;font-weight:700;cursor:pointer}.rgp-window footer{display:flex;justify-content:space-between;padding:8px 15px;background:#f3f0e9;color:#8b887f;font-size:9px;letter-spacing:.07em}.rgp-window footer span:first-child{font-weight:800;color:#8b744d}
@media(max-width:650px){.rgp-chat{right:14px;bottom:14px}.rgp-window{bottom:70px;height:min(590px,calc(100dvh - 95px));border-radius:22px}.rgp-chat-intro{padding:12px 16px}.rgp-messages{padding:13px}.rgp-start,.rgp-compose{padding:11px 13px 13px}}
