/* Raj Collection language switcher: desktop segment + compact mobile menu */
.rcs-utility {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.rcs-utility__ticker {
  min-width: 0;
  overflow: hidden;
}

.rcs-lang-switcher {
  z-index: 18;
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
}

.rcs-lang-switcher--desktop {
  position: relative;
  margin-right: max(8px, env(safe-area-inset-right));
  padding: 3px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: #5c0f27;
  box-shadow: -16px 0 20px 7px var(--rcs-primary, #7d1432), 0 5px 14px rgba(27,5,12,.18);
}

.rcs-lang-switcher--desktop .rcs-lang-switcher__trigger {
  display: none;
}

.rcs-lang-switcher__options {
  display: grid;
  grid-template-columns: 48px 52px 46px;
  align-items: center;
  gap: 2px;
}

.rcs-lang-switcher__option {
  min-width: 0;
  min-height: 28px;
  padding: 3px 5px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.9);
  font: 700 10.5px/1 "Noto Sans Devanagari", "Inter", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rcs-lang-switcher__option[data-rcs-lang="en"] {
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
}

.rcs-lang-switcher__option:hover,
.rcs-lang-switcher__option:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.rcs-lang-switcher__option:focus-visible,
.rcs-lang-switcher__trigger:focus-visible {
  outline: 2px solid #d6a64c;
  outline-offset: 2px;
}

.rcs-lang-switcher__option.is-active {
  color: var(--rcs-primary, #6b1a2e);
  background: #fffaf2;
  box-shadow: 0 2px 8px rgba(34,6,14,.22);
}

.rcs-lang-switcher__option:active,
.rcs-lang-switcher__trigger:active {
  transform: scale(.95);
}

.rcs-lang-switcher--mobile {
  display: none;
}

html[data-rcs-lang="mr"] body,
html[data-rcs-lang="hi"] body {
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
}

html[data-rcs-lang="mr"] :is(h1,h2,h3,h4,h5,h6,.rcs-h1,.rcs-h2,.rcs-h3,.rcs-display,.rcs-btn),
html[data-rcs-lang="hi"] :is(h1,h2,h3,h4,h5,h6,.rcs-h1,.rcs-h2,.rcs-h3,.rcs-display,.rcs-btn) {
  font-family: "Noto Sans Devanagari", "Fraunces", serif;
  letter-spacing: normal;
}

html[data-rcs-lang="mr"] :is(button,input,select,textarea),
html[data-rcs-lang="hi"] :is(button,input,select,textarea) {
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
}

@media (max-width: 767px) {
  .rcs-utility {
    display: block;
  }

  .rcs-lang-switcher--desktop {
    display: none;
  }

  .rcs-header,
  .rcs-header__inner {
    overflow: visible !important;
  }

  .rcs-header__inner {
    position: relative;
  }

  .rcs-lang-switcher--mobile {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
    z-index: 40;
  }

  .rcs-lang-switcher__trigger {
    display: inline-flex;
    width: 60px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 8px;
    border: 0;
    border-radius: 0 0 0 15px;
    background: var(--rcs-primary, #6b1a2e);
    color: #fffaf2;
    box-shadow: -4px 6px 14px rgba(46,20,26,.16);
    font: 800 10.5px/1 "Noto Sans Devanagari", "Inter", sans-serif;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  .rcs-lang-switcher__trigger .ph-translate {
    font-size: 14px;
  }

  .rcs-lang-switcher__trigger .ph-caret-down {
    font-size: 9px;
    transition: transform .18s ease;
  }

  .rcs-lang-switcher--mobile.is-open .rcs-lang-switcher__trigger {
    background: #5c0f27;
    box-shadow: -5px 8px 20px rgba(46,20,26,.22);
  }

  .rcs-lang-switcher--mobile.is-open .ph-caret-down {
    transform: rotate(180deg);
  }

  .rcs-lang-switcher--mobile .rcs-lang-switcher__options {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 190px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(107,26,46,.13);
    border-radius: 16px;
    background: rgba(255,250,242,.98);
    box-shadow: 0 18px 42px rgba(31,12,18,.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }

  .rcs-lang-switcher--mobile.is-open .rcs-lang-switcher__options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .rcs-lang-switcher--mobile .rcs-lang-switcher__option {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 11px;
    color: #33252a;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-size: 14px;
    font-weight: 650;
  }

  .rcs-lang-switcher--mobile .rcs-lang-switcher__option[data-rcs-lang="en"] {
    font-size: 13px;
  }

  .rcs-lang-switcher--mobile .rcs-lang-switcher__option:hover,
  .rcs-lang-switcher--mobile .rcs-lang-switcher__option:focus-visible {
    color: var(--rcs-primary, #6b1a2e);
    background: #f8efe7;
  }

  .rcs-lang-switcher--mobile .rcs-lang-switcher__option.is-active {
    color: #fff;
    background: var(--rcs-primary, #6b1a2e);
    box-shadow: 0 5px 14px rgba(107,26,46,.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-lang-switcher__option,
  .rcs-lang-switcher__trigger,
  .rcs-lang-switcher__options {
    transition: none !important;
  }
}
