/* Bandina-style custom dropdown (select-filter look)
   Trigger: pink pill border + white bold text
   Menu: white rounded panel, pink hover/selected */

.ffw-select {
  position: relative;
  display: inline-block;
  min-width: 200px;
  font-family: inherit;
  vertical-align: middle;
}

.ffw-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ffw-select__button {
  cursor: pointer;
  background: transparent;
  padding: 1em 1.25em;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid var(--main-color, #ff0090);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
  font-size: inherit;
  font-family: inherit;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ffw-select__button:hover,
.ffw-select.active .ffw-select__button {
  box-shadow: 0 0 0 1px rgba(255, 0, 144, 0.35);
}

.ffw-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s all;
  background: #fff;
  padding: 6px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  z-index: 99;
  max-height: 220px;
  overflow-y: auto;
  color: #252525;
}

.ffw-select.active .ffw-select__list {
  opacity: 1;
  visibility: visible;
}

.ffw-select__search {
  display: none;
  width: 90%;
  margin: 0 5% 6px;
  padding: 6px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  font: inherit;
  color: #252525;
  background: #fff;
  box-sizing: border-box;
}

.ffw-select__search.is-visible {
  display: block;
}

.ffw-select__option {
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 2px;
  text-align: center;
  font-weight: 400;
  color: #252525;
}

.ffw-select__option:hover {
  background: var(--bg-button-active, #ff0090);
  color: #fff;
}

.ffw-select__option.is-selected {
  font-weight: 700;
  background: var(--bg-button-active, #ff0090);
  color: #fff;
}

.ffw-select__option.is-hidden {
  display: none;
}

/* Full-width variants (checkout / account / product variations) */
.ffw-select.ffw-select--block,
.variations .ffw-select,
.woocommerce-checkout .ffw-select,
.woocommerce-account .ffw-select,
.woocommerce-shipping-calculator .ffw-select {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Collection toolbar: no separate label chrome once custom select is on */
.collection-toolbar .ffw-select {
  min-width: 180px;
}

.collection-toolbar .woocommerce-ordering {
  margin: 0;
}

/* Fallback for unenhanced native selects (no-JS / skipped) — not checkout address/Select2 */
.ffw-theme select:not(.ffw-select__native):not([multiple]):not(.select2-hidden-accessible):not(.ff-vtp-province):not(.ff-vtp-ward):not(.country_to_state):not(.state_select):not(.country_select),
.collection-toolbar select:not(.ffw-select__native),
.ffw-single .variations select:not(.ffw-select__native),
.ffw-account select:not(.ffw-select__native):not(.select2-hidden-accessible),
.ffw-cart select:not(.ffw-select__native):not(.select2-hidden-accessible) {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--main-color, #ff0090);
  background-color: transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 1em 2.4em 1em 1.25em;
  font: inherit;
  min-width: 160px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
}

.ffw-account select:not(.ffw-select__native):not([multiple]),
.ffw-single .variations select:not(.ffw-select__native):not([multiple]) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ffw-account select:not(.ffw-select__native) option,
.collection-toolbar select:not(.ffw-select__native) option,
.ffw-single .variations select:not(.ffw-select__native) option {
  color: #252525;
  background: #fff;
}
