.gtpt-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-family: inherit;
}

.gtpt-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.gtpt-label {
  font-weight: 600;
}

.gtpt-label-carousel {
  font-weight: 600;
  position: relative;
  display: inline-block;
  min-width: 150px;
  height: 1.5em;
  overflow: hidden;
  vertical-align: middle;
}

.gtpt-label-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  white-space: nowrap;
}

.gtpt-label-item.active {
  opacity: 1;
}

.gtpt-select {
  min-width: 180px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
}

.gtpt-select:focus {
  outline: 2px solid #4c6fff;
  outline-offset: 1px;
}

.gtpt-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gtpt-flag {
  border: none;
  background: none;
  border-radius: 0;
  padding: 0.25rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gtpt-flag:focus,
.gtpt-flag:hover {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.2);
  outline: none;
}

.gtpt-flag-img {
  width: 24px;
  height: 16px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 2px;
}

.gtpt-flag-code {
  font-size: 0.8125rem;
  color: #333333;
}

.gtpt-current {
  font-size: 0.8125rem;
  color: #555555;
}

.gtpt-consent {
  background: #fffbf0;
  border: 1px solid #ffd54f;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  max-width: 480px;
  margin-top: 0.5rem;
}

.gtpt-consent-text {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #2b2b2b;
  line-height: 1.4;
}

.gtpt-consent-button {
  background: #2e7d32;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.gtpt-consent-button:focus,
.gtpt-consent-button:hover {
  background: #256428;
  outline: 2px solid #4c6fff;
  outline-offset: 2px;
}

.gtpt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prevent translation of module elements and icons */
.notranslate,
.gtpt-wrapper *,
[translate="no"] {
  translate: no !important;
}

/* Protect common icon fonts and special characters from translation */
i[class*="icon"],
i[class*="fa"],
i[class*="material"],
span[class*="icon"],
span[class*="fa"],
span[class*="material"],
.icon,
.fa,
.material-icons,
[class*="icon-"]:before,
[class*="fa-"]:before {
  translate: no !important;
}

/* Hide Google Translate bar and branding */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-logo-link {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 768px) {
  .gtpt-selector {
    flex-wrap: wrap;
  }
}
