body.currency-modal-open {
  overflow: hidden;
}

.currency-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 112px;
  z-index: 150;
}

.currency-trigger {
  width: 100%;
  min-width: 112px;
  height: 52px;
  border: 1px solid rgba(255, 193, 25, .4);
  border-radius: 999px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--charcoal), var(--deep));
  color: var(--cream);
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(17, 16, 14, .28);
  transition: transform .22s ease, box-shadow .22s ease;
}

.currency-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(17, 16, 14, .34);
}

.currency-trigger-flag {
  font-size: 1.35rem;
  line-height: 1;
}

.currency-trigger i {
  font-size: .72rem;
  color: var(--flame);
  transition: transform .25s ease;
}

.currency-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.currency-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}

.currency-modal.open {
  visibility: visible;
  opacity: 1;
}

.currency-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(12, 7, 5, .68);
  backdrop-filter: blur(8px);
  cursor: default;
}

.currency-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(255, 193, 25, .26);
  border-radius: 34px;
  padding: 26px;
  background: linear-gradient(160deg, #fffaf3, #fff2df);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
  outline: none;
  transform: translateY(18px) scale(.97);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.currency-modal.open .currency-dialog {
  transform: none;
}

.currency-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.currency-kicker {
  display: block;
  color: var(--red);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

.currency-dialog h2 {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1.2;
  color: var(--charcoal);
}

.currency-dialog-head p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 5px;
}

.currency-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  transition: .2s ease;
}

.currency-close:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.currency-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.currency-list form {
  margin: 0;
}

.currency-option {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 11px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.currency-option:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 137, 47, .5);
  box-shadow: 0 12px 30px rgba(54, 27, 14, .09);
}

.currency-option.active {
  border-color: var(--flame);
  background: linear-gradient(135deg, #fff4d6, #ffe4c5);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 25, .25);
}

.currency-flag {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff8ef;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(34, 22, 14, .07);
}

.currency-name {
  display: grid;
  min-width: 0;
}

.currency-name strong {
  font-size: .91rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-name small {
  direction: ltr;
  width: max-content;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.currency-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--flame);
  font-size: .72rem;
}

.currency-arrow {
  color: #b19f90;
  font-size: .75rem;
}

.currency-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  margin-top: 18px;
}

.currency-note i {
  color: var(--gold);
}

@media (max-width: 560px) {
  .currency-switcher {
    right: 14px;
    bottom: 14px;
    width: 98px;
  }

  .currency-trigger {
    min-width: 98px;
    height: 48px;
    padding: 0 14px;
  }

  .currency-dialog {
    padding: 20px 16px;
    border-radius: 28px;
    max-height: calc(100vh - 24px);
  }

  .currency-modal {
    padding: 12px;
  }

  .currency-list {
    grid-template-columns: 1fr;
  }

  .currency-option {
    min-height: 68px;
  }

  .currency-flag {
    width: 44px;
    height: 44px;
  }

  .currency-dialog-head {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .currency-trigger,
  .currency-trigger i,
  .currency-modal,
  .currency-dialog,
  .currency-option {
    transition: none !important;
  }
}

/* Mobile currency button fix - 2026-08-15 */
@media (max-width: 560px) {
  .currency-switcher {
    right: 14px;
    bottom: 14px;
    width: 88px;
  }

  .currency-trigger {
    min-width: 88px;
    height: 44px;
    padding-inline: 11px;
    gap: 6px;
    font-size: 0.82rem;
  }

  .currency-trigger-flag {
    font-size: 1.05rem;
  }

  .currency-trigger i {
    font-size: 0.62rem;
  }

  [dir="ltr"] .currency-switcher {
    right: auto;
    left: 14px;
  }
}
