@font-face {
    font-family: "Inter"; 
    src: url("../index/Inter.woff2") format("woff2"); 
    font-style: normal; 
    font-weight: normal; 
}

@font-face {
    font-family: "OpenSans"; 
    src: url("../index/OpenSans-Regular.woff2") format("woff2"); 
    font-style: normal; 
    font-weight: normal; 
}

@font-face {
    font-family: "SF"; 
    src: url("../index/SFProText-Regular.woff2") format("woff2"); 
    font-style: normal; 
    font-weight: normal; 
} 

/* .whatsapp-widget {
    font-family: "OpenSans";
    font-size: 14px;
    line-height: 1.2;
    width: 365px;
    height: 680px;
    display: flex;
    flex-direction: column;
} */

.whatsapp-widget {
    font-family: "Inter";
    /* font-family: "SF"; */
    font-size: 14px;
    line-height: 1.2;
    width: 365px;
    height: 675px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
    text-align: initial;
}

.whatsapp-widget img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.whatsapp-widget__header {
    background-color: #fff;
    padding: 1.8%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 1;
}

.whatsapp-widget__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-widget__time {
    font-weight: 700;
    margin-left: 30px;
}

.whatsapp-widget__mobile-icons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

img.wifi-icon {
    max-width: none;
    width: 18px;
    height: 14px;
    object-fit: cover;
}

img.antenna-icon {
    max-width: none;
    width: 20px;
    height: 14px;
}

img.battery-icon {
    max-width: none;
    width: 24px;
    height: 14px;
}

.whatsapp-widget__header-bottom {
    display: flex;
    align-items: center;
}

.whatsapp-widget__header-bottom .whatsapp-widget__mobile-icons {
    margin-left: auto;
    display: flex;
    height: 20px;
    gap: 0;
}

.whatsapp-widget__header-bottom .whatsapp-widget__mobile-icons img:not(:first-child) {
    margin-left: 20px;
}

.whatsapp-widget__btn {
    margin-right: 30px;
}

