﻿#chatbot-container {
  position: fixed;
  bottom: 148px;
  right: 10px;
  width: 400px;
  height: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 4;
}

#chatbot-container.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#chatbot-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chatbot-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: black;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
  #chatbot-container {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
  }

  #chatbot-container.open {
    transform: translateY(0);
  }

  .chatbot-close {
    display: flex;
  }

  #chatbot-container.open ~ .chatbot-toggle {
    display: none;
  }
}

.chatbot-toggle {
  position: fixed;
  bottom: 78px;
  right: 7px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #0e2a8d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.25s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-icon {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chatbot-icon-active {
  opacity: 1;
  transform: translateY(0);
}

/* Cycling Animation */
.chatbot-icon-animate {
  animation: bounce-icon 0.3s ease;
}

@keyframes bounce-icon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}
