/* Tripgo Child — floating bottom bar for the language + currency switchers.
   White pill with the theme's primary accents; dropdown menus open UPWARD
   because the bar sits at the bottom. Logical properties keep RTL correct. */

.tgc-switcher-bar {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* Sits beside the parent theme's scroll-to-top button (#scrollUp:
     right 20px, ~44px wide, physically right-anchored in BOTH LTR and RTL
     — hence physical `right` here instead of a logical property). */
  right: 74px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

/* subtle theme accent along the pill */
.tgc-switcher-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--color-primary, #c94a30),
    var(--color-accent, #f48f00)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.tgc-switcher-bar__divider {
  width: 1px;
  height: 22px;
  background: #e4e6e8;
  flex: 0 0 auto;
}

/* Borderless compact toggles inside the bar */
.tgc-switcher-bar .tgc-switcher__toggle {
  border: none;
  padding: 8px 10px;
  border-radius: 999px;
}

.tgc-switcher-bar .tgc-switcher__toggle:hover,
.tgc-switcher-bar .tgc-switcher__toggle:focus-visible {
  background: rgba(201, 74, 48, 0.08);
  color: var(--color-primary, #c94a30);
}

.tgc-switcher-bar .tgc-switcher__toggle:focus-visible {
  outline: 2px solid var(--color-secondary, #007fad);
  outline-offset: 2px;
}

/* Menus open upward from the bottom bar */
.tgc-switcher-bar .tgc-switcher .tgc-switcher__menu {
  top: auto;
  bottom: calc(100% + 10px);
}

@media (max-width: 576px) {
  .tgc-switcher-bar {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 68px;
  }
}

@media print {
  .tgc-switcher-bar {
    display: none;
  }
}
