/* INDIC RMC v327 — persistent visible select caret.
   Root-cause fix: higher-specificity longhands beat legacy `background:...!important`
   select rules without changing each field's own background-color. */
:root{
  --ir-select-caret-inset:22px;
  --ir-select-caret-half:6px;
  --ir-select-caret-pad:58px;
}

/* The three :not() terms deliberately give this final shared layer enough
   specificity to survive legacy page-specific !important background shorthands. */
html body select:not([multiple]):not(.ir-funds-mode-native):not([data-ir-no-caret]){
  -webkit-appearance:none!important;
  appearance:none!important;
  background-image:
    linear-gradient(45deg,transparent 48%,#ff6000 49%,#ff6000 70%,transparent 71%),
    linear-gradient(135deg,transparent 29%,#ff6000 30%,#ff6000 51%,transparent 52%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:var(--ir-select-caret-half) var(--ir-select-caret-half),var(--ir-select-caret-half) var(--ir-select-caret-half)!important;
  background-position:
    right calc(var(--ir-select-caret-inset) + var(--ir-select-caret-half) - 1px) center,
    right var(--ir-select-caret-inset) center!important;
  padding-right:var(--ir-select-caret-pad)!important;
}

/* Compact controls retain a visible caret without sacrificing usable label width. */
html body .lang-select:not([multiple]):not(.ir-funds-mode-native):not([data-ir-no-caret]),
html body .phone-combo select:not([multiple]):not(.ir-funds-mode-native):not([data-ir-no-caret]){
  --ir-select-caret-inset:13px;
  --ir-select-caret-half:5px;
  --ir-select-caret-pad:34px;
}

/* Intentionally hidden/non-user-facing native estimator mode selector. */
html body select.ir-funds-mode-native{
  background-image:none!important;
}

@media(max-width:620px){
  :root{
    --ir-select-caret-inset:18px;
    --ir-select-caret-half:5.5px;
    --ir-select-caret-pad:50px;
  }
  html body .lang-select:not([multiple]):not(.ir-funds-mode-native):not([data-ir-no-caret]),
  html body .phone-combo select:not([multiple]):not(.ir-funds-mode-native):not([data-ir-no-caret]){
    --ir-select-caret-inset:11px;
    --ir-select-caret-half:4.5px;
    --ir-select-caret-pad:30px;
  }
}