.whatsapp-widget__user {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

.whatsapp-widget__user-ava {
    flex-shrink: 0;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}

.whatsapp-widget__user-ava img {
    display: initial;
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.whatsapp-widget__user-name {
    font-size: 14px;
    font-weight: 600;
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-widget__user-descr {
    color: rgb(166 166 166);
    font-size: 12px;
}


.whatsapp-widget__chat-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px 10px 10px 10px;
    background-color: #efeae2;
    background-image: url("../index/bg-sprite.webp");
    background-blend-mode: soft-light;
    flex: 1 1 0;
    overflow: hidden;
}

.chat-arrow {
    position: relative;
}

.chat-arrow::after {
    content: "";
    position: absolute;
    bottom: 40px;
    right: -1px;
    width: 46px;
    height: 35px;
    border: 1px solid #00000021;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.05);
    display: inline-block;
    background-color: #f4f4f4;
    background-image: url("../index/chat-arrow.svg");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

.whatsapp-widget__left-col,
.whatsapp-widget__right-col {
    display: inline-flex;
    gap: 5px;
}

.whatsapp-widget__left-col {
    margin-right: auto;
}

.whatsapp-widget__right-col {
    margin-left: auto;
}

.whatsapp-widget__user-ava--chat {
    align-self: flex-end;
    width: 30px;
    height: 30px;
}

.whatsapp-widget .whatsapp-widget__message-name {
    margin: 0 0 2px;
   font: inherit;
   font-weight: 700;
}

.whatsapp-widget__message {
    margin-right: auto;
    max-width: 80%;
    padding: 5px;
    padding-left: 10px;
    /* padding-right: 45px; */
    background-color: #fff;
    position: relative;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
}

.whatsapp-widget__message img {
    max-width: 50%;
    display: block;
    margin: 5px 0;
}

.whatsapp-widget__message:last-child::before {
    content: "";
    width: 19px;
    height: 17px;
    display: inline-block;
    position: absolute;
    background: url("../index/white-tail.webp");
    background-repeat: no-repeat;
    background-size: contain;
    left: -9px;
    bottom: -2px;
}

.whatsapp-widget__message--answer {
    order: -1;
    margin-left: auto;
    margin-right: 0;
    background: #e8fed7;
    /* padding-right: 65px; */
}

.whatsapp-widget__message--answer:last-child::before {
    display: none;
}

.whatsapp-widget__message--answer:last-child::after {
    content: "";
    width: 19px;
    height: 17px;
    display: inline-block;
    position: absolute;
    background: url("../index/green-tail.webp");
    background-repeat: no-repeat;
    background-size: contain;
    right: -9px;
    bottom: -2px;
}

.whatsapp-widget__time-message {
    position: relative;
    right: 0;
    bottom: -5px;
    padding: 0 10px;
    padding-right: 5px;
    font-size: 11px;
    float: right;
    color: rgba(0, 0, 0, .45);
    font-weight: 400;
}

.whatsapp-widget__message--answer .whatsapp-widget__time-message::after {
    /* content: ""; */
    position: relative;
    display: inline-block;
    right: 0;
    width: 15px;
    height: 10px;
    background-image: url("../index/check.svg");
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 5px;
}
.whatsapp-widget__footer {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgb(241, 241, 241);
    padding: 10px;
    flex: 0 0 1;
}

.whatsapp-widget__footer-input {
    background-color: #fff;
    border: 2px solid #e5e5e5;
    padding: 5px 10px;
    width: 100%;
    border-radius: 100px;

}

.whatsapp-widget__footer-icon {
    line-height: 1;
}

img.plus-icon {
    max-width: none;
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.whatsapp-widget__footer-input {
    display: flex;
    justify-content: flex-end;
}

img.file-icon {
    max-width: none;
    width: 30px;
    height: 30px;
    margin: 0;
    object-fit: cover;
}

img.photo-icon {
    max-width: none;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

img.micro-icon {
    max-width: none;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

img.left-arrow {
    max-width: none;
    width: 12px;
    height: 20px;
    object-fit: contain;
}

img.audio-msg__btn {
    width: 14px;
    height: 16px;
}

img.audio-msg__wafeform {
    width: 160px;
    height: 24px;
}

.audio-msg__ava {
    width: 35px;
    height: 35px;
    position: relative;
    margin-left: 5px;
}

.whatsapp-widget__audio .audio-msg__ava {
    margin-left: 10px;
}

.whatsapp-widget__left-col .audio-msg__ava::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 18px;
    background-image: url("../index/blue-mic.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: -5px;
    bottom: 0;
}

.audio-msg__ava img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.audio-msg {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0;
}

.audio-msg img {
    max-width: 100%;
    margin: 0;
}

.whatsapp-widget__audio-msg {
    max-width: 100%;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    width: 160px;
    margin: 0 auto;
}

.whatsapp-widget__audio-msg .whatsapp-widget__time-message {
    position: static;
    float: none;
    padding: 0;
}

.whatsapp-widget__audio {
    padding-left: 0;
}

.whatsapp-widget__message--answer {
    padding-left: 10px;
}

.whatsapp-widget__audio .audio-time {
    bottom: -10px;
}

.whatsapp-widget__audio .audio-msg {
    gap: 0;
}


.audio-msg__wafeform-wrapper {
    position: relative;
}

.audio-time {
    position: absolute;
}

.whatsapp-widget__message--answer .whatsapp-widget__time-message--audio::after {
    display: none;
}

.whatsapp-widget__message--answer .audio-msg__ava {
    order: -1;
    margin-left: 0;
    margin-right: 5px;
}

.whatsapp-widget__audio .audio-msg__ava {
    margin-right: 0;
}


.whatsapp-widget__right-col .audio-msg__ava::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 18px;
    background-image: url(../index/green-mic.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: -5px;
    bottom: 0;
}

.whatsapp-widget__chat-block-audio {
    user-select: auto;
    pointer-events: all;
}

/* audio-player */

.audio-message {
    min-width: 160px;
    display: flex;
    align-items: center;
  }

  .play-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
  }

  .play-btn svg {
    width: 100%;
    height: 100%;
    fill: #767877;
  }

  .waveform-container {
    display: flex;
    align-items: center;
    flex: 1;
    height: 30px;
    padding-left: 0px;
    position: relative;
    min-width: 160px;
  }

  .waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  .bar {
    width: 2px;
    background: #bbb;
    height: 10px;
    border-radius: 1px;
    transition: background 0.1s;
  }

  .bar.active {
    background: #52a6fe;
  }

 .whatsapp-widget__message--answer .bar.active {
    background: #5f6362;
  }

  .wave-progress-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    left: -2px;
    background: #52a6fe;
    border-radius: 50%;
    pointer-events: none;
    transition: left 0.03s linear;
  }

  .whatsapp-widget__message--answer .wave-progress-indicator {
    background: #5f6362;
  }

  .time {
    font-size: 11px;
    color: rgba(0, 0, 0, .45);
    white-space: nowrap;
    min-width: 35px;
  }

  audio {
    display: none;
  }

  @media(max-width: 395px) {
    .whatsapp-widget__btn {
        margin-right: 20px;
    }

    .whatsapp-widget__user {
        max-width: 60%;
        margin-right: 0;   
    }

    .whatsapp-widget__header-bottom .whatsapp-widget__mobile-icons {
        width: fit-content;
    }

    .whatsapp-widget__header-bottom .whatsapp-widget__mobile-icons img:not(:first-child) {
        margin-left: 10px;
    }
  }

  @media(max-width: 345px) {
      .whatsapp-widget__header-bottom .whatsapp-widget__mobile-icons {
          height: 15px;
      }
  }

/* audio-player end */

/* smiles */

.emoji-replaced {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .e-smile  { background-image: url("../index/smiling-face.webp"); } /* 😊 */
    .e-sad    { background-image: url("../index/disappointed-face.webp"); } /* 😞 */
    .e-heart  { background-image: url("../index/sparkling-heart.webp"); } /* 💖 */
    .e-cry    { background-image: url("../index/crying-face.webp"); } /* 😢 */
    .e-pray   { background-image: url("../index/folded-hands.webp"); } /* 🙏 */
    .e-broken { background-image: url("../index/broken-heart.webp"); } /* 💔 */
    .e-loudly-crying-face { background-image: url("../index/crying-face-2.webp"); } /* 😭 */
    .e-kiss { background-image: url("../index/kiss.webp"); } /* 😘 */
    .e-red-heart { background-image: url("../index/red-heart.webp"); } /* ❤ */

/* smiles end */