.pidgeon-engagement-dock {
  position: fixed;
  right: clamp(14px, 2.2vw, 24px);
  bottom: clamp(14px, 2.2vw, 24px);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  color: #f8faf8;
  background: rgba(10, 18, 12, 0.82);
  border: 1px solid rgba(246, 178, 58, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.pidgeon-engagement-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
  color: #f8faf8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font: 800 0.78rem/1 Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.pidgeon-engagement-button:hover,
.pidgeon-engagement-button:focus-visible {
  background: rgba(246, 178, 58, 0.18);
  outline: 0;
}

.pidgeon-sound-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 14px;
}

.pidgeon-sound-bars span {
  display: block;
  width: 3px;
  height: 6px;
  background: #f6b23a;
  border-radius: 3px;
  opacity: 0.55;
}

.pidgeon-sound-bars span:nth-child(2) {
  height: 11px;
}

.pidgeon-sound-bars span:nth-child(3) {
  height: 8px;
}

.pidgeon-engagement-button[aria-pressed="true"] .pidgeon-sound-bars span {
  opacity: 1;
  animation: pidgeonSoundPulse 1.6s ease-in-out infinite;
}

.pidgeon-engagement-button[aria-pressed="true"] .pidgeon-sound-bars span:nth-child(2) {
  animation-delay: 0.18s;
}

.pidgeon-engagement-button[aria-pressed="true"] .pidgeon-sound-bars span:nth-child(3) {
  animation-delay: 0.34s;
}

.pidgeon-engagement-button.is-waiting {
  color: #fff7d6;
  border-color: rgba(246, 178, 58, 0.42);
}

.pidgeon-engagement-button.is-waiting .pidgeon-sound-bars span {
  opacity: 0.9;
}

.pidgeon-rating-panel {
  position: fixed;
  right: clamp(14px, 2.2vw, 24px);
  bottom: 78px;
  z-index: 1201;
  width: min(350px, calc(100vw - 28px));
  padding: 18px;
  color: #14211b;
  background: #fbfcfa;
  border: 1px solid rgba(15, 77, 53, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.pidgeon-rating-panel[hidden] {
  display: none;
}

.pidgeon-rating-panel h2 {
  margin: 0 0 8px;
  color: #0b2f26;
  font-size: 1.05rem;
  line-height: 1.2;
}

.pidgeon-rating-panel p {
  margin: 0 0 14px;
  color: #50625a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pidgeon-rating-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pidgeon-rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #8a6a18;
  background: #fff9e8;
  border: 1px solid #ead28a;
  border-radius: 6px;
  font-size: 1.16rem;
  cursor: pointer;
}

.pidgeon-rating-star.is-active {
  color: #fff;
  background: #0f4d35;
  border-color: #0f4d35;
}

.pidgeon-rating-panel textarea {
  width: 100%;
  min-height: 96px;
  padding: 11px 12px;
  color: #14211b;
  background: #fff;
  border: 1px solid #d8ded9;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.pidgeon-rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.pidgeon-rating-actions button,
.pidgeon-rating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  font: 800 0.82rem/1 Inter, Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.pidgeon-rating-send {
  color: #fff;
  background: #0f4d35;
  border: 1px solid #0f4d35;
}

.pidgeon-rating-close {
  color: #0f4d35;
  background: transparent;
  border: 1px solid rgba(15, 77, 53, 0.28);
}

.pidgeon-mail-status {
  margin-top: 10px;
  color: #50625a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ga-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 24px auto 18px;
  padding: 8px 11px;
  color: rgba(250, 250, 249, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  font: 700 0.72rem/1 Inter, Arial, Helvetica, sans-serif;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.ga-powered-by:hover,
.ga-powered-by:focus-visible {
  color: #fff;
  background: rgba(246, 178, 58, 0.1);
  border-color: rgba(246, 178, 58, 0.38);
  transform: translateY(-1px);
}

.ga-powered-by-text {
  color: rgba(250, 250, 249, 0.62);
  font-weight: 600;
}

.ga-powered-by-logo {
  display: block;
  width: 138px;
  height: auto;
  max-height: 38px;
  padding: 4px 7px;
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
}

body > .ga-powered-by {
  display: flex;
  margin: 28px auto 112px;
  color: #0b2f26;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 77, 53, 0.14);
  box-shadow: 0 14px 34px rgba(5, 26, 16, 0.12);
}

body > .ga-powered-by .ga-powered-by-text {
  color: rgba(11, 47, 38, 0.66);
}

.quote-page,
.policy-page {
  padding-bottom: 96px;
}

@keyframes pidgeonSoundPulse {
  0%,
  100% {
    transform: scaleY(0.65);
  }
  50% {
    transform: scaleY(1.2);
  }
}

@media (max-width: 560px) {
  .pidgeon-engagement-dock {
    right: 6px;
    bottom: max(5px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
    gap: 4px;
    padding: 4px;
    opacity: 0.9;
    background: rgba(10, 18, 12, 0.72);
    transform: scale(0.8);
    transform-origin: bottom right;
  }

  .pidgeon-engagement-dock:focus-within,
  .pidgeon-engagement-dock:hover {
    opacity: 1;
  }

  .pidgeon-engagement-button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .pidgeon-rating-panel {
    right: 12px;
    left: 12px;
    bottom: 66px;
    width: auto;
  }

  .ga-powered-by {
    gap: 6px;
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .ga-powered-by-logo {
    width: 112px;
    max-height: 34px;
  }

  body > .ga-powered-by {
    margin-bottom: 92px;
  }
}
