.fimar-iris-chat {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.fimar-iris-chat__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.fimar-iris-chat__button:hover,
.fimar-iris-chat__button:focus-visible {
  background: #000;
}

.fimar-iris-chat__button:active {
  transform: scale(0.98);
}

.fimar-iris-chat__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.fimar-iris-chat.is-open .fimar-iris-chat__button {
  background: #333;
}

.fimar-iris-chat__icon {
  display: block;
  flex: 0 0 auto;
}

.fimar-iris-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 182px));
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.fimar-iris-chat__panel[hidden] {
  display: none !important;
}

.fimar-iris-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: #111;
  color: #fff;
}

.fimar-iris-chat__title {
  font-size: 14px;
  font-weight: 600;
}

.fimar-iris-chat__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fimar-iris-chat__close:hover,
.fimar-iris-chat__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.fimar-iris-chat__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 480px) {
  .fimar-iris-chat {
    right: 12px;
    bottom: 90px;
  }

  .fimar-iris-chat__panel {
    position: fixed;
    inset: 8px;
    width: auto;
    height: auto;
    bottom: 8px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fimar-iris-chat__button {
    transition: none;
  }
}

.fimar-iris-chat__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fimar-iris-chat__ai-badge {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.01em;
}
