.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0F2D5B;
  color: white;
  border: 2px solid #f7f7f7;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 8px;
}

.chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 600px;
  height: 600px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.chat-header {
  background: #0F2D5B;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

  .chat-header-buttons {
    display: flex;
    gap: 8px;
  }

  .header-button {
    background: white;
    color: #0F2D5B;
    border: none;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
  }

  .header-button:hover {
    background: #e6e6e6;
  }

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chat-iframe {
  width: 100%;
  height: calc(100% + 330px + 1300px); /* bigger than visible area */
  border: none;
  transform: translateY(-330px);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .chat-box {
    width: 90vw;
    height: 60vh;
    bottom: 80px;
    right: 10px;
  }
}