/* Easy Currency — Dropdown Popup Shortcode */
.easy-currency-popup-switcher {
  display: inline-block;
  position: relative;
  line-height: 1;
}
.easy-currency-popup-switcher .easy-currency-switcher-toggle {
  cursor: pointer;
  border: 1px solid #dcdfe6;
  display: inline-flex;
  align-items: center;
  min-width: 130px;
  height: 40px;
  background: #ffffff;
  border-radius: 4px;
  padding: 6px 14px;
  color: #181823;
  gap: 6px;
  font-size: 14px;
  line-height: 1;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.easy-currency-popup-switcher .easy-currency-switcher-toggle:hover,
.easy-currency-popup-switcher .easy-currency-switcher-toggle:focus {
  outline: none;
  border-color: #c4c8cf;
  box-shadow: 0 0 0 2px rgba(24, 24, 35, 0.05);
}
.easy-currency-popup-switcher .easy-currency-elements {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.easy-currency-popup-switcher .easy-currency-elements .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.easy-currency-popup-switcher .easy-country-code {
  font-weight: 600;
}
.easy-currency-popup-switcher .easy-country-symbol,
.easy-currency-popup-switcher .easy-country-name {
  color: #5b6271;
}

/* Modal */
.easy-currency-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.easy-currency-popup-modal.is-open {
  display: flex;
}
.easy-currency-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.easy-currency-popup-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  width: 90%;
  max-width: 460px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: eccwPopupIn 0.18s ease-out;
}
@keyframes eccwPopupIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.easy-currency-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ececec;
}
.easy-currency-popup-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #181823;
}
.easy-currency-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  color: #5b6271;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  user-select: none;
  transition: background .15s ease, color .15s ease;
}
.easy-currency-popup-close:hover,
.easy-currency-popup-close:focus {
  background: #f4f5f7;
  color: #181823;
  outline: none;
}
.easy-currency-popup-search {
  padding: 12px 20px 0;
}
.easy-currency-popup-modal .easy-currency-popup-search-input,
.easy-currency-popup-modal input.easy-currency-popup-search-input[type="text"] {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  background: #ffffff !important;
  color: #181823 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
.easy-currency-popup-modal .easy-currency-popup-search-input:hover,
.easy-currency-popup-modal input.easy-currency-popup-search-input[type="text"]:hover {
  border-color: #c4c8cf !important;
  box-shadow: none !important;
}
.easy-currency-popup-modal .easy-currency-popup-search-input:focus,
.easy-currency-popup-modal .easy-currency-popup-search-input:focus-visible,
.easy-currency-popup-modal input.easy-currency-popup-search-input[type="text"]:focus,
.easy-currency-popup-modal input.easy-currency-popup-search-input[type="text"]:focus-visible {
  border-color: #181823 !important;
  box-shadow: none !important;
  outline: none !important;
}
.easy-currency-popup-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.easy-currency-popup-list {
  list-style: none;
  margin: 12px 0 0 !important;
  padding: 0 8px 12px;
  overflow-y: auto;
  flex: 1;
}
.easy-currency-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s ease;
  font-size: 14px;
  color: #181823;
}
.easy-currency-popup-item:hover,
.easy-currency-popup-item:focus {
  background: #f4f5f7;
  outline: none;
}
.easy-currency-popup-item.selected {
  background: #181823;
  color: #ffffff;
}
.easy-currency-popup-item.selected .eccw-popup-name,
.easy-currency-popup-item.selected .eccw-popup-symbol {
  color: rgba(255, 255, 255, 0.85);
}
.easy-currency-popup-item .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.easy-currency-popup-item .eccw-popup-code {
  font-weight: 600;
  min-width: 42px;
}
.easy-currency-popup-item .eccw-popup-name {
  color: #5b6271;
  flex: 1;
}
.easy-currency-popup-item .eccw-popup-symbol {
  color: #5b6271;
}
.easy-currency-popup-item.is-hidden { display: none; }
.easy-currency-popup-empty {
  padding: 14px 16px;
  text-align: center;
  color: #5b6271;
  font-size: 14px;
}

body.easy-currency-popup-open { overflow: hidden; }
