.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.floating-chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  background: #ffffff;
  border: 1px solid rgba(143, 174, 196, 0.32);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-chat.is-open .floating-chat-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #15384d;
  color: #ffffff;
}

.floating-chat-header strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.floating-chat-header span {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.floating-chat-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.floating-chat-body {
  padding: 16px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.floating-chat-body p {
  margin: 0 0 13px;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.floating-chat-actions {
  display: grid;
  gap: 10px;
}

.floating-chat-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #d5e3ea;
  border-radius: 8px;
  color: #10212c;
  text-decoration: none;
  font-weight: 800;
  background: #f8fbfc;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.floating-chat-action:hover {
  background: #eef5f8;
  border-color: #8faec4;
  transform: translateY(-1px);
}

.floating-chat-secondary {
  background: #ffffff;
}

.floating-chat-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.floating-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  max-width: calc(100vw - 44px);
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #f59e0b;
  color: #10212c;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.floating-chat-button span:last-child {
  white-space: normal;
}

.floating-chat-button:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
}

.floating-chat-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .floating-chat {
    right: 16px;
    bottom: 16px;
  }

  .floating-chat-button {
    min-height: 54px;
    padding: 0 16px;
    font-size: 0.88rem;
  }
}
