/* Rayehe Live Search 1.1.0 — scoped, RTL, Elementor/JetPopup safe. */
.rpls, .rpls * { box-sizing: border-box; }
.rpls {
  --rpls-accent: #FF4F6F;
  --rpls-radius: 20px;
  --rpls-text: #302a30;
  --rpls-muted: #827880;
  --rpls-border: #f2dce2;
  --rpls-soft: #fff1f4;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--rpls-border);
  border-radius: var(--rpls-radius);
  background: #fff;
  box-shadow: 0 20px 55px rgba(49, 24, 35, .09);
  color: var(--rpls-text);
  font-family: var(--e-global-typography-text-font-family, inherit);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
}
@supports (color: color-mix(in srgb, red, white)) {
  .rpls {
    --rpls-border: color-mix(in srgb, var(--rpls-accent) 22%, #fff);
    --rpls-soft: color-mix(in srgb, var(--rpls-accent) 8%, #fff);
  }
}
.rpls .rpls__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 4px 3px 15px;
  border-bottom: 1px solid var(--rpls-border);
}
.rpls .rpls__heading {
  margin: 0;
  color: var(--rpls-text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
  font-family: inherit;
}
.rpls .rpls__popup-close,
.rpls .rpls__clear {
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 1px solid var(--rpls-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  color: var(--rpls-text);
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}
.rpls .rpls__popup-close { display: none; width: 38px; height: 38px; }
:is(.jet-popup, .elementor-popup-modal) .rpls .rpls__popup-close { display: grid; }
.rpls .rpls__clear { width: 34px; height: 34px; background: var(--rpls-soft); }
.rpls .rpls__clear[hidden] { display: none; }
.rpls .rpls__popup-close svg, .rpls .rpls__clear svg { display: block; width: 17px; height: 17px; }
.rpls .rpls__popup-close:is(:hover, :focus-visible),
.rpls .rpls__clear:is(:hover, :focus-visible) { color: var(--rpls-accent); border-color: var(--rpls-accent); background: var(--rpls-soft); }
.rpls .rpls__field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  margin-top: 16px;
  padding: 0 15px;
  border: 1px solid var(--rpls-border);
  border-radius: min(var(--rpls-radius), 16px);
  background: #fff;
  box-shadow: 0 0 0 4px var(--rpls-soft);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rpls .rpls__field:focus-within { border-color: var(--rpls-accent); box-shadow: 0 0 0 4px var(--rpls-soft); }
.rpls .rpls__search-icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; color: var(--rpls-accent); }
/* Stronger than Elementor's generic input[type=search] rules. */
.rpls .rpls__field input.rpls__input[type="search"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--rpls-text);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: right;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
}
.rpls .rpls__field input.rpls__input:is(:focus, :active) { border: 0; outline: 0; box-shadow: none; background: transparent; }
.rpls .rpls__field input.rpls__input::placeholder { color: var(--rpls-muted); opacity: 1; }
.rpls .rpls__field input.rpls__input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.rpls .rpls__status {
  min-height: 23px;
  margin: 11px 4px 14px;
  color: var(--rpls-muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
  font-family: inherit;
}
.rpls .rpls__results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; min-width: 0; }
.rpls .rpls__results:empty { display: none; }
.rpls .rpls__group {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--rpls-border);
  border-radius: min(var(--rpls-radius), 17px);
  background: #fff;
}
.rpls .rpls__group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rpls-border); }
.rpls .rpls__group-head strong { color: var(--rpls-text); font-size: 14px; font-weight: 750; }
.rpls .rpls__group-head span { color: var(--rpls-muted); font-size: 11px; }
.rpls .rpls__list { display: grid; gap: 4px; margin-top: 9px; }
.rpls a.rpls__item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
  border-radius: min(var(--rpls-radius), 12px);
  background: transparent;
  box-shadow: none;
  color: var(--rpls-text);
  text-decoration: none;
  text-align: right;
  transition: background-color .18s ease;
}
.rpls a.rpls__item:is(:hover, :focus-visible) { background: var(--rpls-soft); color: var(--rpls-text); text-decoration: none; }
.rpls .rpls__media { display: grid; place-items: center; overflow: hidden; flex: 0 0 57px; width: 57px; height: 57px; border: 1px solid var(--rpls-border); border-radius: min(var(--rpls-radius), 11px); background: var(--rpls-soft); }
.rpls .rpls__media img { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: cover; }
.rpls .rpls__media.is-placeholder::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--rpls-border); border-radius: 50%; }
.rpls .rpls__copy { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; text-align: right; }
.rpls .rpls__kind { color: var(--rpls-accent); font-size: 10px; font-weight: 750; }
.rpls .rpls__item-title { display: block; overflow: hidden; max-width: 100%; color: var(--rpls-text); font-size: 13px; font-weight: 750; line-height: 1.8; white-space: nowrap; text-overflow: ellipsis; }
.rpls .rpls__meta { display: -webkit-box; overflow: hidden; max-width: 100%; color: var(--rpls-muted); font-size: 11px; line-height: 1.8; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.rpls .rpls__price { display: block; color: var(--rpls-accent); font-size: 12px; font-weight: 800; line-height: 1.8; }
.rpls .rpls__empty { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 65px; margin: 0; padding: 12px 8px; border: 1px dashed var(--rpls-border); border-radius: min(var(--rpls-radius), 10px); color: var(--rpls-muted); background: var(--rpls-soft); font-size: 12px; line-height: 1.9; text-align: center; overflow-wrap: anywhere; }
.rpls .rpls__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Popup only: correct the narrow Elementor column causing the half-width field.
   The selectors below never affect unrelated popups or site-wide Elementor layout. */
:is(.jet-popup, .elementor-popup-modal):has(.rpls) { z-index: 2147483000 !important; }
.jet-popup:has(.rpls) .jet-popup__inner {
  box-sizing: border-box;
  padding: 20px 16px !important;
}
.jet-popup:has(.rpls) .jet-popup__container {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: 0;
  margin: 0 auto;
}
.jet-popup:has(.rpls) .jet-popup__container-inner {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--rpls-popup-radius, 20px) !important;
  background: #fff !important;
}
.jet-popup:has(.rpls) .jet-popup__container-content { position: relative; z-index: 1; width: 100% !important; max-width: 100%; min-width: 0; }
/* Elementor popup alternative. */
.elementor-popup-modal:has(.rpls) .dialog-widget-content {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 40px) !important;
  border-radius: var(--rpls-popup-radius, 20px) !important;
  overflow: hidden;
}
.elementor-popup-modal:has(.rpls) .dialog-message { box-sizing: border-box; width: 100% !important; max-height: calc(100dvh - 40px) !important; padding: 0 !important; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
/* Repair only the Elementor ancestors containing the shortcode. */
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-section:has(.rpls),
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-container:has(.rpls),
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-widget:has(.rpls),
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-widget-wrap:has(.rpls),
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-widget-container:has(.rpls),
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .e-con:has(.rpls) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-column:has(.rpls) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  flex: 0 0 100% !important;
}
/* Hide only truly empty legacy Elementor columns beside the search widget. */
:is(.jet-popup, .elementor-popup-modal):has(.rpls) .elementor-section:has(.rpls) > .elementor-container > .elementor-column:not(:has(.elementor-widget, .e-con)) { display: none; }
:is(.jet-popup, .elementor-popup-modal) .rpls {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: var(--rpls-radius);
  box-shadow: none;
  background: #fff;
}
/* One close control only: the internal close button delegates to JetPopup/Elementor. */
.jet-popup:has(.rpls) .jet-popup__close-button,
.elementor-popup-modal:has(.rpls) .dialog-close-button,
.elementor-popup-modal:has(.rpls) .dialog-lightbox-close-button { display: none !important; }

@media (max-width: 680px) {
  .rpls, :is(.jet-popup, .elementor-popup-modal) .rpls { padding: 17px 15px; }
  .rpls .rpls__head { padding-bottom: 12px; }
  .rpls .rpls__results { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rpls .rpls__group { padding: 11px; }
  .rpls .rpls__field { min-height: 54px; padding-inline: 11px; gap: 9px; }
  .rpls .rpls__field input.rpls__input[type="search"] { height: 52px; font-size: 13px; }
  .rpls .rpls__media { flex-basis: 51px; width: 51px; height: 51px; }
  .jet-popup:has(.rpls) .jet-popup__inner { padding: 12px !important; }
  .jet-popup:has(.rpls) .jet-popup__container { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; }
  .jet-popup:has(.rpls) .jet-popup__container-inner { max-height: calc(100dvh - 24px) !important; }
  .elementor-popup-modal:has(.rpls) .dialog-widget-content,
  .elementor-popup-modal:has(.rpls) .dialog-message { max-height: calc(100dvh - 24px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rpls .rpls__field, .rpls a.rpls__item { transition: none; }
}
