.cer-wa {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px));
  z-index: 9990;
  pointer-events: none;
  font-family: inherit;
}

.cer-wa__trigger,
.cer-wa__panel {
  pointer-events: auto;
}

.cer-wa__trigger {
  display: grid;
  width: 56px;
  height: 56px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #168b4f;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 29, 22, .24);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cer-wa__trigger:hover {
  background: #117542;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 29, 22, .3);
}

.cer-wa__trigger svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.cer-wa__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid rgba(20, 31, 46, .12);
  border-radius: 18px;
  background: #fff;
  color: #141f2e;
  box-shadow: 0 18px 48px rgba(10, 29, 22, .2);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .18s ease;
}

.cer-wa__panel[hidden] {
  display: none;
}

.cer-wa__panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cer-wa__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #435064;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cer-wa__close:hover {
  background: #eef3f0;
  color: #141f2e;
}

.cer-wa__eyebrow {
  display: block;
  margin: 0 48px 8px 0;
  color: #168b4f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cer-wa__panel h2 {
  margin: 0 42px 10px 0;
  color: #141f2e;
  font-size: clamp(20px, 4vw, 25px);
  line-height: 1.2;
}

.cer-wa__panel p {
  margin: 0 0 18px;
  color: #435064;
  font-size: 15px;
  line-height: 1.55;
}

.cer-wa__cta {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #168b4f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none !important;
}

.cer-wa__cta:hover {
  background: #117542;
}

.cer-wa__trigger:focus-visible,
.cer-wa__close:focus-visible,
.cer-wa__cta:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cer-wa {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
  }

  .cer-wa__panel {
    width: min(358px, calc(100vw - 32px));
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cer-wa__trigger,
  .cer-wa__panel {
    scroll-behavior: auto;
    transition: none;
  }
}
