
/* Pepron Chat Theme (Green) */
#pepron-chat-widget-container * {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

#pepron-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #429122;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

#pepron-chat-launcher svg {
  width: 24px;
  height: 24px;
}

#pepron-chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

@media (max-width: 420px), (max-height: 600px) {
  #pepron-chat-window {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    bottom: auto;
    right: auto;
    max-height: none;
  }
}

.pepron-chat-reset-btn,
.pepron-chat-debug-btn,
.pepron-chat-minimize-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: white;
}

.pepron-chat-header {
  position: relative;
  background-color: #429122;
  color: white;
  padding: 1rem;
  font-size: 1rem;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.pepron-chat-header .logo {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background-color: #429122;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  z-index: 1;
}

.pepron-chat-header .logo img {
  position: relative;
  left: 4px;
  top: 14px;
  border: none;
  width: 60px;
  height: auto;
  border-radius: 0;
  background: none;
}

.pepron-chat-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.pepron-chat-controls {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}

.pepron-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: url('https://www.pepron.com/wp-content/uploads/2016/08/pepron_tausta-1.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  backdrop-filter: brightness(1.1);
}

.pepron-chat-footer {
  display: flex;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid #ccc;
}

.pepron-chat-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.pepron-send-button {
  padding: 0.6rem 1rem;
  background-color: #429122;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.pepron-send-button:hover {
  background-color: #36761b;
}

.pepron-chat-message {
  margin-bottom: 0.75rem;
  display: flex;
}

.pepron-user-message {
  justify-content: flex-end;
}

.pepron-bot-message {
  justify-content: flex-start;
}

.message-content {
  max-width: 75%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pepron-user-message .message-content {
  background-color: #429122;
  color: white;
  border-bottom-right-radius: 0;
}

.pepron-bot-message .message-content {
  background-color: white;
  border-bottom-left-radius: 0;
}

.pepron-cursor {
  display: inline-block;
  width: 6px;
  height: 1rem;
  background-color: #999;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: bottom;
  margin-left: 3px;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.pepron-loader-container {
  display: inline-block;
  justify-content: center;
  align-items: center;
  margin-left: 0.5rem;
}

.pepron-bouncing-dots {
  display: flex;
  justify-content: space-between;
  width: 26px;
}

.pepron-dot {
  width: 6px;
  height: 6px;
  background-color: #429122;
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}

.pepron-dot:nth-child(1) {
  animation-delay: 0s;
}
.pepron-dot:nth-child(2) {
  animation-delay: 0.3s;
}
.pepron-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
}

.pepron-hidden {
  display: none !important;
}
