/* Custom tawk.to launcher: plugin widget stays hidden until the custom button is clicked. */
.ek-tawk-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1900000001;
  font-family: "Poppins", sans-serif;
}
.ek-tawk-launcher--with-whatsapp {
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 52px + 12px);
}
.ek-tawk-launcher__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #319b9e;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  font-family: inherit;
  line-height: 1;
}
.ek-tawk-launcher__button:hover { transform: translateY(-2px); background: #298a8d; }
.ek-tawk-launcher__button:focus-visible { outline: 3px solid #16130f; outline-offset: 4px; }
/* Both online and offline states use text; each string is independently translatable. */
.ek-tawk-launcher__live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}
.ek-tawk-launcher__live small { font-size: 9px; font-weight: 600; line-height: 1.1; }
.ek-tawk-launcher__live--online { display: none; }
.ek-tawk-launcher.is-online .ek-tawk-launcher__live--online { display: flex; }
.ek-tawk-launcher.is-online .ek-tawk-launcher__live--offline { display: none; }
.ek-tawk-launcher__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border: 2px solid #f5efe9;
  border-radius: 50%;
  background: #767676;
}
.ek-tawk-launcher.is-online .ek-tawk-launcher__dot { background: #2f7d5a; }
.ek-tawk-launcher.is-open .ek-tawk-launcher__dot { display: none; }
.ek-tawk-launcher__tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  transform: translate(8px,-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 9px 14px;
  border-radius: 26px;
  background: #171310;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.ek-tawk-launcher:hover .ek-tawk-launcher__tooltip,
.ek-tawk-launcher:focus-within .ek-tawk-launcher__tooltip {
  transform: translate(0,-50%);
  visibility: visible;
  opacity: 1;
}
/* The native Tawk.to close button controls closing; keep the launcher anchored in
   its original position and hide it while the chat window is maximized. */
.ek-tawk-launcher.is-open { visibility: hidden; pointer-events: none; }
.ek-tawk-launcher.is-loading .ek-tawk-launcher__button { opacity: .8; }
.ek-tawk-launcher.is-unavailable .ek-tawk-launcher__dot { background: #ad5142; }
@media (max-width: 600px) {
  .ek-tawk-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .ek-tawk-launcher--with-whatsapp { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 48px + 12px); }
  .ek-tawk-launcher__button { width: 48px; height: 48px; }
  .ek-tawk-launcher__tooltip { max-width: calc(100vw - 90px); overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .ek-tawk-launcher__tooltip, .ek-tawk-launcher__button { transition: none; }
}

/* Once-per-session contact invite. It overlays, rather than repositions, the icons. */
.ek-tawk-invite[hidden] { display: none !important; }
.ek-tawk-invite {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1900000002;
  width: min(340px, calc(100vw - 32px));
  padding: 17px 17px 14px;
  border: 1px solid #e7ded4;
  border-radius: 17px;
  background: #fffaf5;
  color: #171310;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  font-family: "Poppins", sans-serif;
  animation: ek-tawk-invite-in .25s ease-out both;
}
.ek-tawk-invite__title {
  padding-right: 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.ek-tawk-invite__close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #8b8581;
  padding: 4px;
  cursor: pointer;
}
.ek-tawk-invite__status {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 3px 0 13px;
  color: #77716d;
  font-size: 12px;
  line-height: 1.4;
}
.ek-tawk-invite__status-dot {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 0 0 3px #e8e3df;
}
.ek-tawk-invite.is-online .ek-tawk-invite__status-dot { background: #2f9467; box-shadow: 0 0 0 3px #dcefe7; }
.ek-tawk-invite__status-online { display: none; }
.ek-tawk-invite.is-online .ek-tawk-invite__status-online { display: inline; }
.ek-tawk-invite.is-online .ek-tawk-invite__status-offline { display: none; }
.ek-tawk-invite__actions { display: flex; gap: 8px; }
.ek-tawk-invite__chat, .ek-tawk-invite__whatsapp {
  display: inline-flex;
  flex: 1 1 0;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 22px;
  font: 700 12px/1.3 "Poppins", sans-serif;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.ek-tawk-invite__chat { background: #319b9e; }
.ek-tawk-invite__whatsapp { background: #20d468; }
.ek-tawk-invite__chat:hover { background: #298a8d; color: #fff; }
.ek-tawk-invite__whatsapp:hover { background: #14bd58; color: #fff; }
.ek-tawk-invite__whatsapp svg { width: 15px; height: 15px; fill: currentColor; }
.ek-tawk-invite button:focus-visible, .ek-tawk-invite a:focus-visible { outline: 2px solid #171310; outline-offset: 3px; }
@keyframes ek-tawk-invite-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ek-tawk-invite { animation: none; } }
