/* RM Clean floating WhatsApp CTA — flat single-component version */
.rm-wa-cta {
  --rm-wa-circle: 54px;
  --rm-wa-expanded: 194px;
  --rm-wa-pill-height: 50px;
  --rm-wa-teal: #0f7f75;
  --rm-wa-green: #28c453;

  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(4px + env(safe-area-inset-bottom));
  width: var(--rm-wa-expanded);
  height: var(--rm-wa-circle);
  z-index: 9999;
  display: block;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: width 240ms cubic-bezier(.22,.8,.22,1), transform 160ms ease;
}

.rm-wa-cta:hover,
.rm-wa-cta:focus-visible {
  color: #fff;
  text-decoration: none;
}

.rm-wa-cta:focus-visible {
  outline: 2px solid rgba(15,127,117,.48);
  outline-offset: 4px;
  border-radius: 999px 12px 12px 999px;
}

.rm-wa-cta__pill {
  position: absolute;
  right: calc(var(--rm-wa-circle) / 2);
  top: 50%;
  width: calc(var(--rm-wa-expanded) - (var(--rm-wa-circle) / 2) + 4px);
  height: var(--rm-wa-pill-height);
  transform: translateY(-50%) scaleX(1);
  transform-origin: right center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  background: var(--rm-wa-teal);
  border-radius: 999px 12px 12px 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,.14);
  transition: transform 240ms cubic-bezier(.22,.8,.22,1), opacity 150ms ease;
}

.rm-wa-cta__label {
  display: block;
  width: 100%;
  text-align: center;
  padding-left: 18px;
  padding-right: calc((var(--rm-wa-circle) / 2) + 10px);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  transition: opacity 120ms ease;
}

.rm-wa-cta__circle {
  position: absolute;
  right: 0;
  top: 0;
  width: var(--rm-wa-circle);
  height: var(--rm-wa-circle);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rm-wa-teal);
  box-shadow: 0 3px 8px rgba(0,0,0,.14);
  z-index: 2;
}

.rm-wa-cta__circle img {
  width: calc(var(--rm-wa-circle) - 10px);
  height: calc(var(--rm-wa-circle) - 10px);
  display: block;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.rm-wa-cta.is-collapsed {
  width: var(--rm-wa-circle);
}

.rm-wa-cta.is-collapsed .rm-wa-cta__pill {
  transform: translateY(-50%) scaleX(0);
  opacity: 0;
}

.rm-wa-cta.is-collapsed .rm-wa-cta__label {
  opacity: 0;
}

@media (max-width: 390px) {
  .rm-wa-cta__label {
    font-size: 16px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .rm-wa-cta,
  .rm-wa-cta__pill,
  .rm-wa-cta__label {
    transition: none !important;
  }
}

/* Mobile portrait only: uniformly reduce the entire floating CTA by ~5px
   relative to the 54px circle. Landscape, tablet and desktop stay unchanged. */
@media (max-width: 600px) and (orientation: portrait) {
  .rm-wa-cta {
    transform: scale(0.9074);
    transform-origin: bottom right;
  }
}
