:root {
  --eco-wa-bg: #075e54;
  --eco-wa-bg-hover: #064b44;
  --eco-wa-fg: #fff;
  --eco-wa-fg-hover: #fff;
  --eco-wa-edge: clamp(14px, 2vw, 24px);
}

.eco-wa {
  --eco-wa-bottom-extra: 0px;
  position: fixed;
  bottom: calc(
    var(--eco-wa-edge) +
    var(--eco-wa-bottom-extra) +
    env(safe-area-inset-bottom, 0px)
  );
  z-index: 980;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  min-height: 56px;
  margin: 0;
  padding: 0 18px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background-color: var(--eco-wa-bg);
  box-shadow:
    0 8px 24px rgba(7, 94, 84, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.18);
  color: var(--eco-wa-fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.eco-wa--right {
  right: max(var(--eco-wa-edge), env(safe-area-inset-right, 0px));
  left: auto;
}

.eco-wa--left {
  right: auto;
  left: max(var(--eco-wa-edge), env(safe-area-inset-left, 0px));
}

.eco-wa__icon {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.eco-wa__label {
  display: inline-block;
}

.eco-wa:visited,
.eco-wa:hover,
.eco-wa:active {
  color: var(--eco-wa-fg);
  text-decoration: none;
}

.eco-wa:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #000;
}

.eco-wa--occluded {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .eco-wa:hover {
    background-color: var(--eco-wa-bg-hover);
    color: var(--eco-wa-fg-hover);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .eco-wa {
    transition:
      transform 180ms ease,
      background-color 180ms ease,
      opacity 180ms ease;
  }
}

@media (min-width: 768px) and (min-height: 481px) {
  .eco-wa--desktop-hidden {
    display: none;
  }
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 480px) {
  .eco-wa {
    width: 56px;
    padding: 0;
  }

  .eco-wa__label {
    display: none;
  }

  .eco-wa--mobile-hidden {
    display: none;
  }
}

@media print {
  .eco-wa {
    display: none;
  }
}

@media (forced-colors: active) {
  .eco-wa,
  .eco-wa:visited,
  .eco-wa:active {
    border: 2px solid ButtonText;
    background: ButtonFace;
    box-shadow: none;
    color: ButtonText;
  }

  .eco-wa:hover {
    background: Highlight;
    color: HighlightText;
  }

  .eco-wa:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }
}