/* Match the SansanSports web control on desktop while preserving the compact mobile floater. */
.trp-floating-switcher {
  right: auto !important;
  left: 20px !important;
  bottom: 20px !important;
  --right: auto !important;
  --left: 20px !important;
  --bottom: 20px !important;
  --bg: #151515 !important;
  --bg-hover: #333333 !important;
  --text: #ffffff !important;
  --text-hover: #ffffff !important;
  --border: none !important;
  --border-radius: 2px !important;
  --flag-size: 32px !important;
  --flag-radius: 2px !important;
  --aspect-ratio: 4 / 3 !important;
  --font-size: 16px !important;
  --switcher-width: auto !important;
  --switcher-padding: 0 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

.trp-floating-switcher,
.trp-floating-switcher .trp-language-item {
  box-sizing: border-box;
}

.trp-floating-switcher .trp-language-item {
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text);
  font-family: "Reddit Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

.trp-floating-switcher .trp-language-item-name {
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

.trp-floating-switcher .trp-language-item__current {
  cursor: pointer;
}

.trp-floating-switcher .trp-language-item__current::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 6px solid currentColor;
}

/* EN has two markup variants: US remains the compact mobile flag, GB is desktop-only. */
.trp-floating-switcher .trp-flag-image.palma-flag-desktop {
  display: none !important;
}

@media (min-width: 768px) {
  .trp-floating-switcher .trp-flag-image.palma-flag-mobile {
    display: none !important;
  }

  .trp-floating-switcher .trp-flag-image.palma-flag-desktop {
    display: inline-block !important;
  }
}

.trp-floating-switcher.is-open {
  width: auto !important;
  min-width: 160px;
}

/* Mobile keeps the compact floater shape with a softer light-gray surface. */
@media (max-width: 767px) {
  .trp-floating-switcher {
    bottom: 44px !important;
    --bottom: 44px !important;
    --bg: #f3e5e6 !important;
    --bg-hover: #ecd9db !important;
    --text: #143852 !important;
    --text-hover: #1d2327 !important;
    --border: 1px solid rgba(122, 14, 19, 0.12) !important;
    --border-radius: 2px !important;
    --flag-size: 28px !important;
    --font-size: 15px !important;
    background-color: #f3e5e6 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  }

  .trp-floating-switcher .trp-language-item {
    justify-content: center;
    min-height: 40px;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.25;
  }

  .trp-floating-switcher .trp-language-item-name {
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
    display: none;
  }

  .trp-floating-switcher .trp-language-item__current::after {
    display: none !important;
  }

  .trp-floating-switcher:not(.is-open) {
    width: 40px !important;
    min-width: 40px;
    --switcher-width: 40px !important;
    --switcher-padding: 0 !important;
  }

  .trp-floating-switcher:not(.is-open) .trp-language-item__current {
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 0;
  }

  .trp-floating-switcher.is-open {
    width: 40px !important;
    min-width: 40px;
    --switcher-width: 40px !important;
    --switcher-padding: 6px 0 !important;
  }
}
