.lg-wa-widget,
.lg-wa-widget * {
  box-sizing: border-box;
}

.lg-wa-widget {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(360px, calc(100vw - 40px));
  font-family: inherit;
  font-size: 1rem;
  pointer-events: none;
}

.lg-wa-chatbox {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .2s ease, transform .2s ease;
}

.lg-wa-widget.is-open .lg-wa-chatbox {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lg-wa-header {
  position: relative;
  min-height: 86px;
  padding: 18px 48px 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #07876d;
  color: #fff;
}

.lg-wa-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.lg-wa-avatar {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}

.lg-wa-online-dot {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #23d322;
  box-shadow: 0 0 0 3px #07876d;
}

.lg-wa-name {
  margin: 0 0 5px;
  font-size: 1.125rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.lg-wa-status {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 400;
}

.lg-wa-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .56);
  cursor: pointer;
}

.lg-wa-close::before,
.lg-wa-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: currentColor;
}

.lg-wa-close::before {
  transform: rotate(45deg);
}

.lg-wa-close::after {
  transform: rotate(-45deg);
}

.lg-wa-body {
  position: relative;
  min-height: 126px;
  padding: 18px 22px 16px;
  background: #f3efe8;
  color: #1f1f1f;
  overflow: hidden;
}

.lg-wa-body::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg width='260' height='180' viewBox='0 0 260 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b9b0a6' stroke-width='2' opacity='.55'%3E%3Cpath d='M20 25h31v21H20zM24 28l12 11 12-11M95 28c18 0 30 13 30 29s-13 30-30 30-30-14-30-30 12-29 30-29zM82 56h28M92 44v26M165 26l48 18-33 15-15 32zM196 46l-28 39M30 116c0-16 11-29 27-29s28 13 28 29-12 29-28 29-27-13-27-29zM45 108h24M45 124h24M123 108c10-13 29-8 30 8 1 18-18 25-30 36-13-11-31-18-30-36 1-16 20-21 30-8zM190 105h38v34h-38zM199 113h20M199 123h20M199 133h14'/%3E%3Ccircle cx='236' cy='33' r='9'/%3E%3Cpath d='M230 33h12M236 27v12M132 34h16M140 26v16M222 156c12-4 23 4 23 16M18 162c15-8 28-3 36 11M142 158l26-18M168 158l-26-18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 180px;
}

.lg-wa-time,
.lg-wa-bubble {
  position: relative;
}

.lg-wa-time {
  margin-bottom: 16px;
  text-align: center;
  color: #b0aaa3;
  font-size: .875rem;
  line-height: 1;
}

.lg-wa-bubble {
  width: 230px;
  max-width: calc(100% - 6px);
  padding: 14px 18px 13px;
  border-radius: 0 14px 14px;
  background: #fff;
  color: #222;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 2px 1px rgba(0, 0, 0, .05);
}

.lg-wa-bubble::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  border-top: 14px solid #fff;
  border-left: 14px solid transparent;
}

.lg-wa-form {
  min-height: 56px;
  margin: 0;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.lg-wa-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0;
  color: #1f1f1f;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  background: transparent;
}

.lg-wa-send {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #21d467;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(33, 212, 103, .25);
  cursor: pointer;
}

.lg-wa-send svg {
  width: 23px;
  height: 23px;
  margin-left: 3px;
  fill: currentColor;
}

.lg-wa-float {
  position: relative;
  width: 72px;
  height: 72px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #21d467;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  cursor: pointer;
  pointer-events: auto;
}

.lg-wa-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f20a0a;
}

.lg-wa-float svg {
  width: 44px;
  height: 44px;
}

.lg-wa-icon-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linejoin: round;
}

.lg-wa-icon-phone {
  fill: currentColor;
}

.lg-wa-icon-mark {
  fill: currentColor;
}

@media (max-width: 575.98px) {
  .lg-wa-widget {
    right: 12px;
    bottom: 12px;
    width: min(320px, calc(100vw - 44px));
  }

  .lg-wa-chatbox {
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .lg-wa-header {
    min-height: 80px;
    padding: 16px 44px 16px 18px;
    gap: 10px;
  }

  .lg-wa-avatar-wrap,
  .lg-wa-avatar {
    width: 46px;
    height: 46px;
  }

  .lg-wa-name {
    font-size: 1.0625rem;
  }

  .lg-wa-status {
    font-size: 1rem;
  }

  .lg-wa-body {
    min-height: 124px;
    padding: 18px 20px 16px;
  }

  .lg-wa-bubble,
  .lg-wa-input {
    font-size: 1rem;
  }

  .lg-wa-float {
    width: 64px;
    height: 64px;
  }

  .lg-wa-float svg {
    width: 38px;
    height: 38px;
  }
}
