/** Shopify CDN: Minification failed

Line 17:14 Expected identifier but found whitespace
Line 17:16 Unexpected "{"
Line 17:25 Expected ":"
Line 18:17 Expected identifier but found whitespace
Line 18:19 Unexpected "{"
Line 18:28 Expected ":"
Line 19:12 Expected identifier but found whitespace
Line 19:14 Unexpected "{"
Line 19:23 Expected ":"
Line 231:2 Unexpected "{"
... and 3 more hidden warnings

**/
.whatsapp-widget {
  --header-bg: {{ section.settings.header_bg_color }};
  --button-color: {{ section.settings.button_color }};
  --chat-bg: {{ section.settings.chat_bg_color }};
}

.chat-header,
.chat-content,
.message-input {
  position: fixed;
  right: 20px;
  width: 300px;
  background-color: var(--chat-bg);
  z-index: 10002;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.position-left .chat-header,
.position-left .chat-content,
.position-left .message-input {
  right: auto;
  left: 20px;
}

.chat-header {
  top: calc(100% - 420px);
  height: 60px;
  background-color: var(--header-bg);
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.avatar-container {
  position: relative;
  width: 60px;
  height: 40px;
  margin-right: 10px;
}
[dir="rtl"] .avatar-container {
  position: relative;
  width: 60px;
  height: 40px;
  margin-left: 10px;
}

.chat-header img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 12px;
  height: 12px;
  background-color: #25d366;
  border-radius: 50%;
  border: 2px solid var(--header-bg);
}

.chat-header-info {
  flex-grow: 1;
}

.chat-header h1 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chat-content {
  top: calc(100% - 360px);
  height: 300px;
  padding: 20px;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 7.5px;
  position: relative;
  word-wrap: break-word;
}

.message.received {
  background-color: #ffffff;
  align-self: flex-start;
}

.message.sent {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
}

.message-input {
  bottom: 20px;
  height: 60px;
  display: flex;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 0 0 12px 12px;
}

.whatsapp-btn {
  background-color: var(--button-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-btn:hover {
  opacity: 0.9;
}

.typing-indicator {
  background-color: #e5ddd5;
  padding: 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.typing-indicator span {
  height: 10px;
  width: 10px;
  float: left;
  margin: 0 1px;
  background-color: #9e9ea1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
  animation: 1s blink infinite;
}

.typing-indicator span:nth-of-type(1) { animation-delay: 0.3333s; }
.typing-indicator span:nth-of-type(2) { animation-delay: 0.6666s; }
.typing-indicator span:nth-of-type(3) { animation-delay: 0.9999s; }

@keyframes blink {
  50% { opacity: 1; }
}

.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--button-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  animation: wave 2s infinite;
}

.position-left .chat-icon {
  right: auto;
  left: 20px;
}

.chat-icon img {
  width: 35px;
  height: 35px;
}

@keyframes wave {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 200px) {
  {% unless section.settings.show_on_mobile %}
  .whatsapp-widget {
    display: none !important;
  }
  {% endunless %}

  .chat-header,
  .chat-content,
  .message-input {
    width: 100%;
    right: 0;
    left: 0;
  }

  .chat-icon {
    right: 10px;
    bottom: 10px;
  }

  .position-left .chat-icon {
    left: 10px;
    right: auto;
  }
}
