.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #101314;
  color: #f7f8f5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie-banner a { color: #36b37e; }
.cookie-banner div { display: flex; gap: 8px; }
.cookie-banner button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3a4440;
  background: transparent;
  color: #f7f8f5;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.cookie-banner #cookie-accept { background: #f7f8f5; color: #101314; border-color: #f7f8f5; }

.chat-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 32;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #101314;
  color: #f7f8f5;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 32;
  display: none;
  flex-direction: column;
  width: min(380px, calc(100% - 24px));
  height: min(520px, calc(100% - 120px));
  background: #f7f8f5;
  color: #161819;
  border: 1px solid #dde2dd;
  box-shadow: 0 24px 70px rgba(16, 19, 20, 0.18);
}
.chat-panel.open { display: flex; }
.chat-head, .chat-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.chat-head { border-bottom: 1px solid #dde2dd; }
.chat-head strong { display: block; letter-spacing: -0.03em; }
.chat-head span, .chat-note { color: #5c6468; font-size: 12px; }
.chat-head button, .chat-form button {
  border: 0;
  background: #101314;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.chat-head button { width: 32px; height: 32px; background: transparent; color: #161819; }
.chat-log { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-log p { margin: 0; max-width: 85%; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.chat-log .user { align-self: flex-end; background: #101314; color: #f7f8f5; }
.chat-log .bot { align-self: flex-start; background: #fff; border: 1px solid #dde2dd; }
.chat-quick { display: flex; gap: 8px; padding: 0 16px 10px; }
.chat-quick button { border: 1px solid #dde2dd; background: #fff; font: inherit; font-size: 12px; padding: 6px 10px; cursor: pointer; }
.chat-form { border-top: 1px solid #dde2dd; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 90px; border: 1px solid #dde2dd; background: #fff; font: inherit; font-size: 14px; padding: 10px; resize: none; }
.chat-form button { min-height: 44px; padding: 0 14px; }
.chat-note { padding: 0 16px 12px; }
.chat-note a { color: #1f8f62; }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
}
