#rd-reception-chat {
  position: fixed;
  z-index: 110;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px);
  font: 14px/1.5 Arial, sans-serif;
  color: #171717;
}
#rd-reception-chat *, #rd-reception-chat *::before, #rd-reception-chat *::after { box-sizing: border-box; }
#rd-reception-chat [hidden] { display: none !important; }
body.admin-bar #rd-reception-chat { --rd-chat-top-clearance: 46px; }
#rd-chat-panel { padding: 0; margin: 0; }
#rd-reception-chat button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; }
#rd-reception-chat button:focus-visible, #rd-reception-chat a:focus-visible, #rd-reception-chat textarea:focus-visible { outline: 3px solid #e40515; outline-offset: 3px; }
#rd-reception-chat .rd-chat-launcher { border: 1px solid #111; border-radius: 28px; background: #111; color: #fff; padding: 12px 22px; box-shadow: 0 3px 18px #0002; }
#rd-chat-panel { width: 370px; max-width: calc(100vw - 32px); height: 550px; max-height: calc(100vh - 150px); max-height: min(550px, calc(100dvh - 150px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #d5d5d5; border-radius: 16px; box-shadow: 0 8px 40px #0003; overflow: hidden; }
#rd-reception-chat .rd-chat-header { display: flex; justify-content: space-between; align-items: center; background: #111; color: #fff; padding: 12px 16px; flex-shrink: 0; }
#rd-reception-chat .rd-chat-header strong { font-size: 16px; color: #fff; }
#rd-reception-chat .rd-chat-header small { display: block; font-size: 12px; color: #ddd; }
#rd-reception-chat .rd-chat-header button { border: 0; background: transparent; color: #fff; padding: 4px 10px; font-size: 26px; line-height: 1; }
#rd-reception-chat .rd-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; background: #faf8f5; }
#rd-reception-chat .rd-chat-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 16px 12px 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6e1da; font: inherit; color: #171717; }
#rd-reception-chat .rd-chat-user { margin: 0 0 12px 20px; background: #171717; color: #fff; border-color: #171717; }
#rd-reception-chat .rd-chat-system { margin: 0 0 12px; padding: 5px; border: 0; background: transparent; color: #555; font-size: 12px; text-align: center; }
#rd-reception-chat .rd-chat-status { flex-shrink: 0; margin: 0; padding: 7px 14px; min-height: 30px; font-size: 12px; color: #555; background: #fff; }
#rd-reception-chat .rd-chat-form { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; padding: 6px 12px 10px; margin: 0; border: 0; background: #fff; }
#rd-reception-chat textarea { flex: 1; width: 0; min-width: 0; min-height: 52px; max-height: 100px; resize: vertical; padding: 9px; font: inherit; border: 1px solid #aaa; border-radius: 8px; background: #fff; color: #111; }
#rd-reception-chat [data-chat-send], #rd-reception-chat [data-chat-retry] { border: 0; border-radius: 8px; background: #d90010; color: #fff; padding: 10px 12px; }
#rd-reception-chat button:disabled { opacity: .45; cursor: default; }
#rd-reception-chat .rd-chat-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 7px 12px; border-top: 1px solid #eee; background: #fff; font-size: 11px; flex-shrink: 0; }
#rd-reception-chat .rd-chat-footer button { border: 0; background: transparent; color: #555; padding: 0; font-size: 11px; text-decoration: underline; }
#rd-reception-chat a { color: #333; text-decoration: underline; }
#rd-reception-chat .rd-chat-fallback { padding: 4px 14px 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; background: #fff; }
#rd-reception-chat .rd-chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#rd-reception-chat .rd-chat-choices { display:flex; flex-wrap:wrap; gap:4px 6px; padding:5px 12px; flex-shrink:0; background:#fff; border-top:1px solid #eee; }
#rd-reception-chat .rd-chat-choices button, #rd-reception-chat .rd-chat-choices a { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:5px 9px; border:1px solid #d5d5d5; border-radius:16px; background:#fff; color:#222; font-size:12px; }
#rd-reception-chat .rd-chat-choices [data-chat-human] { background:#eaf4ee; border-color:#8caa98; }
#rd-reception-chat .rd-chat-remember { display:flex; gap:6px; align-items:center; padding:3px 12px; margin:0; font-size:11px; line-height:1.3; background:#fff; flex-shrink:0; }
#rd-reception-chat .rd-chat-remember input { width:16px; height:16px; margin:0; flex-shrink:0; }
@media (max-width: 767px), (max-width: 1024px) and (max-height: 500px) {
  #rd-reception-chat {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px) + var(--rd-chat-obscured, 0px));
    max-width: none;
  }
  #rd-chat-panel { width: 100%; max-width: 420px; height: 620px; max-height: calc(100vh - 104px); max-height: calc(var(--rd-chat-visible-height, 100dvh) - 104px - env(safe-area-inset-bottom, 0px)); }
  #rd-reception-chat textarea { font-size: 16px; line-height: 1.4; resize: none; }
  #rd-reception-chat .rd-chat-launcher,
  #rd-reception-chat .rd-chat-header button,
  #rd-reception-chat [data-chat-send],
  #rd-reception-chat [data-chat-retry],
  #rd-reception-chat .rd-chat-footer button,
  #rd-reception-chat .rd-chat-fallback a { min-width: 44px; min-height: 44px; touch-action: manipulation; }
  #rd-reception-chat .rd-chat-footer { align-items: center; padding: 0 12px; }
  #rd-reception-chat .rd-chat-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  #rd-reception-chat .rd-chat-fallback a { display: inline-flex; align-items: center; }
  #rd-reception-chat .rd-chat-choices button, #rd-reception-chat .rd-chat-choices a { min-height:44px; touch-action:manipulation; }
  #rd-reception-chat .rd-chat-remember { min-height:36px; }
  #rd-reception-chat[data-keyboard="true"] .rd-chat-choices button, #rd-reception-chat[data-keyboard="true"] [data-chat-email], #rd-reception-chat[data-keyboard="true"] .rd-chat-remember { display:none; }
  #rd-reception-chat[data-keyboard="true"] { bottom: calc(8px + var(--rd-chat-obscured, 0px)); }
  #rd-reception-chat[data-keyboard="true"] #rd-chat-panel { max-height: calc(var(--rd-chat-visible-height, 100dvh) - 16px - var(--rd-chat-top-clearance, 0px)); }
}
@media (max-width: 1024px) and (max-height: 500px) {
  #rd-reception-chat { bottom: calc(8px + var(--rd-chat-obscured, 0px)); }
  #rd-chat-panel { max-height: calc(var(--rd-chat-visible-height, 100dvh) - 16px - var(--rd-chat-top-clearance, 0px)); }
}
.rd-chat-privacy-note{font-size:11px;line-height:1.35;margin:0;padding:6px 14px;color:#555;background:#f7f8f6;flex:0 0 auto}.rd-availability-review{max-width:1100px;margin:20px auto;padding:18px;border:1px solid #cfaa65;background:#fff7e8;border-radius:10px}
#rd-reception-chat .rd-chat-header-advisor { display:none; }
@media (max-width:1024px) {
  #rd-reception-chat[data-keyboard="true"] .rd-chat-choices,
  #rd-reception-chat[data-keyboard="true"] .rd-chat-privacy-note { display:none; }
  #rd-reception-chat[data-keyboard="true"] .rd-chat-header { padding:4px 12px; }
  #rd-reception-chat[data-keyboard="true"] .rd-chat-header-advisor { display:inline-flex;align-items:center;min-height:44px;padding:4px 10px;color:white;font-size:12px; }
}
@media (max-width:1024px) and (max-height:500px) {
  #rd-reception-chat .rd-chat-choices,
  #rd-reception-chat .rd-chat-remember { display:none; }
  #rd-reception-chat .rd-chat-header { padding:4px 12px; }
  #rd-reception-chat .rd-chat-header-advisor { display:inline-flex;align-items:center;min-height:44px;padding:4px 10px;color:white;font-size:12px; }
  #rd-reception-chat .rd-chat-status { padding:3px 12px;min-height:22px; }
  #rd-reception-chat textarea { height:52px;min-height:52px; }
}
