@charset "UTF-8";
/* Рыжик в той же палитре и с теми же контурами, что и наклейки на лендинге. */
.ry-chat-launch.btn {
  position: fixed;
  z-index: 55;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  gap: 8px;
  padding: 6px 14px 6px 7px;
  border-radius: 18px;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.ry-chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--mint);
}

.ry-chat-avatar .rz { width: 34px; }
.ry-chat-open { overflow: hidden; }
.ry-chat [hidden], .btn[data-book-chat][hidden] { display: none; }

.ry-chat {
  --ry-gap: 18px;
  position: fixed;
  inset: auto max(var(--ry-gap), env(safe-area-inset-right)) calc(var(--ry-gap) + env(safe-area-inset-bottom) + var(--ry-keyboard-inset, 0px)) auto;
  margin: 0;
  width: min(388px, calc(100vw - 2 * var(--ry-gap)));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--sky2);
  border: var(--line);
  border-radius: 25px;
  box-shadow: 6px 6px 0 var(--ink);
}

.ry-chat::backdrop { background: rgb(36 57 71 / 20%); }
.ry-chat-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--ry-viewport-height, 100dvh) - 2 * var(--ry-gap) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.ry-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 11px 13px;
  background: var(--sun);
  border-bottom: var(--line);
}

.ry-chat-head .ry-chat-avatar { width: 47px; height: 47px; }
.ry-chat-head .ry-chat-avatar .rz { width: 39px; }
.ry-chat-head h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.ry-chat-head p { margin: 2px 0 0; font-size: 12px; font-weight: 700; }
.ry-chat-head button { margin-left: auto; font-size: 25px; }

.ry-chat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.ry-chat-icon:hover { background: var(--mint); }
.ry-chat-icon:disabled { opacity: .5; cursor: wait; }
.ry-chat-conversation {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 428px;
  min-height: 0;
}

.ry-chat-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 13px 16px;
  scrollbar-width: thin;
}

.ry-chat-log { display: grid; gap: 10px; }
.ry-chat-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 5px 15px 15px;
  box-shadow: 2px 2px 0 var(--ink);
  background: white;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ry-chat-bubble.is-user { justify-self: end; background: var(--mint); border-radius: 15px 5px 15px 15px; }
.ry-chat-bubble.is-waiting { font-size: 13px; font-weight: 700; }
.ry-chat-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.ry-chat-quick button,
.ry-chat-back {
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ry-chat-quick button:hover,
.ry-chat-back:hover { background: var(--mint); }
.ry-chat-footer {
  display: grid;
  gap: 9px;
  padding: 11px 13px 10px;
  background: white;
  border-top: 2px solid var(--ink);
}

.ry-chat-footer p { margin: 0; text-align: center; font-size: 11px; font-weight: 750; }
.ry-chat-compose { display: flex; gap: 7px; }
.ry-chat-compose button { background: var(--mint); }
.ry-chat input, .ry-chat select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font: 600 16px/1.2 Inter, system-ui, sans-serif;
}

.ry-chat input:focus-visible, .ry-chat select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.btn.ry-chat-hot {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(110deg, #ffae50, var(--sun) 64%, #ffe789);
  box-shadow: 3px 3px 0 var(--ink), 0 0 14px #ff9d5ca0;
  font-size: 15px;
  animation: ry-chat-glow 2.1s ease-in-out infinite alternate;
}

@keyframes ry-chat-glow {
  from { box-shadow: 3px 3px 0 var(--ink), 0 0 8px #ff9d5c70; }
  to { box-shadow: 3px 3px 0 var(--ink), 0 0 18px #ff873eb0; }
}

.btn.ry-chat-hot:hover { filter: saturate(1.2); }
.btn.ry-chat-hot:disabled { opacity: .7; animation: none; cursor: wait; }
.btn.ry-chat-hot.is-accepted { background: var(--mint); animation: none; box-shadow: 3px 3px 0 var(--ink); }
.ry-chat-booking { overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 19px; }
.ry-chat-booking h3 { margin: 11px 0; font-size: 21px; line-height: 1.2; }
.ry-chat-lead, .ry-chat-lead label { display: grid; gap: 9px; }
.ry-chat-lead label { gap: 4px; font-size: 13px; font-weight: 800; }
.ry-chat-fields { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.75fr); gap: 9px; }
.ry-chat-note, .ry-chat-error { margin: 0; font-size: 12px; line-height: 1.4; }
.ry-chat-lead label.ry-chat-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.ry-chat-consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.ry-chat-consent a, .ry-chat-policy { color: var(--blue); font-weight: 800; }
.ry-chat-policy, .ry-chat-lead small { font-size: 12px; line-height: 1.4; }
.ry-chat-lead small { font-weight: 500; }
.ry-chat-analytics { padding: 9px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); }
.ry-chat-analytics p { margin: 0 0 4px; font-size: 12px; line-height: 1.4; }
.ry-chat-analytics-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ry-chat-error { padding: 7px 9px; border: 2px solid var(--ink); border-radius: 9px; background: #ffe3d8; font-weight: 750; }
.ry-chat-success { padding: 12px; background: var(--mint); border: var(--line); border-radius: 15px; }
.ry-chat-success p { margin: 4px 0 0; font-size: 14px; }

@media (max-width: 919px) {
  .dock-on .ry-chat-launch { bottom: calc(70px + env(safe-area-inset-bottom)); }
  html[data-hook]:not(.in-frame) .ry-chat-launch { bottom: calc(58px + env(safe-area-inset-bottom)); }
  html[data-hook].dock-on:not(.in-frame) .ry-chat-launch { bottom: calc(129px + env(safe-area-inset-bottom)); }
  .ry-chat { --ry-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn.ry-chat-hot, .btn.ry-chat-launch { animation: none; transition: none; }
}
