.rs-md-chat[hidden] { display: none !important; }
.rs-md-chat { position: fixed; z-index: 9999; inset: 0; font-family: inherit; }
.rs-md-chat-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,10,9,.72); cursor: default; backdrop-filter: blur(5px); }
.rs-md-chat-panel { position: absolute; top: 0; right: 0; display: flex; width: min(620px, 100%); height: 100%; height: 100dvh; flex-direction: column; overflow: hidden; background: #f7f4ee; box-shadow: -24px 0 70px rgba(0,0,0,.2); animation: rs-md-panel-in .32s cubic-bezier(.2,.8,.2,1); }
.rs-md-chat-open { overflow: hidden; }
.rs-md-chat-head { display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid rgba(20,22,21,.14); background: #151716; color: #fff; padding: 22px clamp(20px,5vw,40px); }
.rs-md-chat-head span, .rs-md-kicker { color: #e10d18; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.rs-md-chat-head h2 { margin-top: 5px; color: #fff; font-size: clamp(20px,3vw,28px); font-weight: 500; letter-spacing: -.025em; }
.rs-md-chat-head button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-size: 27px; font-weight: 200; cursor: pointer; place-items: center; }
.rs-md-chat-body { min-height: 0; flex: 1; overflow-y: auto; padding: clamp(22px,5vw,40px); }
.rs-md-chat-body.is-live { display: flex; overflow: hidden; flex-direction: column; }
.rs-md-identity { display: flex; align-items: center; gap: 14px; }
.rs-md-identity img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; filter: grayscale(.15); }
.rs-md-identity strong, .rs-md-identity span, .rs-md-identity p { display: block; }
.rs-md-identity strong { color: #161817; font-size: 14px; }
.rs-md-identity span { margin-top: 3px; color: #686b68; font-size: 11px; }
.rs-md-identity p { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #686b68; font-size: 10px; }
.rs-md-identity p i { width: 7px; height: 7px; border-radius: 50%; background: #8a8e89; }
.rs-md-identity p i.is-available { background: #2b9c57; box-shadow: 0 0 0 4px rgba(43,156,87,.1); }
.rs-md-identity p i.is-busy { background: #d18a16; }
.rs-md-chat-intro { margin: 24px 0; border-left: 2px solid #d90612; padding-left: 16px; color: #515451; font-size: 13px; line-height: 1.65; }
.rs-md-chat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.rs-md-chat-grid label { display: grid; gap: 7px; }
.rs-md-chat-grid label > span { color: #313330; font-size: 10px; font-weight: 750; }
.rs-md-chat-grid .is-wide { grid-column: 1 / -1; }
.rs-md-chat-grid input, .rs-md-chat-grid select, .rs-md-chat-grid textarea { width: 100%; min-height: 45px; border: 1px solid rgba(20,22,21,.18); border-radius: 0; background: #fff; color: #161817; padding: 11px 12px; font: inherit; font-size: 13px; outline: 0; }
.rs-md-chat-grid textarea { min-height: 112px; resize: vertical; }
.rs-md-chat-grid input:focus, .rs-md-chat-grid select:focus, .rs-md-chat-grid textarea:focus { border-color: #d90612; box-shadow: 0 0 0 3px rgba(217,6,18,.09); }
.rs-md-chat-grid [aria-invalid="true"] { border-color: #d90612; }
.rs-md-honeypot { position: absolute !important; left: -9999px !important; }
.rs-md-chat-privacy { margin-top: 16px; color: #747772; font-size: 9px; line-height: 1.55; }
.rs-md-chat-submit { display: flex; align-items: center; gap: 14px; margin-top: 17px; }
.rs-md-chat-submit button, .rs-md-composer button, .rs-md-start-another, .rs-md-chat-ended button { min-height: 47px; border: 1px solid #151716; background: #151716; color: #fff; padding: 11px 17px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.rs-md-chat-submit button:hover, .rs-md-composer button:hover, .rs-md-start-another:hover, .rs-md-chat-ended button:hover { border-color: #d90612; background: #d90612; transform: translateY(-1px); }
.rs-md-chat-submit button:disabled, .rs-md-composer button:disabled { opacity: .55; cursor: wait; }
.rs-md-chat-submit p, .rs-md-composer > p { color: #696c68; font-size: 10px; }
.rs-md-waiting { display: grid; min-height: 100%; align-content: center; justify-items: start; }
.rs-md-waiting-mark { position: relative; display: grid; width: 74px; height: 74px; margin-bottom: 25px; border: 1px solid rgba(20,22,21,.2); place-items: center; }
.rs-md-waiting-mark i { width: 15px; height: 15px; border-radius: 50%; background: #d90612; box-shadow: 0 0 0 8px rgba(217,6,18,.09); animation: rs-md-pulse 2s ease-in-out infinite; }
.rs-md-waiting-mark.is-declined { color: #d90612; font-size: 29px; }
.rs-md-waiting h3 { max-width: 460px; margin-top: 12px; color: #151716; font-size: clamp(29px,5vw,43px); font-weight: 450; letter-spacing: -.045em; line-height: 1.05; }
.rs-md-waiting > p:not(.rs-md-kicker):not(.rs-md-wait-note) { max-width: 475px; margin-top: 17px; color: #666965; font-size: 13px; line-height: 1.7; }
.rs-md-waiting dl { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 30px; border-top: 1px solid rgba(20,22,21,.15); border-left: 1px solid rgba(20,22,21,.15); }
.rs-md-waiting dl div { min-height: 78px; border-right: 1px solid rgba(20,22,21,.15); border-bottom: 1px solid rgba(20,22,21,.15); padding: 14px; }
.rs-md-waiting dt, .rs-md-request-status span { color: #777a75; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.rs-md-waiting dd { margin-top: 7px; color: #161817; font-size: 12px; font-weight: 650; }
.rs-md-request-status { display: flex; width: 100%; align-items: center; gap: 13px; margin-top: 20px; background: #151716; color: #fff; padding: 15px 17px; }
.rs-md-request-status > i { width: 8px; height: 8px; border-radius: 50%; background: #d90612; }
.rs-md-request-status strong { display: block; margin-top: 3px; font-size: 12px; }
.rs-md-wait-note { margin-top: 15px; color: #7c7e7a; font-size: 9px; }
.rs-md-live-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(20,22,21,.15); padding-bottom: 20px; }
.rs-md-live-head > span { color: #777a75; font-size: 9px; font-weight: 800; }
.rs-md-messages { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding: 22px 3px; }
.rs-md-message { width: fit-content; max-width: min(82%,430px); height: auto; flex: 0 0 auto; align-self: flex-start; border: 1px solid rgba(20,22,21,.15); background: #fff; padding: 13px 15px; }
.rs-md-message.is-visitor { align-self: flex-end; border-color: #151716; background: #151716; color: #fff; }
.rs-md-message > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.rs-md-message strong, .rs-md-message time, .rs-md-message small { font-size: 9px; }
.rs-md-message time { flex: 0 0 auto; opacity: .55; white-space: nowrap; }
.rs-md-message p { margin-top: 8px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; word-break: break-word; }
.rs-md-message small { display: block; margin-top: 7px; text-align: right; opacity: .55; }
.rs-md-composer { flex: 0 0 auto; border-top: 1px solid rgba(20,22,21,.15); padding-top: 16px; }
.rs-md-composer textarea { display: block; width: 100%; min-height: 76px; max-height: 150px; resize: vertical; border: 1px solid rgba(20,22,21,.18); padding: 12px; font: inherit; font-size: 13px; }
.rs-md-composer button { margin-top: 9px; }
.rs-md-chat-ended { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 17px; margin-top: 5px; border: 1px solid rgba(20,22,21,.14); border-radius: 14px; background: linear-gradient(145deg,#fff,#f1eee8); box-shadow: 0 15px 34px rgba(20,22,21,.07); padding: 21px; }
.rs-md-ended-mark { display: grid; width: 50px; height: 50px; border-radius: 50%; background: rgba(217,6,18,.08); color: #d90612; font-size: 20px; font-weight: 800; place-items: center; }
.rs-md-ended-copy h3 { margin-top: 7px; color: #151716; font-size: clamp(20px,3.2vw,27px); font-weight: 550; letter-spacing: -.035em; }
.rs-md-ended-copy > p:not(.rs-md-kicker) { max-width: 430px; margin-top: 9px; color: #686b68; font-size: 12px; line-height: 1.6; }
.rs-md-ended-copy dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 17px 0 0; border-top: 1px solid rgba(20,22,21,.1); padding-top: 14px; }
.rs-md-ended-copy dt { color: #858883; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rs-md-ended-copy dd { margin: 4px 0 0; color: #303330; font-size: 10px; font-weight: 700; }
.rs-md-chat-ended button { width: 100%; margin-top: 18px; border-color: #d90612; background: #d90612; text-align: left; }
.rs-md-chat-ended button span, .rs-md-start-another span { float: right; margin-left: 20px; }
.rs-md-start-another { margin-top: 20px; }
@keyframes rs-md-panel-in { from { transform: translateX(45px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes rs-md-pulse { 50% { box-shadow: 0 0 0 13px rgba(217,6,18,.03); } }
@media (max-width: 580px) { .rs-md-chat-head { min-height: 84px; padding: 15px 16px; } .rs-md-chat-head h2 { font-size: 18px; } .rs-md-chat-body { padding: 18px 16px; } .rs-md-chat-body.is-live { padding-block: 14px; } .rs-md-chat-grid { grid-template-columns: 1fr; } .rs-md-chat-grid .is-wide { grid-column: auto; } .rs-md-waiting dl { grid-template-columns: 1fr; } .rs-md-live-head { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 12px; } .rs-md-live-head .rs-md-identity { gap: 10px; } .rs-md-live-head .rs-md-identity img { width: 50px; height: 50px; } .rs-md-live-head .rs-md-identity strong { font-size: 12px; } .rs-md-live-head .rs-md-identity p { margin-top: 4px; } .rs-md-messages { padding-block: 14px; } .rs-md-message { max-width: 87%; padding: 11px 13px; } .rs-md-composer { padding-top: 12px; } .rs-md-composer textarea { min-height: 64px; max-height: 120px; } .rs-md-composer button { width: 100%; margin-top: 8px; } .rs-md-chat-ended { grid-template-columns: 1fr; padding: 18px; } .rs-md-ended-mark { width: 44px; height: 44px; } .rs-md-chat-submit { align-items: stretch; flex-direction: column; } .rs-md-chat-submit button { width: 100%; } }
@media (max-height: 600px) { .rs-md-chat-head { min-height: 72px; padding-block: 11px; } .rs-md-chat-body.is-live { padding-block: 10px; } .rs-md-live-head { padding-bottom: 9px; } .rs-md-live-head .rs-md-identity img { width: 42px; height: 42px; } .rs-md-live-head .rs-md-identity span { display: none; } .rs-md-messages { padding-block: 10px; } .rs-md-composer { padding-top: 9px; } .rs-md-composer textarea { min-height: 54px; } }
@media (prefers-reduced-motion: reduce) { .rs-md-chat-panel, .rs-md-waiting-mark i { animation: none; } }
.rs-team-card { position: relative; }
.rs-md-card-chat { position: absolute; z-index: 4; right: 18px; bottom: 18px; min-height: 40px; border: 1px solid rgba(255,255,255,.5); background: rgba(18,20,19,.88); color: #fff; padding: 9px 13px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; backdrop-filter: blur(8px); }
.rs-md-card-chat:hover, .rs-md-card-chat:focus-visible { border-color: #d90612; background: #d90612; }
