.rn-chat, .rn-chat * { box-sizing: border-box; }
.rn-chat { --rn-blue: #1469a8; --rn-deep: #0d4f80; --rn-bg: #f3f7fa; font-family: Arial, sans-serif; position: fixed; right: 22px; bottom: 22px; z-index: 999999; color: #183240; }
.rn-chat__launcher { display: flex; gap: 9px; align-items: center; border: 0; border-radius: 999px; padding: 14px 19px; background: var(--rn-blue); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(13,79,128,.28); cursor: pointer; }
.rn-chat__panel { width: min(390px, calc(100vw - 24px)); height: min(650px, calc(100vh - 32px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 54px rgba(21,54,71,.28); }
.rn-chat__panel:not([hidden]) { display: flex; flex-direction: column; }
.rn-chat__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg, var(--rn-deep), var(--rn-blue)); color: #fff; }
.rn-chat__header strong, .rn-chat__header small { display: block; }
.rn-chat__header small { opacity: .86; margin-top: 3px; }
.rn-chat__close { border: 0; background: transparent; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.rn-chat__messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--rn-bg); }
.rn-chat__message { max-width: 84%; margin: 0 0 9px; padding: 10px 12px; border-radius: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.rn-chat__message--bot, .rn-chat__message--manager, .rn-chat__message--system { background: #fff; border: 1px solid #dce8ef; border-bottom-left-radius: 4px; }
.rn-chat__message--user { margin-left: auto; background: var(--rn-blue); color: #fff; border-bottom-right-radius: 4px; }
.rn-chat__buttons { display: grid; gap: 7px; margin: 0 0 14px; }
.rn-chat__choice { display: block; width: 100%; border: 1px solid #b7d1e1; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--rn-deep); text-align: left; text-decoration: none; font-weight: 600; cursor: pointer; }
.rn-chat__choice:hover { background: #eaf4fa; }
.rn-chat__choice:disabled { opacity: .55; cursor: default; }
.rn-chat__consent { padding: 18px; overflow-y: auto; }
.rn-chat__consent p { margin-top: 0; }
.rn-chat__consent label { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.rn-chat__consent a { display: inline-block; margin: 10px 0; color: var(--rn-blue); }
.rn-chat__consent small { display: block; color: #5d717b; line-height: 1.35; }
.rn-chat__start { width: 100%; margin-top: 16px; border: 0; border-radius: 10px; padding: 12px; background: var(--rn-blue); color: #fff; font-weight: 700; cursor: pointer; }
.rn-chat__start:disabled { opacity: .45; cursor: default; }
.rn-chat__composer { display: flex; gap: 8px; padding: 11px; border-top: 1px solid #dce8ef; background: #fff; }
.rn-chat__composer textarea { flex: 1; resize: none; max-height: 100px; border: 1px solid #cbdde7; border-radius: 10px; padding: 10px; font: inherit; }
.rn-chat__composer button { width: 42px; border: 0; border-radius: 10px; background: var(--rn-blue); color: #fff; cursor: pointer; }
.rn-chat__status { min-height: 18px; padding: 0 12px 6px; color: #6c7b83; background: #fff; font-size: 12px; }
@media (max-width: 520px) {
  .rn-chat { right: 12px; bottom: 12px; }
  .rn-chat__panel { width: calc(100vw - 24px); height: calc(100vh - 24px); }
  .rn-chat__launcher span:last-child { display: none; }
}
.rn-chat__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
