.popco-translate-engine {
  height: 1px;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 1px;
}

.popco-translation-overlay {
  align-items: center;
  background: rgba(2, 14, 29, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 2147483000;
}

.popco-translation-card {
  align-items: center;
  background: #071b36;
  border: 1px solid #31506e;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  max-width: 390px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.popco-translation-card strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.popco-translation-card small {
  color: #b9c6d5;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1.5;
  margin-top: 8px;
}

.popco-translation-spinner {
  animation: popco-translation-spin 700ms linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #ffc31a;
  height: 34px;
  margin-bottom: 18px;
  width: 34px;
}

.popco-translation-overlay.is-error .popco-translation-spinner {
  animation: none;
  border-color: #ffc31a;
  border-width: 5px 0 0;
  border-radius: 2px;
  height: 5px;
  width: 38px;
}

.popco-translation-card button {
  background: #ffc31a;
  border: 0;
  border-radius: 8px;
  color: #071b36;
  cursor: pointer;
  font: 800 0.76rem/1 Inter, Arial, sans-serif;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 18px;
}

.popco-translation-credit {
  background: #071b36;
  border: 1px solid #31506e;
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  color: #dce5ee;
  font: 700 0.66rem/1.2 Inter, Arial, sans-serif;
  left: 50%;
  padding: 11px 16px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2147482999;
}

/* Prevent the external toolbar from moving the PopCollider layout. */
html,
body {
  top: 0 !important;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

@keyframes popco-translation-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .popco-translation-overlay {
    padding: 16px;
  }

  .popco-translation-card {
    border-radius: 15px;
    padding: 26px 20px;
  }

  .popco-translation-credit {
    bottom: 10px;
    max-width: calc(100% - 20px);
    white-space: normal;
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popco-translation-spinner {
    animation-duration: 1400ms;
  }
}

