/* CSS for the chat window */
body {
  margin: 0;
  padding: 0;
}
body .main-content {
  margin-top: 0;
  padding-top: 25px;
}
#chat-container {
  font-family: Arial, sans-serif;
  height: 650px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

#chat-messages {
  height: 85%;
  overflow-y: auto;
  padding: 10px;
  position: relative;
}
#chat-messages p {
  font-size: 0.9rem;
}

.sender-message {
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  padding: 5px 10px;
  margin-left: auto;
  width: fit-content;
  max-width: 70%;
  position: relative;
}

.sender-message::before {
  content: "";
  position: absolute;
  bottom: -10px; /* Position at the bottom of the bubble */
  right: 10px; /* Adjust position to bottom-right corner */
  border-width: 10px; /* Size of the tail */
  border-style: solid;
  border-color: transparent #007bff transparent transparent;
}

.receiver-message {
  background-color: #f0f0f0;
  color: #333;
  border-radius: 5px;
  padding: 5px 10px;
  margin-right: auto;
  max-width: 70%;
  width: fit-content;
  position: relative;
}

.receiver-message::before {
  content: "";
  position: absolute;
  bottom: -10px; /* Position at the bottom of the bubble */
  left: 10px; /* Adjust position to bottom-left corner */
  border-width: 10px; /* Size of the tail */
  border-style: solid;
  border-color: transparent transparent transparent #f0f0f0;
}

.myselect {
  margin-bottom: 12px;
  margin-right: 5px;
}

#message-input {
  width: 100%;
  padding: 10px;
  border: none;
  border-top: 1px solid #ccc;
  height: 7%;
}

#send-button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  height: 8%;
}

#send-button.disabled {
  background-color: #aaa; /* Greyed out */
  cursor: not-allowed; /* Cursor indicates button is disabled */
  color: #666; /* Text color change to indicate it's disabled */
}
/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  #chat-container {
    max-width: 100%;
    /* Overriden by Wordpress Min-Height Property */
    max-height: 80%;
  }

  #chat-messages {
    min-height: inherit;
  }
}
.dot-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
  margin: 5px;
  animation: dotAnimation 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dotAnimation {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
/* Product Card */
.product-card {
  text-align: center; /* Center text and inline elements */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  min-width: 300px;
  width: 50%;
  height: 100%;
  font-family: Arial, sans-serif;
  margin: 10px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.product-card div {
  text-align: start;
  height: 45%;
}

.product-card img {
  max-width: 100;
  max-height: 55%;
  object-fit: contain;
}

.product-card a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: block;
  padding: 15px;
  padding-bottom: 0;
}

.product-card p {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 0.5rem;
  padding: 15px;
  padding-top: 0;
}

.product-card ul {
  margin-bottom: 0.5rem;
}
.product-card ul li {
  white-space: normal; /* Allows text within each list item to wrap as needed */
}
.card-counter {
  text-align: center;
  margin-bottom: 5px;
}

.product-card button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.product-card button.prev {
  left: 10px;
}

.product-card button.next {
  right: 10px;
}
#scroll-to-bottom-button {
  position: absolute;
  right: 2%;
  bottom: 20%;
  height: 30px;
  width: 30px;
}
