/* Currency switcher — premium header dropdown */

.hdr-top__contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.mt-currency {
  position: relative;
  flex-shrink: 0;
  width: max-content;
  z-index: 340;
}

.mt-currency__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  width: max-content;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Top bar switcher — flag + code only, tight pill */
.mt-currency--top .mt-currency__trigger {
  padding: 4px 7px 4px 6px;
  gap: 3px;
}

.mt-currency--top .mt-currency__flag {
  font-size: 14px;
}

.mt-currency--top .mt-currency__code {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.mt-currency--top .mt-currency__chev {
  font-size: 11px;
  margin-left: 1px;
}

.mt-currency__trigger:hover,
.mt-currency.is-open .mt-currency__trigger {
  border-color: rgba(20, 94, 94, 0.65);
  background: rgba(20, 94, 94, 0.22);
  box-shadow: 0 0 0 1px rgba(20, 94, 94, 0.25), 0 8px 24px rgba(20, 94, 94, 0.18);
}

.mt-currency--main .mt-currency__trigger {
  color: var(--dark, #0f2e2e);
  border-color: rgba(15, 46, 46, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 8px;
  gap: 4px;
  min-width: 0;
}

.mt-currency--main .mt-currency__trigger:hover,
.mt-currency--main.is-open .mt-currency__trigger {
  border-color: rgba(20, 94, 94, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(20, 94, 94, 0.15), 0 8px 22px rgba(20, 94, 94, 0.12);
}

.mt-currency__flag {
  font-size: 16px;
  line-height: 1;
}

.mt-currency__chev {
  font-size: 14px;
  opacity: 0.8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mt-currency.is-open .mt-currency__chev {
  transform: rotate(180deg);
}

.mt-currency__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 104px;
  max-width: min(148px, calc(100vw - 24px));
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(20, 94, 94, 0.4);
  background: #0d1f1f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
}

.mt-currency.is-open .mt-currency__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mt-currency__option {
  display: grid;
  grid-template-columns: 18px max-content 12px;
  align-items: center;
  column-gap: 6px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mt-currency__option--divider {
  margin-bottom: 2px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.mt-currency__option:hover,
.mt-currency__option:focus-visible {
  background: rgba(93, 255, 176, 0.14);
  color: #fff;
  outline: none;
}

.mt-currency__option.is-selected {
  border-left-color: #5dffb0;
  background: rgba(93, 255, 176, 0.18);
  color: #fff;
}

.mt-currency__option-flag {
  font-size: 18px;
  line-height: 1;
}

.mt-currency__option-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
}

.mt-currency__check {
  font-size: 13px;
  color: #5dffb0;
  opacity: 0;
  justify-self: end;
}

.mt-currency__option.is-selected .mt-currency__option-code {
  color: #fff;
}

.mt-currency__option.is-selected .mt-currency__check {
  opacity: 1;
}

@media (min-width: 769px) {
  .mt-currency--main {
    display: none;
  }
}

@media (max-width: 768px) {
  .mt-currency--top {
    display: none;
  }

  .mt-currency--main .mt-currency__code {
    display: none;
  }

  .mt-currency--main .mt-currency__trigger {
    padding: 7px 9px;
    gap: 4px;
  }
}

@media (prefers-color-scheme: dark) {
  .mt-currency--main .mt-currency__trigger {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
  }

  .mt-currency--main .mt-currency__trigger:hover,
  .mt-currency--main.is-open .mt-currency__trigger {
    color: #fff;
    border-color: rgba(93, 255, 176, 0.5);
    background: rgba(20, 94, 94, 0.42);
    box-shadow: 0 0 0 1px rgba(93, 255, 176, 0.22), 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .mt-currency--main .mt-currency__chev {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
  }

  .mt-currency__panel {
    border-color: rgba(93, 255, 176, 0.28);
    background: #081616;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(93, 255, 176, 0.12);
  }

  .mt-currency__option.is-selected .mt-currency__option-code {
    color: #fff;
  }
}
