#awp-chat-wrapper {
  position: fixed;
  z-index: 99999999;
  bottom: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  align-items: end;
}

@media only screen and (max-width: 600px) {
  .awp-chat-window.scale-toggle {
    width: calc(100vw - 32px) !important;
  }
}

.awp-whatsapp-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .07);
}

.awp-chat-window {
  position: absolute;
  background: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  overflow: hidden;
  width: 1px;
  height: 1px;
  transform: scale(0);
  transition: transform 0.3s ease-in-out;
}

.awp-chat-window.scale-toggle {
  transform: scale(1);
  width: 350px;
  height: auto;
}

.awp-chat-header {
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: start;
  position: relative;
  gap: 12px;
}

.awp-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.awp-widget-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.awp-widget-message {
  font-size: 14px;
  line-height: 1.5;
  opacity: .8;
}

.awp-minimize-icon {
  font-size: 20px;
  color: #fff;
  position: absolute;
  cursor: pointer;
  line-height: 1;
  top: 16px;
  opacity: .8;
}

.awp-minimize-icon:hover {
  opacity: 1;
}

.awp-chat-data {
  background: #fff;
  margin: 0 12px;
  border-radius: 8px;
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  /* moved from powered_by to ensure spacing */
}

.awp-chat-content {
  display: flex;
  flex-direction: column;
  max-height: 256px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.awp-contact-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 12px;
  gap: 12px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
}

.awp-avatar-wrapper {
  position: relative;
  flex: 0 1 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.awp-avatar-wrapper img {
  border-radius: 50%;
  border: 1px solid #eee;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  max-width: 40px;
  width: 40px;
}

.awp-online-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  bottom: 0;
  right: 0;
  border: 2px solid #fff;
  animation: onlineScale .5s ease-in-out infinite alternate;
  -webkit-animation: onlineScale .5s ease-in-out infinite alternate;
}

@keyframes onlineScale {
  0% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }

  100% {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
  }
}

.awp-contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.awp-contact-name {
  font-weight: 600;
  color: #072929;
  font-size: 15px;
  line-height: 1.2;
}

.awp-contact-role {
  font-size: 12px;
  color: #434960;
  line-height: 1.5;
}

.awp-qr-chat-icon,
.awp-wa-chat-icon {
  font-size: 24px;
  color: #25d366;
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid rgba(74, 85, 101, 0.1);
  cursor: pointer;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
}

.awp-qr-chat-icon:hover,
.awp-wa-chat-icon:hover {
  background: #f9fafb;
}

.btns-group {
  display: flex;
  gap: .5rem;
}

.awp-qr-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.awp-qr-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.awp-qr-back {
  font-size: 18px;
  cursor: pointer;
}

.awp-qr-body {
  text-align: center;
}

#awp-dynamic-qr {
  display: inline-flex;
  margin: auto;
}

#awp-qr-back {
  position: absolute;
}

.awp-open-whatsapp {
  background: #22c55e;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  width: -moz-available;
  font-size: 14px;
  line-height: 1;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.awp-open-whatsapp:hover {
  background: #16a34a;
}

.awp-social-container {
  padding: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.awp-social-container span {
  font-size: 11px;
  color: #072929;
  line-height: 1.5;
  font-weight: 400;
}

.awp-social-icons-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  width: fit-content;
  flex-wrap: wrap;
}

.awp-social-link {
  text-decoration: none;
  color: #072929;
  /* Removed fixed dimensions to allow icon + padding to determine size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.awp-social-container [class*=" ri-"],
.awp-social-container [class^="ri-"] {
  /* Removed forced font-size to respect inline style or default */
  line-height: 1 !important;
}

.awp-style-round i {
  background: #eee;
  border-radius: 50%;
  padding: 6px;
}

.awp-style-square i {
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 6px;
}

.awp-style-outline i {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 4px;
  background: transparent;
}

.awp-style-colored i {
  background: transparent;
  border: none;
  padding: 0;
}

.awp-reply-time-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-reply-time-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #dcfce7;
  color: #047857;
  font-size: 11px;
  padding: 4px 6px;
  font-weight: 500;
  width: -moz-available;
  width: 100%;
  line-height: 1;
}

.awp-reply-time-bubble .ri-time-line {
  font-size: 12px;
}

.awp-powered_by {
  border-top: 1px solid #eee;
  padding: 8px;
  font-size: 10px;
  text-align: center;
  background: #fcfcfd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* margin-top: 12px; removed, now on chat-data-bottom */
}

.awp-powered_by a {
  line-height: 1;
  width: fit-content;
}

.awp-powered_by img {
  height: 14px;
  width: auto !important;
}

.awp-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.awp-typing-dots .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: dot-pulse 1s infinite;
}

.awp-typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.awp-typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}