.furia-page-translator {
  width: 100%;
  margin: 0 0 22px;
  font-family: Rajdhani, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.furia-page-translator--floating {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  width: min(420px, calc(100vw - 28px));
  margin: 0;
}

.fpt-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.fpt-box[data-theme="dark"] {
  border: 1px solid rgba(255, 210, 31, .22);
  background: linear-gradient(180deg, rgba(9, 20, 37, .94), rgba(5, 12, 24, .97));
  color: #e8f0ff;
}

.fpt-box[data-theme="light"] {
  border: 1px solid #d9e0ec;
  background: #fff;
  color: #172033;
}

.fpt-box__copy {
  min-width: 0;
}

.fpt-box__copy strong {
  display: block;
  color: inherit;
  font-family: Orbitron, Rajdhani, system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.fpt-box__copy span {
  display: block;
  margin-top: 4px;
  color: currentColor;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.42;
  opacity: .78;
}

.fpt-box__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.fpt-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 31, .34);
  background: rgba(255, 210, 31, .12);
  color: inherit;
  cursor: pointer;
  font: 900 .82rem/1 Orbitron, Rajdhani, system-ui, sans-serif;
  letter-spacing: .04em;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.fpt-box[data-theme="light"] .fpt-lang {
  background: #fff7d6;
  border-color: #f3bf16;
  color: #111827;
}

.fpt-lang:hover {
  transform: translateY(-1px);
  background: rgba(255, 210, 31, .22);
  border-color: rgba(255, 210, 31, .7);
}

.fpt-lang:focus-visible {
  outline: 3px solid rgba(255, 210, 31, .72);
  outline-offset: 3px;
}

.fpt-native {
  grid-column: 1 / -1;
  min-height: 34px;
  padding-top: 4px;
}

.fpt-native--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.fpt-native .goog-te-gadget {
  color: inherit;
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: .92rem;
}

.fpt-native select.goog-te-combo {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 31, .34);
  padding: 4px 8px;
}

.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
  max-width: 100vw;
}

@media (max-width: 720px) {
  .fpt-box {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .fpt-box__controls {
    justify-content: flex-start;
  }

  .furia-page-translator--floating {
    left: 14px;
    right: 14px;
    width: auto;
  }
}


/* FuriaPolska 1.0.1 — poprawka układu: pływający panel nie łamie tekstu po jednym słowie. */
.furia-page-translator--floating .fpt-box {
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
}

.furia-page-translator--floating .fpt-box__copy {
  max-width: 100%;
}

.furia-page-translator--floating .fpt-box__copy span {
  max-width: 34ch;
  font-size: .94rem;
  line-height: 1.48;
}

.furia-page-translator--floating .fpt-box__controls {
  justify-content: flex-start;
}

.furia-page-translator--floating .fpt-lang {
  min-width: 44px;
}

.fp-conan-bugs .furia-page-translator {
  margin: 18px 0 24px;
}

.fp-conan-bugs .fpt-box {
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

@media (min-width: 900px) {
  .fp-conan-bugs .furia-page-translator:not(.furia-page-translator--floating) .fpt-box {
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1fr);
    padding: 18px 20px;
  }

  .fp-conan-bugs .furia-page-translator:not(.furia-page-translator--floating) .fpt-box__controls {
    align-self: center;
  }
}
