/**
 * Floating Call Hotline & Floating Language Switcher Styles — Web Techiq Official
 * Developed by MH Badhon Ahmed (Web Techiq)
 *
 * Language switching powered by GTranslate Plugin [gtranslate] shortcode.
 * The .wt-gtranslate-wrap block styles the native GTranslate widget output
 * to match the premium Web Techiq Official aesthetic.
 */

/* ── CONTAINER WRAPPERS (FIXED POSITIONING) ──────────────────────────── */
.wt-float-call-wrap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wt-float-lang-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── FLOATING BUTTON CIRCLES (SLEEK COMPACT SIZE) ─────────────────────── */
.wt-call-toggle-btn,
.wt-lang-toggle-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: 1.5px solid rgba(255, 230, 179, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.wt-call-toggle-btn {
  background: linear-gradient(135deg, var(--wt-primary-color, #ff6b00) 0%, #e60067 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.40), 0 0 0 0 rgba(255, 107, 0, 0.4);
  animation: pulseCallGlow 2.5s infinite;
}

.wt-call-toggle-btn:hover {
  transform: scale(1.12) rotate(-8deg);
  color: #ffffff;
  background: linear-gradient(135deg, #e05d00 0%, #c40055 100%);
  box-shadow: 0 10px 26px rgba(255, 107, 0, 0.55), 0 0 16px rgba(124, 58, 237, 0.35);
}

.wt-lang-toggle-btn {
  background: var(--lang-btn-bg, #0f172a);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35), 0 0 0 0 rgba(255, 184, 0, 0.3);
  animation: pulseLangGlow 3s infinite;
}

.wt-lang-toggle-btn:hover,
.wt-lang-toggle-btn.is-open {
  transform: scale(1.12) rotate(12deg);
  border-color: var(--wt-primary-color, #ff6b00);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
}

/* ── TOOLTIP BUBBLES ─────────────────────────────────────────────────── */
.wt-float-tooltip {
  position: absolute;
  bottom: 56px;
  background: #ffffff;
  border: 1.5px solid #ffe6b3;
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99992;
}

.wt-float-tooltip.tooltip-left {
  left: 0;
}

.wt-float-tooltip.tooltip-right {
  right: 0;
}

.wt-float-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1.5px solid #ffe6b3;
  border-bottom: 1.5px solid #ffe6b3;
  transform: rotate(45deg);
}

.wt-float-tooltip.tooltip-left::after {
  left: 22px;
}

.wt-float-tooltip.tooltip-right::after {
  right: 22px;
}

/* Tooltip show on hover or auto-pulse class */
.wt-float-call-wrap:hover .wt-float-tooltip,
.wt-float-lang-wrap:hover .wt-float-tooltip,
.wt-float-tooltip.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Hide tooltip when panel is open */
.wt-float-lang-wrap.has-panel-open .wt-float-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── EXPANDABLE LANGUAGE PANEL ────────────────────────────────────────── */
.wt-lang-panel {
  position: absolute;
  bottom: 58px;
  right: 0;
  width: 300px;
  background: #ffffff;
  border: 1.5px solid #ffe6b3;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15), 0 4px 14px rgba(255, 184, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99995;
  overflow: hidden;
}

.wt-lang-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wt-lang-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffdfa 0%, #fff3d6 100%);
  border-bottom: 1px solid #ffe6b3;
}

.wt-lang-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.wt-lang-panel-title i {
  color: var(--wt-primary-color, #ff6b00);
}

.wt-lang-panel-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.wt-lang-panel-close:hover {
  color: #0f172a;
}

.wt-lang-panel-body {
  padding: 14px;
  max-height: 380px;
  overflow-y: auto;
}

/* ── GTRANSLATE NATIVE WIDGET STYLES ──────────────────────────────────── */
/*
 * Styles the GTranslate plugin output rendered via do_shortcode('[gtranslate]').
 * GTranslate renders a <select> dropdown or flag icons depending on plugin settings.
 * We style both outputs to match the Web Techiq Official premium UI.
 */

/* Wrapper */
.wt-gtranslate-wrap {
  padding: 10px;
}

/* ── SELECT DROPDOWN MODE (GTranslate "Dropdown with Flags" style) ──── */
.wt-gtranslate-wrap .gt_selector,
.wt-gtranslate-wrap .goog-te-combo,
.wt-gtranslate-wrap select {
  width: 100% !important;
  padding: 11px 14px !important;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: auto !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.wt-gtranslate-wrap .gt_selector:focus,
.wt-gtranslate-wrap .goog-te-combo:focus,
.wt-gtranslate-wrap select:focus {
  border-color: var(--wt-primary-color, #ff6b00) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12) !important;
}

/* ── FLAG/LINK MODE (GTranslate "Globe with Flags" / "Flags" style) ──── */
.wt-gtranslate-wrap .gtranslate_wrapper,
.wt-gtranslate-wrap .gt-lang-code,
.wt-gtranslate-wrap .gt_link_list,
.wt-gtranslate-wrap .notranslate {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 4px 0 !important;
}

.wt-gtranslate-wrap a.gt_option,
.wt-gtranslate-wrap .gt_link_list a,
.wt-gtranslate-wrap a[data-gt-lang] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.wt-gtranslate-wrap a.gt_option:hover,
.wt-gtranslate-wrap .gt_link_list a:hover,
.wt-gtranslate-wrap a[data-gt-lang]:hover {
  background: #fff3d6 !important;
  border-color: #ffe6b3 !important;
  color: #d97706 !important;
  transform: translateX(2px) !important;
}

/* Flag images inside GTranslate links */
.wt-gtranslate-wrap img.flag,
.wt-gtranslate-wrap .gt_option img,
.wt-gtranslate-wrap a img {
  width: 20px !important;
  height: auto !important;
  border-radius: 3px !important;
  display: inline-block !important;
}

/* Hide GTranslate "Powered by" branding bar */
.wt-gtranslate-wrap .gt-current-lang,
.wt-gtranslate-wrap .goog-te-gadget-simple,
.wt-gtranslate-wrap .goog-logo-link,
.wt-gtranslate-wrap .goog-te-gadget span[style],
#goog-gt-votingFrame,
.wt-gtranslate-wrap .goog-te-banner-frame {
  display: none !important;
}

/* ── FALLBACK NOTICE (when GTranslate plugin is not installed) ───────── */
.wt-gtranslate-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fff3d6;
  border: 1px solid #ffe6b3;
  border-radius: 12px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}

.wt-gtranslate-notice i {
  color: #d97706;
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── ANIMATION KEYFRAMES ─────────────────────────────────────────────── */
@keyframes pulseCallGlow {
  0% {
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4), 0 0 0 0 rgba(255, 107, 0, 0.4);
  }
  70% {
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4), 0 0 0 16px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4), 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

@keyframes pulseLangGlow {
  0% {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 0 0 0 rgba(255, 184, 0, 0.3);
  }
  70% {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 0 0 14px rgba(255, 184, 0, 0);
  }
  100% {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 0 0 0 rgba(255, 184, 0, 0);
  }
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────────── */
@media (max-width: 639px) {
  .wt-float-call-wrap {
    left: 14px;
    bottom: 14px;
  }

  .wt-float-lang-wrap {
    right: 14px;
    bottom: 14px;
  }

  .wt-call-toggle-btn,
  .wt-lang-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .wt-float-tooltip {
    bottom: 48px;
  }

  .wt-lang-panel {
    width: 260px;
    bottom: 50px;
    right: 0;
  }

  .wt-lang-panel-body {
    max-height: 300px;
  }
}



