/* chat-widget.css */
#pt-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#pt-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #02379B;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#pt-chat-button:hover {
  transform: scale(1.05);
}
#pt-chat-button svg {
  width: 28px;
  height: 28px;
}

#pt-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee;
}

#pt-chat-window.open {
  display: flex;
}

.pt-chat-header {
  background: #02379B;
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pt-chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
}

.pt-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.pt-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pt-chat-form input {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}
.pt-chat-form input:focus {
  border-color: #02379B;
}
.pt-chat-form button {
  background: #EE7533;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
}

.pt-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.pt-message.visitor {
  background: #02379B;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pt-message.support {
  background: white;
  color: #333;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pt-message-time {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.8;
}

.pt-chat-footer {
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
  display: none;
}
.pt-chat-footer.active {
  display: flex;
  gap: 10px;
}
.pt-chat-footer input {
  flex: 1;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
}
.pt-chat-footer button {
  background: #02379B;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
