.gtp-switcher,
.gtp-switcher * { box-sizing: border-box; }
.gtp-switcher {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-family: inherit;
  line-height: 1;
  z-index: 99999;
  color: var(--gtp-text, #172937);
}
.gtp-switcher button.gtp-current,
.gtp-switcher button.gtp-option {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}
.gtp-floating { position: fixed; z-index: 99999; }
.gtp-switcher button.gtp-current {
  height: var(--gtp-btn, 40px);
  min-width: 48px;
  max-width: 100%;
  border: 1px solid var(--gtp-border, #e5e7eb);
  background: var(--gtp-bg, #fff);
  color: var(--gtp-text, #172937);
  border-radius: var(--gtp-radius, 10px);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.gtp-current-inner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gtp-arrow { font-size: 14px; opacity: .65; line-height: 1; }
.gtp-globe-icon { display: none; width: 22px; height: 22px; }
.gtp-switcher { --gtp-menu-w: calc(120px + var(--gtp-menu-scale, 5) * 18px); }
.gtp-switcher.gtp-theme-flags { --gtp-menu-w: calc(30px + var(--gtp-menu-scale, 5) * 6px); }
.gtp-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: var(--gtp-menu-w, 210px);
  min-width: 0;
  max-width: min(92vw, var(--gtp-menu-w, 210px));
  background: var(--gtp-bg, #fff);
  color: var(--gtp-text, #172937);
  border: 1px solid var(--gtp-border, #e5e7eb);
  border-radius: calc(var(--gtp-radius, 10px) + 4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  padding: 6px;
  max-height: min(360px, 70vh);
  overflow: auto;
}
.gtp-switcher.is-open .gtp-menu { display: block; }
.gtp-floating.gtp-pos-top-right .gtp-menu,
.gtp-floating.gtp-pos-bottom-right .gtp-menu { left: auto; right: 0; }
.gtp-floating.gtp-pos-bottom-left .gtp-menu,
.gtp-floating.gtp-pos-bottom-right .gtp-menu { top: auto; bottom: calc(100% + 8px); }
.gtp-switcher button.gtp-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
}
.gtp-theme-default .gtp-option:hover,
.gtp-theme-default .gtp-option.is-active { background: rgba(15, 23, 42, .06); }
.gtp-flag {
  width: var(--gtp-flag-w, 24px);
  height: var(--gtp-flag-h, 16px);
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  flex: 0 0 auto;
}
.gtp-label {
  font-size: var(--gtp-size, 16px);
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gtp-label:before { content: attr(data-name); }
.gtp-mode-icon .gtp-label { display: none; }
.gtp-mode-icon .gtp-current { padding: 4px 8px; min-width: 0; }
.gtp-mode-text .gtp-flag { display: none; }
.gtp-no-shadow .gtp-current,
.gtp-no-shadow .gtp-menu { box-shadow: none; }
.gtp-no-border .gtp-current,
.gtp-no-border .gtp-menu { border-color: transparent; }

.gtp-theme-modern button.gtp-current { border-radius: 14px; box-shadow: none; }
.gtp-theme-modern .gtp-menu { border-radius: 16px; padding: 8px; }
.gtp-theme-modern .gtp-option { border-radius: 10px; padding: 10px 12px; }
.gtp-theme-modern .gtp-option:hover,
.gtp-theme-modern .gtp-option.is-active { background: var(--gtp-accent-soft, rgba(59, 130, 246, .14)); color: var(--gtp-accent, #3b82f6); }

.gtp-theme-flags .gtp-label { display: none; }
.gtp-theme-flags .gtp-flag { display: block; }
.gtp-switcher.gtp-theme-flags button.gtp-current { padding: 5px 8px; min-width: 0; }
.gtp-theme-flags.is-open .gtp-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.gtp-theme-flags .gtp-option { width: auto; padding: 6px; }

.gtp-switcher.gtp-theme-globe .gtp-current-inner,
.gtp-switcher.gtp-theme-globe .gtp-arrow { display: none; }
.gtp-switcher.gtp-theme-globe .gtp-globe-icon { display: block; }
.gtp-switcher.gtp-theme-globe button.gtp-current {
  width: var(--gtp-btn, 46px);
  min-width: var(--gtp-btn, 46px);
  height: var(--gtp-btn, 46px);
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  color: #fff;
  background: var(--gtp-accent, #3b82f6);
  border-color: transparent;
}
.gtp-theme-globe .gtp-menu {
  padding: 8px;
  border-radius: 16px;
}
.gtp-theme-globe .gtp-menu .gtp-flag { display: none; }
.gtp-theme-globe .gtp-menu .gtp-label { display: inline; }
.gtp-theme-globe .gtp-option {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}
.gtp-theme-globe .gtp-option:hover,
.gtp-theme-globe .gtp-option.is-active {
  background: var(--gtp-accent-soft, rgba(59, 130, 246, .14));
  color: var(--gtp-accent, #3b82f6);
}

#gtp_google_hidden,
.goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.gtp-translate-busy { opacity: .985; }
.translated-rtl,
html[dir="rtl"] body { direction: rtl; }
.translated-rtl .gtp-switcher { direction: ltr; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
