/* ATR Street By City Israel - autocomplete dropdown */

.atr-sbci-autocomplete {
  position: fixed;
  z-index: 99999;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-height: 280px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: atr-sbci-fade-in 0.12s ease-out;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

@keyframes atr-sbci-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.atr-sbci-autocomplete::-webkit-scrollbar {
  width: 8px;
}

.atr-sbci-autocomplete::-webkit-scrollbar-track {
  background: transparent;
}

.atr-sbci-autocomplete::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 8px;
}

.atr-sbci-autocomplete li {
  padding: 9px 12px;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  color: #1f2937;
  text-align: start;
  list-style: none;
  transition: background-color 0.1s ease;
}

.atr-sbci-autocomplete li:hover,
.atr-sbci-autocomplete li.atr-sbci-active {
  background-color: #f3f4f6;
}

.atr-sbci-autocomplete li strong {
  font-weight: 700;
  color: #111827;
}

.atr-sbci-autocomplete li.atr-sbci-empty {
  color: #9ca3af;
  cursor: default;
  background-color: transparent;
}

/* RTL (Hebrew) - force right alignment and RTL flow inside the dropdown,
   even when a theme rule sets LTR somewhere up the tree. */
html[dir="rtl"] .atr-sbci-autocomplete,
body.rtl .atr-sbci-autocomplete {
  direction: rtl;
}

html[dir="rtl"] .atr-sbci-autocomplete li,
body.rtl .atr-sbci-autocomplete li {
  text-align: right;
}

/* ------------------------------------------------------------------
   Same look for select2 / selectWoo dropdowns (WooCommerce core and
   Checkout Field Editor for WooCommerce fields).
   ------------------------------------------------------------------ */

/* The closed control (the visible "input" box) */
.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 40px;
  height: auto;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Vertically center the selected text */
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  flex: 1;
  line-height: normal;
  padding: 0 12px;
  color: #1f2937;
}

/* Elementor checkout widget sets its own line-height - override it */
.elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 2 !important;
}

/* The arrow: full control height, comfortably inside the rounded corner */
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  position: absolute;
  top: 0;
  height: 100%;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  position: static;
  margin: 0;
  border-color: #6b7280 transparent transparent transparent;
  border-width: 5px 4px 0 4px;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #6b7280 transparent;
  border-width: 0 4px 5px 4px;
}

/* Keep the border and radius identical when the dropdown is open -
   select2 normally flattens the adjoining corners, which makes the
   border look like it "changes" as the panel opens. */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--single {
  border: 1px solid #9ca3af;
  border-radius: 8px;
}

.select2-container--default .select2-dropdown,
.select2-container--default.select2-container--open .select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: atr-sbci-fade-in 0.12s ease-out;
}

/* Detach the panel slightly from the control, like the plugin's own
   dropdown, so the rounded corners of both stay visible. */
.select2-dropdown--below {
  margin-top: 4px;
}

.select2-dropdown--above {
  margin-top: -4px;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 280px;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar {
  width: 8px;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-track {
  background: transparent;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 8px;
}

.select2-container--default .select2-results__option {
  padding: 9px 12px;
  margin: 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #1f2937;
  transition: background-color 0.1s ease;
}

/* selectWoo (WooCommerce) uses data-selected, plain select2 uses aria-selected.
   !important beats the blue highlight from select2/selectWoo stylesheets
   regardless of load order. */
.select2-container--default
  .select2-results__option--highlighted[aria-selected],
.select2-container--default
  .select2-results__option--highlighted[data-selected],
.select2-container--default .select2-results__option--highlighted {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
  background-color: #eef2f7 !important;
  color: #111827 !important;
  font-weight: 600;
}

/* The search box inside the dropdown */
.select2-container--default .select2-search--dropdown {
  padding: 8px 8px 2px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: #9ca3af;
}
