/* Shared contact widget. Keep these rules scoped to avoid changing the site. */
#walkinto-contact-widget,
#walkinto-contact-widget *,
#walkinto-contact-widget *::before,
#walkinto-contact-widget *::after {
  box-sizing: border-box;
  font-family: Arial, "Noto Sans Georgian", sans-serif !important;
  text-transform: none !important;
}

.wi-contact {
  --wi-blue: #4f6aca;
  position: fixed;
  z-index: 2147483000;
  left: max(25px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  direction: ltr;
  color: #303030;
  font: 14px/1.5 Arial, "Noto Sans Georgian", sans-serif;
  text-align: left;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.wi-contact [hidden] {
  display: none !important;
}

.wi-contact button,
.wi-contact a,
.wi-contact input {
  margin: 0;
  border: 0 !important;
  outline: 0;
  background-image: none !important;
  box-shadow: none;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: none !important;
}

.wi-contact button,
.wi-contact a {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
}

.wi-contact button::before,
.wi-contact button::after,
.wi-contact a::before,
.wi-contact a::after {
  display: none;
}

.wi-contact button:focus-visible,
.wi-contact a:focus-visible,
.wi-contact input:focus-visible {
  outline: 3px solid #172e76;
  outline-offset: 4px;
}

.wi-contact svg {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: inherit !important;
  fill: currentColor;
  pointer-events: none;
}

.wi-contact .wi-contact__toggle,
.wi-contact .wi-contact__channel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50% !important;
  background: var(--wi-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 7px rgb(0 0 0 / 16%);
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

.wi-contact .wi-contact__toggle {
  z-index: 2;
  isolation: isolate;
  background: transparent !important;
  box-shadow: none;
  transition: none !important;
}

.wi-contact .wi-contact__toggle:hover {
  transform: none;
  box-shadow: none;
}

.wi-contact .wi-contact__channel:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgb(0 0 0 / 24%);
}

.wi-contact .wi-contact__label,
.wi-contact .wi-contact__tooltip {
  position: absolute;
  top: 50%;
  left: 56px;
  display: block;
  width: max-content;
  max-width: calc(100vw - 110px);
  padding: 7px 12px;
  border: 1px solid #efefef;
  border-radius: 5px;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 6px rgb(0 0 0 / 12%);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%);
}

.wi-contact .wi-contact__label::before,
.wi-contact .wi-contact__tooltip::before {
  position: absolute;
  top: calc(50% - 5px);
  left: -5px;
  display: block;
  width: 9px;
  height: 9px;
  border: solid #efefef;
  border-width: 0 0 1px 1px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.wi-contact .wi-contact__face {
  position: absolute;
  inset: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4f6aca;
  box-shadow: 0 16px 24px 0 rgba(73, 104, 126, .16);
  pointer-events: none;
  transition: all 500ms ease;
}

.wi-contact .wi-contact__face > svg {
  width: 44px;
  height: 44px;
}

.wi-contact .wi-contact__face--open {
  opacity: 1;
  visibility: visible;
  z-index: 1099;
  transform: rotate(0deg);
}

.wi-contact .wi-contact__face--close {
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transform: rotate(0deg);
}

.wi-contact[data-attention="true"] .wi-contact__face--open {
  animation: wi-contact-pulse-icon 400ms ease infinite alternate;
}

.wi-contact .wi-contact__label {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease, visibility 0s;
}

.wi-contact[data-open="true"] .wi-contact__face--open {
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transform: rotate(540deg);
}

.wi-contact[data-open="true"] .wi-contact__face--close {
  opacity: 1;
  visibility: visible;
  z-index: 1099;
  transform: rotate(180deg);
}

.wi-contact[data-open="true"] .wi-contact__label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 0s 500ms;
}

.wi-contact .wi-contact__channels {
  position: absolute;
  bottom: 52px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 44px;
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 500ms;
}

/* Each channel travels from the main button to its place in the stack. */
.wi-contact .wi-contact__channels .wi-contact__channel {
  opacity: 0;
  transform: translateY(104px);
  transition: opacity 500ms ease, transform 500ms ease, box-shadow 160ms ease !important;
}

.wi-contact .wi-contact__channels .wi-contact__channel:nth-child(2) {
  transform: translateY(52px);
}

.wi-contact[data-view="channels"] .wi-contact__channels {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.wi-contact[data-view="channels"] .wi-contact__channels .wi-contact__channel {
  opacity: 1;
  transform: translateY(0);
}

.wi-contact .wi-contact__channel--whatsapp {
  background: #49e670 !important;
}

.wi-contact .wi-contact__channel--messenger {
  background: #1e88e5 !important;
}

.wi-contact .wi-contact__channel .wi-contact__tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.wi-contact .wi-contact__channel:hover .wi-contact__tooltip,
.wi-contact .wi-contact__channel:focus-visible .wi-contact__tooltip {
  visibility: visible;
  opacity: 1;
}

.wi-contact .wi-contact__panel {
  position: absolute;
  z-index: 3;
  bottom: 56px;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-width: calc(100vw - 50px - env(safe-area-inset-left) - env(safe-area-inset-right));
  height: 392px;
  max-height: calc(100vh - 104px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  max-height: calc(100dvh - 104px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #f0ede7;
  box-shadow: 0 3px 18px rgb(0 0 0 / 20%);
  opacity: 0;
  transform: translateY(109px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease, visibility 0s 500ms;
}

.wi-contact[data-view="panel"] .wi-contact__panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.wi-contact .wi-contact__header {
  display: flex;
  align-items: center;
  flex: 0 0 50px;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 13px;
  background: #4aa485 !important;
  color: #fff !important;
}

.wi-contact .wi-contact__header > svg {
  width: 28px;
  height: 28px;
}

.wi-contact .wi-contact__header strong {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff !important;
  font: 400 16px/1.3 Arial, "Noto Sans Georgian", sans-serif;
}

.wi-contact .wi-contact__minimize {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  padding: 0;
  border-radius: 3px;
  background: transparent !important;
  color: #fff !important;
  font-size: 25px;
  line-height: 1;
}

.wi-contact .wi-contact__minimize:hover {
  background: rgb(255 255 255 / 15%) !important;
  color: #fff !important;
}

.wi-contact .wi-contact__minimize svg {
  width: 17px;
  height: 17px;
}

.wi-contact .wi-contact__body {
  position: relative;
  flex: 1 1 260px;
  min-height: 50px;
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #f0ede7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' fill='none' stroke='%23d9d6ce' stroke-width='1.1' opacity='.55'%3E%3Cpath d='m12 13 7-3 7 3-3 8-8 1zM51 9l3 5 6 1-5 4 1 6-5-3-5 3 1-6-5-4 6-1zM97 12c-5-7-13 1-6 8l8 6 5-9c4-8-5-11-7-5zM121 43l5-5 6 6-5 5zM12 56c6-7 14-4 13 2-2 6-10 9-13 15-3-5-9-9-9-14 0-4 5-7 9-3zM49 51l12 6-7 12-12-7zM88 50l7-6 8 3 2 9-8 6-8-3zM120 80c10-5 16 7 9 12-8 5-15-4-9-12zM30 100l6-7 10 3-1 10-9 3zM65 95l3 5 6 1-5 4 1 6-5-3-5 3 1-6-5-4 6-1zM92 111l8-9 11 10-9 9zM12 130l5-5 5 5M48 135l8-8M123 128l7 5M74 32l4 3M30 34l-3 5M109 69l-4 3M77 76l-4 7M12 91l-5-2'/%3E%3C/svg%3E");
}

.wi-contact .wi-contact__bubble {
  position: relative;
  width: 240px;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px 5px;
  border-radius: 0 7px 7px 7px;
  background: #fff;
  color: #383838;
  box-shadow: 0 1px 1px rgb(0 0 0 / 10%);
  overflow-wrap: anywhere;
}

.wi-contact .wi-contact__bubble::before {
  position: absolute;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 9px solid #fff;
  border-left: 8px solid transparent;
  content: "";
}

.wi-contact .wi-contact__bubble p {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 18px;
}

.wi-contact .wi-contact__bubble time {
  display: block;
  margin: 0;
  padding: 0;
  color: #8b8b8b;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

.wi-contact .wi-contact__footer {
  position: relative;
  flex: 0 0 82px;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 20px 10px 22px;
  background: #f0ede7 !important;
}

.wi-contact .wi-contact__form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff !important;
}

.wi-contact .wi-contact__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 36px;
  margin-left: 7px;
  padding: 0;
  border-radius: 50% !important;
  background: transparent !important;
  color: #9d9d9d !important;
  font-size: 21px;
  line-height: 1;
}

.wi-contact .wi-contact__emoji svg {
  width: 21px;
  height: 21px;
}

.wi-contact .wi-contact__input {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #363636 !important;
  font: 13px/40px Arial, "Noto Sans Georgian", sans-serif;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.wi-contact .wi-contact__input::placeholder {
  color: #aaa;
  opacity: 1;
}

.wi-contact .wi-contact__input:focus-visible {
  outline-offset: -3px;
}

.wi-contact .wi-contact__send {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0 -1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50% !important;
  background: #4aa485 !important;
  color: #fff !important;
}

.wi-contact .wi-contact__send:hover {
  background: #3d9074 !important;
  color: #fff !important;
}

.wi-contact .wi-contact__send:disabled {
  background: #c6d7e3 !important;
  color: #fff !important;
  opacity: 1;
  cursor: default;
}

.wi-contact .wi-contact__send svg {
  width: 21px;
  height: 21px;
}

.wi-contact .wi-contact__emojis {
  position: absolute;
  z-index: 2;
  bottom: 69px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 206px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}

.wi-contact .wi-contact__emojis button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 4px;
  background: transparent !important;
  color: #303030 !important;
  font-size: 23px;
  line-height: 1;
}

.wi-contact .wi-contact__emojis button:hover {
  background: #f1f2f4 !important;
}

@keyframes wi-contact-pulse-icon {
  0% { border-radius: 50%; transform: scale(1); }
  100% { border-radius: 45%; transform: scale(1.1); }
}

@media (max-width: 480px) {
  .wi-contact {
    left: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  .wi-contact .wi-contact__panel {
    width: 320px;
    max-width: calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100vh - 96px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  }

  .wi-contact .wi-contact__input {
    font-size: 16px;
  }
}

@media (max-height: 400px) {
  .wi-contact .wi-contact__footer {
    flex-basis: 60px;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .wi-contact .wi-contact__body {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .wi-contact .wi-contact__emojis {
    bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #walkinto-contact-widget *,
  #walkinto-contact-widget *::before,
  #walkinto-contact-widget *::after {
    animation: none !important;
    transition: none !important;
  }
}
