/* Currency dropdown — matches login menu style */

.rewa-currency {
  position: relative;
}

.rewa-currency__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cfe3e6;
  background: #fff;
  color: #0e7490;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rewa-currency__btn i {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.rewa-currency__btn:hover,
.rewa-currency__btn[aria-expanded="true"],
.rewa-currency.is-open .rewa-currency__btn {
  background: #ecf6f8;
  border-color: #0e7490;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.12);
}

.rewa-currency__code {
  font-variant-numeric: tabular-nums;
}

.rewa-currency__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 240px;
  max-height: min(70vh, 360px);
  overflow: auto;
  background: #fff;
  border: 1px solid #eaf2f3;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 59, 68, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}

.rewa-currency.is-open .rewa-currency__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rewa-currency__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  text-align: start;
  color: #2f5a62;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.rewa-currency__item:hover,
.rewa-currency__item.is-active {
  background: #ecf6f8;
  color: #0e7490;
}

.rewa-currency__item-badge {
  width: 42px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #e6f4f6, #d5edf1);
  color: #0e7490;
}

.rewa-currency__item.is-active .rewa-currency__item-badge {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
}

.rewa-currency__item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}

.rewa-currency__item-title {
  font-weight: 700;
  font-size: 14px;
}

.rewa-currency__item-sub {
  font-size: 12px;
  color: #7a989e;
  font-weight: 500;
}

.rewa-currency__check {
  margin-inline-start: auto;
  color: #0e7490;
  font-size: 16px;
  opacity: 0;
}

.rewa-currency__item.is-active .rewa-currency__check {
  opacity: 1;
}

/* Drawer list */
.rewa-currency-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 4px 0 8px;
}

.rewa-currency-drawer__label {
  font-size: 12px;
  font-weight: 700;
  color: #7a989e;
  padding: 0 2px 2px;
}

.rewa-currency-drawer__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #eaf2f3;
  background: #fff;
  text-decoration: none;
  color: #2f5a62;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.rewa-currency-drawer__item:hover,
.rewa-currency-drawer__item.is-active {
  background: #ecf6f8;
  border-color: #cfe3e6;
  color: #0e7490;
}

.rewa-currency-drawer__code {
  font-weight: 800;
  min-width: 40px;
}
