/* Jet Sorting - Custom Select UI (Primary: #027F81) */
.jsf-custom-select {
  position: relative;
  width: 100%;
  max-width: 100%;
  direction: rtl;
  font-family: inherit;
}

.jsf-custom-select__native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  top: 0;
  right: 0;
}

.jsf-custom-select__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #000 !important;
  border-radius: 12px;
  background: #fff;
  color: #000 !important;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.jsf-custom-select__button:hover {
  border-color: rgba(2, 127, 129, 0.6);
  box-shadow: 0 10px 22px rgba(2,127,129,0.12);
  background-color: #fff;
}

.jsf-custom-select.is-open .jsf-custom-select__button {
  border-color: rgba(2, 127, 129, 0.8);
  box-shadow: 0 12px 26px rgba(2,127,129,0.16);
}

.jsf-custom-select__label {
  flex: 1;
  /* در RTL، می‌خوای متن سمت چپِ آیکن دیده بشه */
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.jsf-custom-select__icon {
  /* آیکن سمت راست */
  order: -1;               /* مهم: آیکن رو اول فلکس میاره => راست در RTL */
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
  flex: 0 0 auto;
}

.jsf-custom-select__icon svg path {
  fill: #027F81 !important;
}

.jsf-custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid rgba(2, 127, 129, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.10);
  padding: 6px;
  z-index: 9999;
  display: none;
}

.jsf-custom-select.is-open .jsf-custom-select__menu {
  display: block;
}

.jsf-custom-select__option {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #062f30;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease;
}

.jsf-custom-select__option:hover {
  background: rgba(2, 127, 129, 0.10);
}

.jsf-custom-select__option[aria-selected="true"] {
  background: rgba(2, 127, 129, 0.16);
  color: #027F81;
  font-weight: 700;
}
