.avj-oc,
.avj-oc * {
  box-sizing: border-box;
}

.avj-oc[hidden] {
  display: none !important;
}

.avj-oc {
  --avj-oc-size: 44px;
  --avj-oc-trigger-size: 46px;
  position: fixed;
  right: 16px;
  bottom: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: auto;
  display: block;
  width: 620px;
  max-width: calc(100vw - 32px);
  height: 56px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: none;
  z-index: 10000;
}

.avj-oc__row {
  position: relative;
  display: grid;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0;
  align-items: center;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  isolation: isolate;
  overflow: visible;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}

.avj-oc__action,
.avj-oc__trigger-slot {
  position: relative;
  display: flex;
  height: 54px;
  min-width: 0;
  grid-row: 1;
  align-items: center;
  justify-content: center;
}

.avj-oc__action {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff !important;
  background: transparent !important;
  font: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--avj-oc-shift)) scale(0.56);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 180ms ease,
    transform 230ms cubic-bezier(0.55, 0, 0.3, 1),
    visibility 0s linear 230ms;
}

.avj-oc.is-open .avj-oc__action {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  transition:
    opacity 180ms ease var(--avj-oc-delay),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1) var(--avj-oc-delay),
    visibility 0s linear 0s;
}

.avj-oc__action[data-channel="whatsapp"] { --avj-oc-shift: 700%; --avj-oc-delay: 0ms; grid-column: 1; }
.avj-oc__action[data-channel="telegram"] { --avj-oc-shift: 600%; --avj-oc-delay: 22ms; grid-column: 2; }
.avj-oc__action[data-channel="instagram"] { --avj-oc-shift: 500%; --avj-oc-delay: 44ms; grid-column: 3; }
.avj-oc__action[data-channel="messenger"] { --avj-oc-shift: 400%; --avj-oc-delay: 66ms; grid-column: 4; }
.avj-oc__action[data-channel="tiktok"] { --avj-oc-shift: 300%; --avj-oc-delay: 88ms; grid-column: 5; }
.avj-oc__action[data-channel="email"] { --avj-oc-shift: 200%; --avj-oc-delay: 110ms; grid-column: 6; }
.avj-oc__action[data-channel="phone"] { --avj-oc-shift: 100%; --avj-oc-delay: 132ms; grid-column: 7; }

.avj-oc__circle {
  display: inline-flex;
  width: var(--avj-oc-size);
  height: var(--avj-oc-size);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 24%);
  transition: filter 150ms ease, transform 150ms ease;
}

.avj-oc__action:is(:hover, :focus-visible) .avj-oc__circle {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.05);
}

.avj-oc__action:active .avj-oc__circle,
.avj-oc__trigger:active {
  transform: scale(0.94);
}

.avj-oc__action:focus .avj-oc__circle,
.avj-oc__trigger:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #070707, 0 5px 15px rgb(0 0 0 / 34%);
}

@supports selector(:focus-visible) {
  .avj-oc__action:focus:not(:focus-visible) .avj-oc__circle,
  .avj-oc__trigger:focus:not(:focus-visible) {
    outline: none;
  }

  .avj-oc__action:focus:not(:focus-visible) .avj-oc__circle {
    box-shadow: 0 4px 12px rgb(0 0 0 / 24%);
  }

  .avj-oc__trigger:focus:not(:focus-visible) {
    box-shadow: 0 5px 15px rgb(0 0 0 / 34%);
  }
}

.avj-oc__icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
  pointer-events: none;
}

.avj-oc__circle--whatsapp { background: #25d366; }
.avj-oc__circle--telegram { background: #229ed9; }
.avj-oc__circle--instagram { background: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcaf45); }
.avj-oc__circle--messenger { background: linear-gradient(135deg, #00b2ff, #a033ff 55%, #ff4f8b); }
.avj-oc__circle--tiktok { background: #050505; }
.avj-oc__circle--email { background: #303238; }
.avj-oc__circle--phone { color: #070707; background: #ffb300; }

.avj-oc__trigger-slot {
  grid-column: 8;
  pointer-events: none;
  z-index: 2;
}

.avj-oc__trigger {
  position: relative;
  display: inline-flex;
  width: var(--avj-oc-trigger-size);
  height: var(--avj-oc-trigger-size);
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  color: #fff;
  background: #070707;
  font: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgb(0 0 0 / 34%);
  pointer-events: auto;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.avj-oc__icon--headset {
  width: 22px;
  height: 22px;
}

.avj-oc__badge {
  position: absolute;
  right: 4px;
  bottom: 5px;
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: #070707;
  pointer-events: none;
}

.avj-oc__icon--comment {
  width: 10px;
  height: 10px;
}

.avj-oc__action::after {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgb(7 7 7 / 92%);
  content: attr(data-label);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .avj-oc.is-open .avj-oc__action:is(:hover, :focus-visible)::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Keep the first-visit cookie notice away from the channels launcher. */
@media screen and (min-width: 601px) {
  #cookiePopup.cookie-popup {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media screen and (max-width: 48em) {
  .avj-oc {
    --avj-oc-size: 38px;
    --avj-oc-trigger-size: 40px;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 48px;
    padding: 0 5px;
  }

  .avj-oc__row { height: 48px; }
  .avj-oc__action,
  .avj-oc__trigger-slot { height: 46px; }
  .avj-oc__icon { width: 18px; height: 18px; }
  .avj-oc__icon--headset { width: 19px; height: 19px; }
}

@media screen and (max-width: 390px) {
  .avj-oc {
    --avj-oc-size: 34px;
    --avj-oc-trigger-size: 36px;
  }

  .avj-oc__icon { width: 16px; height: 16px; }
  .avj-oc__icon--headset { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .avj-oc__action,
  .avj-oc.is-open .avj-oc__action,
  .avj-oc__circle,
  .avj-oc__trigger {
    transition: none !important;
  }
}
