.ofwa {
  --ofwa-green: #25d366;
  --ofwa-dark: #075e54;
  position: fixed;
  z-index: 99999;
  bottom: var(--ofwa-bottom, 20px);
  font-family: Arial, sans-serif;
}

.ofwa--right { right: 20px; }
.ofwa--left { left: 20px; }
.ofwa[hidden] { display: none !important; }

.ofwa__button {
  position: relative;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ofwa-green);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ofwa__button:hover,
.ofwa__button:focus {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
}

.ofwa__button svg { width: 34px; height: 34px; }

.ofwa__tooltip {
  position: absolute;
  top: 50%;
  width: max-content;
  max-width: 220px;
  padding: 7px 11px;
  border-radius: 5px;
  color: #333;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transform: translateY(-50%);
  pointer-events: none;
}

.ofwa--right .ofwa__tooltip { right: 72px; }
.ofwa--left .ofwa__tooltip { left: 72px; }

.ofwa__panel {
  position: absolute;
  bottom: 74px;
  width: 310px;
  overflow: hidden;
  border-radius: 12px;
  background: #efeae2;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.ofwa--right .ofwa__panel { right: 0; }
.ofwa--left .ofwa__panel { left: 0; }
.ofwa--open .ofwa__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ofwa--open .ofwa__tooltip { display: none; }

.ofwa__header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  background: var(--ofwa-dark);
  font-size: 17px;
}

.ofwa__close {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ofwa__body { padding: 18px; }
.ofwa__message {
  margin-bottom: 15px;
  padding: 12px 14px;
  border-radius: 0 10px 10px 10px;
  color: #222;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.ofwa__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 22px;
  color: #fff;
  background: var(--ofwa-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ofwa__open:hover,
.ofwa__open:focus { color: #fff; background: #20bd5a; }

@media (max-width: 767px) {
  .ofwa--desktop { display: none !important; }
  .ofwa__panel { width: min(310px, calc(100vw - 40px)); }
  .ofwa__tooltip { display: none; }
}

@media (min-width: 768px) {
  .ofwa--mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ofwa__button,
  .ofwa__panel { transition: none; }
}
