/* Pure Blank Translate – Clean Language Switcher */
.pbt-switcher {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 99990;
}

/* Floating button */
.pbt-floating {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 99990;
}

.pbt-floating.left {
  right: auto;
  left: 20px;
}

.pbt-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pbt-lang-btn:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13, 148, 136, 0.45);
}

.pbt-lang-btn .flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}

.pbt-lang-btn .arrow {
  font-size: 10px;
  opacity: 0.8;
  margin-left: 2px;
}

/* Dropdown menu */
.pbt-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 200px;
  max-height: 340px;
  overflow-y: auto;
  display: none;
  border: 1px solid #e5e7eb;
  padding: 8px 0;
}

.pbt-floating.left .pbt-dropdown {
  right: auto;
  left: 0;
}

.pbt-dropdown.open {
  display: block;
  animation: pbtFadeIn 0.15s ease;
}

@keyframes pbtFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pbt-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  color: #1f2937;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.pbt-dropdown-item:hover {
  background: #f0fdfa;
  color: #0d9488;
}

.pbt-dropdown-item.active {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 600;
}

.pbt-dropdown-item .flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e5e7eb;
  flex-shrink: 0;
}

/* Inline (shortcode) style */
.pbt-inline {
  display: inline-block;
  position: relative;
}

.pbt-inline .pbt-lang-btn {
  background: transparent;
  color: #374151;
  box-shadow: none;
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  font-weight: 500;
}

.pbt-inline .pbt-lang-btn:hover {
  background: #f9fafb;
  border-color: #0d9488;
  color: #0d9488;
  transform: none;
  box-shadow: none;
}

.pbt-inline .pbt-dropdown {
  bottom: auto;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
}

/* Hide Google top bar if enabled */
body.pbt-hide-bar .goog-te-banner-frame {
  display: none !important;
}
body.pbt-hide-bar {
  top: 0 !important;
  position: static !important;
}
body.pbt-hide-bar .skiptranslate {
  display: none !important;
}

/* Clean Google select if visible */
.goog-te-gadget {
  font-family: inherit !important;
}
.goog-te-combo {
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid #e5e7eb !important;
}

/* Mobile */
@media (max-width: 480px) {
  .pbt-floating {
    bottom: 80px !important;
    right: 12px !important;
  }
  .pbt-floating.left {
    left: 12px !important;
  }
  .pbt-lang-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .pbt-dropdown {
    min-width: 180px;
  }
}

/* Extra hide Google bar + prevent layout shift */
body.pbt-hide-bar .goog-te-banner-frame.skiptranslate,
body.pbt-hide-bar .goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body.pbt-hide-bar {
  top: 0 !important;
  position: static !important;
  min-height: 100% !important;
}
.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}
.goog-te-gadget {
  display: none !important;
}
