/* TranslatePress-style floating language switcher — bottom LEFT */
.trp-floating-switcher {
  display: flex;
  flex-direction: column-reverse;
  position: fixed;
  z-index: 99999;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 1px 1px 0 0;
  background: rgba(1, 1, 250, 0.7);
  width: 120px;
  bottom: 0;
  left: 0;
  right: auto;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.trp-language-switcher-inner {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
}

.trp-switcher-dropdown-list {
  display: flex;
  flex-direction: column-reverse;
  overflow-y: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}

.trp-floating-switcher.open .trp-switcher-dropdown-list {
  max-height: 320px;
}

.trp-language-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  text-decoration: none;
  min-height: 19px;
  box-sizing: content-box;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.trp-language-item__current {
  color: #fff;
}

.trp-language-item-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  max-width: 78px;
}

.trp-language-item:hover .trp-language-item-name,
.trp-language-item:focus-visible .trp-language-item-name {
  color: #ebe1e1;
}

.trp-flag-image {
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  width: 18px;
  height: auto;
  display: inline-block;
  flex-shrink: 0;
}

/* Arabic RTL pages — keep language switcher on LEFT */
html[dir="rtl"] .trp-floating-switcher {
  left: 0;
  right: auto;
}

@media (max-width: 560px) {
  .trp-floating-switcher {
    left: 0;
    right: auto;
    width: 104px;
    bottom: 0;
  }

  html[dir="rtl"] .trp-floating-switcher {
    left: 0;
    right: auto;
  }
}

/* Chaty-style contact widget (matches sydneypesties.com.au) */
.chaty-widget {
  position: fixed;
  right: 1px;
  bottom: 77px;
  z-index: 99998;
  pointer-events: none;
}

.chaty-channel-list {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.chaty-channel {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 16px 24px 0 rgba(73, 104, 126, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 0;
}

.chaty-channel:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 28px 0 rgba(73, 104, 126, 0.22);
}

.chaty-channel svg {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
}

.chaty-channel__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.chaty-channel-wrap {
  position: relative;
}

.chaty-channel-wrap:hover .chaty-channel__tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 560px) {
  .chaty-widget {
    right: 4px;
    bottom: 70px;
  }
}
