/* Regional selector (Country / Currency / Language)
   - Desktop: lightweight anchored dropdown panel
   - Mobile: full-height slide-over
*/

.rs {
  display: flex;
  align-items: center;
}

.rs-triggers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--grey);
  font-weight: var(--s-bold);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.rs-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.rs-trigger:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

.rs-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}

.rs-flag[src=""] {
  display: none;
}

.rs-value {
  display: inline-flex;
  align-items: center;
  min-width: 22px;
}

.rs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1000002;
  opacity: 0;
  transition: opacity 160ms ease;
}

.rs-backdrop.is-open {
  opacity: 1;
}

.rs-panel {
  position: fixed;
  z-index: 1000003;
  width: 360px;
  max-width: calc(100vw - 20px);
  max-height: min(72vh, 560px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.rs-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.rs-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rs-panel-title {
  font-size: 14px;
  font-weight: var(--s-bold);
  color: var(--d-grey);
}

.rs-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--grey);
}

.rs-panel-close:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.rs-panel-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rs-search-icon {
  color: var(--grey);
  font-size: 14px;
}

.rs-search-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
}

.rs-search-input:focus {
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.rs-panel-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(min(72vh, 560px) - 112px);
}

.rs-loading {
  padding: 14px;
  color: var(--grey);
  font-size: 13px;
}

.rs-group {
  padding: 6px 0;
}

.rs-group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: var(--s-bold);
  color: var(--grey);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.rs-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rs-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.rs-item.is-active {
  background: rgba(0, 122, 255, 0.08);
}

.rs-item-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rs-item-label {
  color: var(--d-grey);
  font-size: 14px;
  font-weight: var(--r-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-item-meta {
  color: var(--grey);
  font-size: 12px;
  font-weight: var(--r-bold);
  white-space: nowrap;
}

.rs-item-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rs-item-check {
  color: var(--theme-color);
  font-size: 14px;
  display: none;
}

.rs-item.is-active .rs-item-check {
  display: inline-block;
}

/* Mobile slide-over */
@media (max-width: 768px) {
  body.rs-noscroll {
    overflow: hidden;
  }

  .rs-backdrop {
    background: rgba(0, 0, 0, 0.25);
  }

  .rs-panel {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(14px);
  }

  .rs-panel-body {
    max-height: calc(92vh - 112px);
  }

  .rs-item {
    padding: 14px 14px; /* touch-friendly */
  }
}

/* Hide Google Translate top bar + widget chrome (site-wide) */
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO.VIpgJd-ZVi9od-aZ2wEe-OiiCO-ti6hGc,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

.rs-gt {
  display: none !important;
}

