/* remarketer.ca sales chat panel (site/sales-chat.js). Brand: primary #4D39E9, dark #1B2032, accent #F8B526. */
.rmsc { position: fixed; right: 24px; bottom: 24px; z-index: 1060; font-family: "Montserrat", Inter, Helvetica, sans-serif; }
.rm-site #kt_scrolltop { bottom: 100px; right: 32px; } /* keep Metronic's scroll-to-top above the chat button */

.rmsc-launch { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #4D39E9; color: #fff; box-shadow: 0 10px 30px rgba(77,57,233,.45); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: transform .2s ease, background .2s ease; margin-left: auto; }
.rmsc-launch:hover { transform: scale(1.06); background: #3a27d1; }
.rmsc-launch:focus-visible { outline: 3px solid #F8B526; outline-offset: 3px; }
.rmsc-launch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(77,57,233,.5); animation: rmsc-pulse 2.6s infinite; }
.rmsc-open .rmsc-launch::before { animation: none; }
.rmsc-icon-img { width: 30px; height: 30px; }
.rmsc-icon-svg { width: 28px; height: 28px; }
.rmsc-launch-x { display: none; font-size: 30px; line-height: 1; }
.rmsc-open .rmsc-launch > .rmsc-icon-img, .rmsc-open .rmsc-launch > .rmsc-icon-svg { display: none; }
.rmsc-open .rmsc-launch-x { display: block; }
.rmsc-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #F8B526; color: #1B2032; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.rmsc-badge[hidden] { display: none; }
@keyframes rmsc-pulse { 0% { box-shadow: 0 0 0 0 rgba(77,57,233,.5); } 70% { box-shadow: 0 0 0 16px rgba(77,57,233,0); } 100% { box-shadow: 0 0 0 0 rgba(77,57,233,0); } }

.rmsc-panel { position: absolute; right: 0; bottom: 78px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(27,32,50,.28); display: flex; flex-direction: column; overflow: hidden; animation: rmsc-in .25s ease; }
.rmsc-panel[hidden] { display: none; }
@keyframes rmsc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.rmsc-head { background: linear-gradient(135deg, #1B2032 0%, #2b2470 100%); color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 10px; }
.rmsc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #4D39E9; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.rmsc-avatar .rmsc-icon-img { width: 22px; height: 22px; }
.rmsc-avatar .rmsc-icon-svg { width: 20px; height: 20px; color: #fff; }
.rmsc-title { flex: 1; min-width: 0; line-height: 1.25; }
.rmsc-title strong { display: block; font-size: 15px; font-weight: 700; }
.rmsc-title span { font-size: 12px; opacity: .8; }
.rmsc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: 1px; }
.rmsc-end, .rmsc-close { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 8px; height: 30px; cursor: pointer; font-size: 12px; font-weight: 600; padding: 0 10px; }
.rmsc-close { font-size: 18px; width: 30px; padding: 0; }
.rmsc-end:hover, .rmsc-close:hover { background: rgba(255,255,255,.22); }

.rmsc-body { flex: 1; overflow-y: auto; padding: 16px; background: #F7F7FB; display: flex; flex-direction: column; gap: 10px; }
.rmsc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.rmsc-msg p { margin: 0 0 .5em; } .rmsc-msg p:last-child { margin-bottom: 0; }
.rmsc-msg ul { margin: .25em 0 .5em; padding-left: 1.2em; } .rmsc-msg li { margin-bottom: .2em; }
.rmsc-bot { background: #fff; color: #272D3A; border: 1px solid #ecebf7; border-bottom-left-radius: 4px; align-self: flex-start; }
.rmsc-bot a { color: #4D39E9; font-weight: 600; text-decoration: underline; }
.rmsc-me { background: #4D39E9; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.rmsc-note { align-self: center; font-size: 12px; color: #6b7280; text-align: center; padding: 4px 10px; }
.rmsc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.rmsc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a5a0d8; animation: rmsc-blink 1.2s infinite ease-in-out; }
.rmsc-typing span:nth-child(2) { animation-delay: .15s; } .rmsc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rmsc-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.rmsc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #F7F7FB; }
.rmsc-chips[hidden] { display: none; }
.rmsc-chip { border: 1px solid #cfc8fb; background: #fff; color: #4D39E9; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rmsc-chip:hover { background: #EEEBFD; }

.rmsc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef0f4; background: #fff; }
.rmsc-input { flex: 1; resize: none; border: 1px solid #e3e5ec; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit; line-height: 1.4; max-height: 120px; outline: none; }
.rmsc-input:focus { border-color: #4D39E9; box-shadow: 0 0 0 3px rgba(77,57,233,.12); }
.rmsc-send { width: 42px; height: 42px; border-radius: 12px; border: 0; background: #4D39E9; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 42px; }
.rmsc-send:hover { background: #3a27d1; }
.rmsc-send svg { width: 20px; height: 20px; }
.rmsc-foot { font-size: 10.5px; color: #9ca3af; text-align: center; padding: 0 12px 8px; background: #fff; }
.rmsc-foot a { color: #9ca3af; text-decoration: underline; }

.rmsc-teaser { position: absolute; right: 0; bottom: 78px; width: 280px; max-width: calc(100vw - 32px); background: #fff; color: #272D3A; border-radius: 16px 16px 4px 16px; box-shadow: 0 16px 40px rgba(27,32,50,.22); padding: 14px 34px 14px 16px; font-size: 14px; line-height: 1.5; cursor: pointer; animation: rmsc-in .25s ease; }
.rmsc-teaser[hidden] { display: none; }
.rmsc-teaser-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; color: #9ca3af; cursor: pointer; line-height: 1; }

@media (max-width: 575.98px) {
    .rmsc { right: 16px; bottom: 16px; }
    .rmsc-launch { width: 56px; height: 56px; }
    .rmsc-open .rmsc-launch { display: none; }
    .rmsc-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; bottom: 0; }
    .rmsc-teaser { bottom: 70px; }
    .rm-site #kt_scrolltop { bottom: 86px; right: 22px; }
}
@media (prefers-reduced-motion: reduce) { .rmsc-launch::before, .rmsc-panel, .rmsc-teaser { animation: none; } }
