:root {
  --achei-contact-green: #08795d;
  --achei-contact-green-hover: #056148;
  --achei-contact-ink: #10233e;
  --achei-contact-paper: #f7f5f0;
}

.achei-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  font-family: Inter, Arial, sans-serif;
}

.achei-contact__toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: var(--achei-contact-green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(5, 25, 35, .25);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms cubic-bezier(.23, 1, .32, 1);
}

.achei-contact__toggle:hover,
.achei-contact__toggle:focus-visible {
  background: var(--achei-contact-green-hover);
  transform: translateY(-2px);
}

.achei-contact__toggle:active { transform: scale(.96); }

.achei-contact__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(272px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid rgba(214, 163, 71, .4);
  border-radius: 14px;
  background: var(--achei-contact-paper);
  box-shadow: 0 18px 44px rgba(5, 25, 35, .25);
  color: var(--achei-contact-ink);
}

.achei-contact__panel[hidden] { display: none; }
.achei-contact__panel p { margin: 0 0 12px; font-size: 14px; font-weight: 700; }

.achei-contact__action,
.achei-contact__briefing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.achei-contact__action { background: var(--achei-contact-green); color: #fff; }
.achei-contact__action:hover,
.achei-contact__action:focus-visible { background: var(--achei-contact-green-hover); color: #fff; }
.achei-contact__briefing { border: 1px solid rgba(16, 35, 62, .28); color: var(--achei-contact-ink); }
.achei-contact__briefing:hover,
.achei-contact__briefing:focus-visible { border-color: var(--achei-contact-green); color: var(--achei-contact-green-hover); }

/* O script marca apenas o contêiner fixo de widgets legados já existentes. */
.achei-contact--legacy {
  right: 16px !important;
  bottom: 16px !important;
  z-index: 9996 !important;
  width: auto !important;
  max-width: calc(100vw - 32px) !important;
  min-height: 0 !important;
  transform: none !important;
}

.achei-contact--legacy,
.achei-contact--legacy a,
a.achei-contact--legacy {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

.achei-contact--legacy a,
a.achei-contact--legacy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 22px rgba(5, 25, 35, .22) !important;
}

@media (max-width: 640px) {
  .achei-contact { right: 12px; bottom: 12px; }
  .achei-contact__toggle { width: 44px; height: 44px; font-size: 20px; }
  .achei-contact__panel { bottom: 54px; width: min(264px, calc(100vw - 24px)); }
  .achei-contact--legacy { right: 12px !important; bottom: 12px !important; max-width: calc(100vw - 24px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .achei-contact__toggle { transition: none; }
}
