/* ============================================================
   currency.css — Currency switcher styles
   ============================================================ */

#currency-switcher {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 202;
}

.currency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 50px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  font-family: inherit;
}
.currency-btn:hover { border-color: var(--accent); }

.currency-menu {
  display: none;
  position: absolute;
  bottom: 48px;
  right: 0;
  width: 280px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  overflow: hidden;
}
.currency-menu.open { display: flex; flex-direction: column; }

.currency-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg2);
}
.currency-search-wrap i { color: var(--text3); font-size: 14px; }
#currency-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
#currency-search::placeholder { color: var(--text3); }

.currency-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}
.currency-list::-webkit-scrollbar { width: 4px; }
.currency-list::-webkit-scrollbar-track { background: transparent; }
.currency-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.currency-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: .1s;
  font-family: inherit;
}
.currency-option:hover { background: var(--bg3); }
.currency-option.active {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.currency-option.active .cur-code { color: var(--accent); }

.cur-flag { font-size: 18px; line-height: 1; width: 24px; }
.cur-code { font-weight: 700; font-size: 13px; color: var(--text); width: 36px; flex-shrink: 0; }
.cur-name { font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.currency-footer {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Price element styling ── */
[data-usd] {
  cursor: help;
  transition: color .15s;
}

/* ── Inline page currency badge (top of services page etc.) ── */
.currency-inline-note {
  font-size: 11px;
  color: var(--text3);
  margin-left: 6px;
}

/* ── On mobile: make the menu open upward and full-width-ish ── */
@media (max-width: 480px) {
  .currency-menu { width: 260px; right: -10px; }
  #currency-switcher { right: 14px; bottom: 80px; }
}
