/**
 * WooCommerce Multicurrency Display — switcher + Select2 + estimate note
 */

.wcmd-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  line-height: 1.2;
  color: #1a1a1a;
}

.wcmd-switcher__label {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #444;
}

.wcmd-switcher__select {
  min-width: 8rem;
}

/* Hide native select once Select2 is active (Select2 handles this, but keep tidy) */
.wcmd-switcher .select2-container {
  min-width: 8.25rem;
}

.wcmd-switcher .select2-container--default .select2-selection--single {
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
}

.wcmd-switcher .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px;
  padding-left: 10px;
  padding-right: 28px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
}

.wcmd-switcher .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
  right: 4px;
}

.wcmd-switcher .select2-container--default.select2-container--open .select2-selection--single,
.wcmd-switcher .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #222;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

/* Dropdown panel */
.wcmd-select2-dropdown.select2-dropdown,
.select2-container--open .wcmd-select2-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 99999;
}

.select2-container--default .select2-results__option {
  padding: 7px 12px;
  font-size: 13px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: #1a1a1a;
  color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}

.wcmd-switcher--locked {
  opacity: 0.85;
  pointer-events: none;
}

/* Estimate note under converted prices */
.wcmd-estimate-note {
  display: block;
  margin-top: 0.2em;
  font-size: 0.75em;
  line-height: 1.3;
  font-weight: 400;
  color: #666;
  max-width: 16em;
}

/* Banner for WooCommerce Block cart (React-rendered line items) */
.wcmd-cart-banner {
  display: block;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #444;
  background: #f6f6f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.widget_shopping_cart .wcmd-estimate-note,
.mini_cart_item .wcmd-estimate-note,
.woocommerce-mini-cart .wcmd-estimate-note {
  display: none;
}

.wcmd-has-estimate {
  min-height: 0;
}

@media (max-width: 600px) {
  .wcmd-switcher {
    top: auto;
    bottom: 12px;
    right: 12px;
    left: auto;
  }

  .wcmd-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}
