/* Floating WhatsApp, contact menu, translate — flashusdtsoftware.shop */
.floating-tools {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
.floating-tools > * { pointer-events: auto; }

.float-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.translate-float,
.float-pill {
  border: 0;
  cursor: pointer;
  font-family: Outfit, system-ui, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.translate-float:hover,
.float-pill:hover { transform: translateY(-2px); }

.translate-float {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #1b1714;
  border: 1px solid rgba(27, 23, 20, 0.12);
}
.float-pill {
  min-height: 48px;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.float-pill-wa {
  background: #25d366;
  color: #06210f !important;
}
.float-pill-contact {
  background: #8a6a3d;
  color: #fff8f0;
}
.float-pill svg { flex: 0 0 auto; display: block; }

.float-contact { position: relative; }
.float-contact .contact-menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 230px;
  padding: 0.55rem;
  background: #141210;
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.float-contact.open .contact-menu-list { display: flex; }
.float-contact .contact-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #f7f3ec;
  text-decoration: none;
  font-size: 0.84rem;
}
.float-contact .contact-menu-list a:hover { background: rgba(196, 165, 116, 0.14); }
.float-contact .contact-menu-list small {
  display: block;
  color: rgba(247, 243, 236, 0.55);
  font-size: 0.7rem;
}

.translate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.45);
  z-index: 11980;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: auto;
}
.translate-backdrop.open { opacity: 1; visibility: visible; }

.translate-panel {
  position: fixed;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 11.5rem);
  right: max(1rem, env(safe-area-inset-right));
  width: min(320px, calc(100vw - 2rem));
  max-height: min(420px, 70vh);
  background: #121110;
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 12010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
  color: #f7f3ec;
  pointer-events: auto;
}
.translate-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.translate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
}
.translate-panel-head button {
  background: none;
  border: 0;
  color: rgba(247, 243, 236, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.translate-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.75rem;
  max-height: calc(min(420px, 70vh) - 3.25rem);
  overflow-y: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(196, 165, 116, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #f7f3ec;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
}
.lang-option:hover,
.lang-option.active { border-color: #c4a574; background: rgba(196, 165, 116, 0.12); }

.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 640px) {
  .float-pill { padding: 0 0.85rem; }
}
