/* Display currency selector in the site header (never changes what is charged).
   Shared by the storefront header and the checkout header. */
.nv-currency {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 82px; /* holds the space before the script fills it, so the header does not jump */
  min-height: 38px;
}

.nv-currency__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid #E5E7EB;
  border-radius: 99px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nv-currency__trigger:hover { background: #F9FAFB; border-color: #D1D5DB; }
.nv-currency__trigger[aria-expanded="true"] { background: #EEF2FF; border-color: #C7D2FE; }
.nv-currency__trigger[aria-busy="true"] { opacity: .6; cursor: progress; }
.nv-currency__trigger:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }

.nv-currency__current { display: inline-flex; align-items: center; gap: inherit; }
.nv-currency__mark { display: inline-flex; align-items: center; color: #6B7280; font-weight: 500; }
.nv-currency__flag { display: block; width: 18px; height: 12px; border-radius: 2px; }
.nv-currency__chevron { display: block; width: 10px; height: 10px; color: #6B7280; transition: transform .2s; }
.nv-currency__trigger[aria-expanded="true"] .nv-currency__chevron { transform: rotate(180deg); }

.nv-currency__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  width: 280px;
  padding: 6px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17,24,39,.12);
  overscroll-behavior: contain;
}
.nv-currency__panel[hidden] { display: none; }

.nv-currency__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.nv-currency__option:hover { background: #F3F4F6; }
.nv-currency__option:focus-visible { outline: 2px solid #4F46E5; outline-offset: -2px; }
.nv-currency__option[aria-checked="true"] { background: #EEF2FF; color: #4338CA; font-weight: 600; }
.nv-currency__option small { display: block; margin-top: 1px; color: #6B7280; font-size: 12px; font-weight: 400; }
.nv-currency__check { flex-shrink: 0; width: 14px; height: 14px; visibility: hidden; }
.nv-currency__option[aria-checked="true"] .nv-currency__check { visibility: visible; }
.nv-currency__divider { height: 1px; margin: 6px 10px; background: #F3F4F6; }

.nv-currency__hint {
  margin: 6px 0 0;
  padding: 8px 10px 4px;
  border-top: 1px solid #F3F4F6;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.4;
}

/* Note and attribution: footer, and the checkout summary */
.nv-currency-notice {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
}
.nv-currency-notice .nv-currency__note { margin: 0; }
.nv-currency-notice .nv-currency__credit { font-size: 12px; text-decoration: underline; }
.novishi-footer-bottom .nv-currency__note,
.novishi-footer-bottom .nv-currency__credit { color: rgba(255,255,255,.62); }

/* Tablet: the links and actions share less width */
@media (min-width: 769px) and (max-width: 1040px) {
  .nav-menu { gap: 24px; }
}

/* Phones: the list opens under the header at nearly full width, so it can never leave the screen */
@media (max-width: 640px) {
  .nv-currency { position: static; }
  .nv-currency__panel {
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }
  .nv-currency__option { min-height: 44px; }
}

@media (max-width: 480px) {
  .nv-currency { min-width: 74px; min-height: 36px; }
  .nv-currency__trigger { height: 36px; gap: 4px; padding: 0 8px 0 10px; font-size: 12px; }
  .nav-actions { gap: 8px; }
  .logo { font-size: 26px; }
  .cart-btn { width: 40px; height: 40px; font-size: 17px; }
  .nav-hamburger { width: 36px; }
}

/* The smallest phones: code and chevron only */
@media (max-width: 359px) {
  .nv-currency { min-width: 56px; }
  .nv-currency__mark { display: none; }
  .logo { font-size: 22px; }
  .nav-actions { gap: 6px; }
  .nav-actions > a { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-currency__trigger, .nv-currency__chevron { transition: none; }
}
