.qtpc-hidden,
#qtpc_google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}
body { top: 0 !important; }
.qtpc-switcher,
.qtpc-switcher * { box-sizing: border-box; }
.qtpc-switcher { position: relative; display: inline-block; font-family: inherit; z-index: 9998; }
.qtpc-current { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(17,24,39,.12); background: var(--qtpc-bg,#fff); color: var(--qtpc-text,#111827); border-radius: var(--qtpc-radius,999px); padding: 9px 13px; min-height: 38px; font-size: 14px; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px rgba(15,23,42,.10); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.qtpc-current:hover { transform: translateY(-1px); border-color: var(--qtpc-primary,#111827); box-shadow: 0 14px 34px rgba(15,23,42,.14); }
.qtpc-current:focus { outline: 2px solid color-mix(in srgb, var(--qtpc-primary,#111827), transparent 65%); outline-offset: 2px; }
.qtpc-caret { font-size: 12px; opacity: .7; }
.qtpc-menu { position: absolute; min-width: 205px; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 16px; border: 1px solid rgba(17,24,39,.10); background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.16); opacity: 0; pointer-events: none; transform: translateY(6px) scale(.98); transition: opacity .16s ease, transform .16s ease; max-height: 320px; overflow: auto; }
.qtpc-switcher.is-open .qtpc-menu { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.qtpc-item { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: #111827; text-align: left; padding: 10px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; }
.qtpc-item:hover,
.qtpc-item.is-active { background: rgba(17,24,39,.06); }
.qtpc-item small { margin-left: auto; color: #6b7280; font-size: 11px; text-transform: uppercase; }
.qtpc-flag,
.qtpc-current-flag { font-size: 18px; line-height: 1; }
.qtpc-style-minimal .qtpc-current { box-shadow: none; border-color: transparent; background: transparent; padding: 6px 8px; }
.qtpc-style-flag-text .qtpc-current { border-radius: 14px; }
.qtpc-style-dropdown .qtpc-current { border-radius: 10px; min-width: 170px; justify-content: space-between; }
.qtpc-floating { position: fixed; }
.qtpc-bottom-right { right: var(--qtpc-float-x,22px); bottom: var(--qtpc-float-y,22px); }
.qtpc-bottom-left { left: var(--qtpc-float-x,22px); bottom: var(--qtpc-float-y,22px); }
.qtpc-top-right { right: var(--qtpc-float-x,22px); top: var(--qtpc-float-y,42px); }
.qtpc-top-left { left: var(--qtpc-float-x,22px); top: var(--qtpc-float-y,42px); }
.qtpc-bottom-left .qtpc-menu,
.qtpc-top-left .qtpc-menu { left: 0; right: auto; }
.qtpc-bottom-right .qtpc-menu,
.qtpc-bottom-left .qtpc-menu { top: auto; bottom: calc(100% + 8px); }
.skiptranslate { display: none !important; }
html.translated-ltr body,
html.translated-rtl body { top: 0 !important; }
@media (max-width: 640px) {
  .qtpc-current { padding: 8px 11px; font-size: 13px; }
  .qtpc-menu { min-width: 190px; max-width: calc(100vw - 28px); }
}

/* v1.1 Premium styles */
.qtpc-no-shadow .qtpc-current { box-shadow: none !important; }
.qtpc-style-glass .qtpc-current { background: rgba(255,255,255,.72); color: var(--qtpc-text,#111827); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(15,23,42,.18); }
.qtpc-style-glass .qtpc-menu { background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.qtpc-style-compact .qtpc-current { min-height: 34px; padding: 7px 10px; gap: 6px; font-size: 13px; border-radius: 12px; }
.qtpc-style-compact .qtpc-current-name { max-width: 28px; overflow: hidden; text-transform: uppercase; }
.qtpc-style-compact .qtpc-menu { min-width: 180px; }
.qtpc-woo-switcher { margin: 10px 0 16px; display: flex; align-items: center; }
.qtpc-woo-cart-checkout { justify-content: flex-end; margin-bottom: 18px; }
.qtpc-woo-product { clear: both; }
@media (max-width: 640px) {
  .qtpc-mobile-compact.qtpc-floating .qtpc-current-name { display: none; }
  .qtpc-mobile-compact.qtpc-floating .qtpc-current { width: 46px; height: 46px; justify-content: center; border-radius: 50%; padding: 0; }
  .qtpc-mobile-compact.qtpc-floating .qtpc-caret { display: none; }
  .qtpc-woo-cart-checkout { justify-content: flex-start; }
}

/* v1.1.1: Native WordPress Menu switcher integration */
.qtpc-menu-item > a[href^="#qtpc-switcher"] { display: none !important; }
.qtpc-menu-switcher { display: inline-flex; vertical-align: middle; }
.qtpc-menu-switcher.qtpc-switcher { margin: 0; }
.qtpc-inline-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.qtpc-inline-item {
  border: 1px solid rgba(17, 24, 39, .12);
  background: var(--qtpc-bg, #fff);
  color: var(--qtpc-text, #111827);
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.qtpc-inline-flags .qtpc-inline-item { min-width: 32px; padding: 0 8px; font-size: 15px; }
.qtpc-inline-item:hover,
.qtpc-inline-item.is-active {
  border-color: var(--qtpc-primary, #2563eb);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}
.menu-item.qtpc-menu-item { display: flex; align-items: center; }
@media (max-width: 768px) {
  .qtpc-inline-switcher { flex-wrap: wrap; gap: 4px; }
  .qtpc-inline-item { height: 30px; min-width: 30px; padding: 0 8px; font-size: 11px; }
}


/* v1.1.2: menu hotfix + clearer current language flag */
.qtpc-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.qtpc-current-flag { display: inline-flex !important; align-items: center; justify-content: center; width: 1.25em; min-width: 1.25em; }
.qtpc-current-name { display: inline-flex; align-items: center; }
.qtpc-style-glass .qtpc-current { gap: 8px; }
.menu-item.qtpc-menu-item > .qtpc-switcher, .menu-item.qtpc-menu-item > .qtpc-inline-switcher { align-self: center; }

/* v1.2 Premium UX Edition */
.qtpc-switcher.notranslate,
.qtpc-inline-switcher.notranslate { unicode-bidi: isolate; }
.qtpc-style-luxury .qtpc-current { padding: 10px 16px; min-height: 42px; border: 1px solid rgba(17,24,39,.08); background: linear-gradient(135deg, var(--qtpc-bg,#fff), rgba(255,255,255,.86)); box-shadow: 0 16px 42px rgba(15,23,42,.13); letter-spacing: .01em; font-weight: 700; }
.qtpc-style-ecommerce .qtpc-current { min-height: 38px; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; background: var(--qtpc-bg,#fff); }
.qtpc-style-circle-flag .qtpc-current { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.qtpc-style-circle-flag .qtpc-current-name,
.qtpc-style-circle-flag .qtpc-caret { display: none; }
.qtpc-style-text-code .qtpc-current { background: transparent; border: 0; box-shadow: none; padding: 6px 8px; font-weight: 800; text-transform: uppercase; }
.qtpc-style-text-code .qtpc-current-flag { display: none !important; }
.qtpc-style-text-code .qtpc-current-name { max-width: 2.4em; overflow: hidden; }
.qtpc-style-soft-card .qtpc-current { border-radius: 18px; padding: 11px 15px; background: rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.qtpc-flag-circle .qtpc-current-flag,
.qtpc-flag-circle .qtpc-flag { width: 1.55em; height: 1.55em; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; background: rgba(15,23,42,.06); overflow: hidden; }
.qtpc-flag-square .qtpc-current-flag,
.qtpc-flag-square .qtpc-flag { width: 1.55em; height: 1.2em; border-radius: 4px; display: inline-flex !important; align-items: center; justify-content: center; background: rgba(15,23,42,.06); overflow: hidden; }
.qtpc-flag-size-small .qtpc-current-flag,
.qtpc-flag-size-small .qtpc-flag { font-size: 15px; }
.qtpc-flag-size-medium .qtpc-current-flag,
.qtpc-flag-size-medium .qtpc-flag { font-size: 18px; }
.qtpc-flag-size-large .qtpc-current-flag,
.qtpc-flag-size-large .qtpc-flag { font-size: 22px; }
.header-wrapper .qtpc-switcher,
.site-header .qtpc-switcher,
.main-header .qtpc-switcher,
.whb-header .qtpc-switcher,
.elementor-nav-menu .qtpc-switcher { line-height: 1; }
.header-wrapper .qtpc-current,
.site-header .qtpc-current,
.main-header .qtpc-current,
.whb-header .qtpc-current,
.elementor-nav-menu .qtpc-current { white-space: nowrap; }
.qtpc-menu-switcher .qtpc-menu { z-index: 99999; }
@media (max-width: 768px) {
  .qtpc-mobile-full-width .qtpc-menu { left: 0; right: auto; width: min(280px, calc(100vw - 28px)); }
  .menu-item.qtpc-menu-item { min-height: 44px; }
  .qtpc-menu-switcher.qtpc-switcher { width: auto; }
}
/* v1.2.1: translation-safe current label + radius presets */
.qtpc-current { border-radius: var(--qtpc-radius, 8px); }
.qtpc-current[data-current-flag]::before {
  content: attr(data-current-flag);
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  min-width: 1.25em;
  font-size: 18px;
  line-height: 1;
}
.qtpc-current-name[data-current-name] {
  font-size: 0 !important;
}
.qtpc-current-name[data-current-name]::before {
  content: attr(data-current-name);
  font-size: 14px;
  line-height: 1;
}
.qtpc-current-flag { display: none !important; }
.qtpc-switcher:not(.qtpc-label-translated) .qtpc-current::before { display: inline-flex; }
.qtpc-switcher:not(.qtpc-label-translated) .qtpc-current-name { display: inline-flex; }
.qtpc-current .qtpc-visually-hidden,
.qtpc-current-name.qtpc-visually-hidden { display: none !important; }
.qtpc-current-flag.qtpc-visually-hidden + .qtpc-current-name { margin-left: 0; }
.qtpc-radius-rectangle .qtpc-current { border-radius: 0 !important; }
.qtpc-radius-soft .qtpc-current { border-radius: 8px !important; }
.qtpc-radius-rounded .qtpc-current { border-radius: 16px !important; }
.qtpc-radius-pill .qtpc-current { border-radius: 999px !important; }
.qtpc-hide-flag .qtpc-current::before { display: none !important; }
.qtpc-hide-label .qtpc-current-name { display: none !important; }
.qtpc-show-flag:not(.qtpc-label-translated) .qtpc-current::before { display: inline-flex; }

/* v1.2.2: Smart Detect + Theme Isolation Edition */
.qtpc-isolated,
.qtpc-isolated * {
  box-sizing: border-box !important;
}
.qtpc-isolated {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: var(--qtpc-font-size, 14px) !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--qtpc-text, #111827) !important;
}
.qtpc-isolated button,
.qtpc-isolated a,
.qtpc-isolated span,
.qtpc-isolated small {
  font-family: inherit !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.qtpc-isolated button {
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  text-decoration: none !important;
}
.qtpc-isolated .qtpc-current {
  gap: var(--qtpc-item-gap, 10px) !important;
  font-size: var(--qtpc-font-size, 14px) !important;
  line-height: 1.2 !important;
  padding: calc(var(--qtpc-item-py, 12px) - 3px) var(--qtpc-item-px, 14px) !important;
  white-space: nowrap !important;
  min-height: 38px !important;
}
.qtpc-isolated .qtpc-menu {
  min-width: var(--qtpc-dropdown-width, 230px) !important;
  line-height: 1.2 !important;
}
.qtpc-isolated .qtpc-item {
  gap: var(--qtpc-item-gap, 10px) !important;
  padding: var(--qtpc-item-py, 12px) var(--qtpc-item-px, 14px) !important;
  min-height: 44px !important;
  font-size: var(--qtpc-font-size, 14px) !important;
  font-weight: 600 !important;
}
.qtpc-isolated .qtpc-item small {
  font-size: 11px !important;
  font-weight: 700 !important;
  opacity: .72 !important;
  margin-left: auto !important;
}
.qtpc-isolated .qtpc-current-name[data-current-name]::before {
  font-size: var(--qtpc-font-size, 14px) !important;
  font-weight: 700 !important;
}
.qtpc-isolated .qtpc-name,
.qtpc-isolated .qtpc-current-name {
  min-width: 0 !important;
}
.qtpc-isolated .qtpc-flag,
.qtpc-isolated .qtpc-current-flag,
.qtpc-isolated .qtpc-current[data-current-flag]::before {
  flex: 0 0 auto !important;
}
.qtpc-inline-switcher.qtpc-isolated {
  gap: calc(var(--qtpc-item-gap, 10px) - 4px) !important;
}
.qtpc-inline-switcher.qtpc-isolated .qtpc-inline-item {
  font-family: inherit !important;
  font-size: calc(var(--qtpc-font-size, 14px) - 2px) !important;
  line-height: 1 !important;
}

/* v1.2.3: independent mobile floating controls */
@media (max-width: 640px) {
  .qtpc-floating { z-index: 99999; }
  .qtpc-floating.qtpc-mobile-pos-bottom-right { right: var(--qtpc-mobile-float-x,14px); left: auto; bottom: var(--qtpc-mobile-float-y,14px); top: auto; }
  .qtpc-floating.qtpc-mobile-pos-bottom-left { left: var(--qtpc-mobile-float-x,14px); right: auto; bottom: var(--qtpc-mobile-float-y,14px); top: auto; }
  .qtpc-floating.qtpc-mobile-pos-top-right { right: var(--qtpc-mobile-float-x,14px); left: auto; top: var(--qtpc-mobile-float-y,14px); bottom: auto; }
  .qtpc-floating.qtpc-mobile-pos-top-left { left: var(--qtpc-mobile-float-x,14px); right: auto; top: var(--qtpc-mobile-float-y,14px); bottom: auto; }
  .qtpc-floating.qtpc-mobile-pos-bottom-left .qtpc-menu,
  .qtpc-floating.qtpc-mobile-pos-top-left .qtpc-menu { left: 0; right: auto; }
  .qtpc-floating.qtpc-mobile-pos-bottom-right .qtpc-menu,
  .qtpc-floating.qtpc-mobile-pos-bottom-left .qtpc-menu { top: auto; bottom: calc(100% + 8px); }
  .qtpc-floating.qtpc-mobile-pos-top-right .qtpc-menu,
  .qtpc-floating.qtpc-mobile-pos-top-left .qtpc-menu { top: calc(100% + 8px); bottom: auto; }
  .qtpc-mobile-style-full.qtpc-floating .qtpc-current { width: auto; height: auto; min-height: 40px; padding: 9px 13px; border-radius: var(--qtpc-radius,999px); }
  .qtpc-mobile-style-full.qtpc-floating .qtpc-current-name,
  .qtpc-mobile-style-full.qtpc-floating .qtpc-caret { display: inline-flex; }
  .qtpc-mobile-style-compact.qtpc-floating .qtpc-current-name { display: none; }
  .qtpc-mobile-style-compact.qtpc-floating .qtpc-current { width: 46px; height: 46px; justify-content: center; border-radius: 999px; padding: 0; }
  .qtpc-mobile-style-compact.qtpc-floating .qtpc-caret { display: none; }
  .qtpc-mobile-style-bottom-bar.qtpc-floating { left: 12px; right: 12px; bottom: var(--qtpc-mobile-float-y,12px); top: auto; width: auto; }
  .qtpc-mobile-style-bottom-bar.qtpc-floating .qtpc-current { width: 100%; justify-content: center; min-height: 46px; border-radius: 14px; }
  .qtpc-mobile-style-bottom-bar.qtpc-floating .qtpc-menu { left: 0; right: 0; width: 100%; min-width: 0; max-width: none; bottom: calc(100% + 8px); top: auto; }
}
