/* “Currency not in app” info dialog — Figma 553:15321 */

body.currency-info-modal--locked {
  overflow: hidden;
  touch-action: none;
}

.currency-info-modal {
  --cim-radius: 25px;
  --cim-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  --cim-pad: clamp(16px, 4vw, 25px);
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.currency-info-modal.currency-info-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.currency-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 24, 26, 0.45);
  cursor: pointer;
}

.currency-info-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 2 * var(--padding)));
  max-height: min(92vh, 960px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--cim-pad);
  border-radius: var(--cim-radius);
  background: var(--color-bg);
  box-shadow: var(--cim-shadow);
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  transform: translate3d(0, 12px, 0) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.currency-info-modal--open .currency-info-modal__dialog {
  transform: translate3d(0, 0, 0) scale(1);
}

.currency-info-modal__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: min(calc(92vh - 2 * var(--cim-pad)), 900px);
  display: flex;
  flex-direction: column;
  gap: var(--padding);
}

.currency-info-modal__head-bar {
  display: flex;
  flex-direction: row;
  width: 100%;
  direction: ltr;
  justify-content: flex-start;
  flex-shrink: 0;
}

.currency-info-modal__close.btn--secondary {
  width: 45px;
  height: 45px;
  min-width: 45px;
  padding: 0;
  border-radius: 9999px;
  flex-shrink: 0;
  background: var(--color-light-grey);
  color: var(--color-black);
}

.currency-info-modal__close.btn--secondary:hover,
.currency-info-modal__close.btn--secondary:focus-visible {
  background: var(--color-natural-grey);
}

.currency-info-modal__close-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.currency-info-modal__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: right;
  color: var(--color-black);
}

.currency-info-modal__lead {
  margin: 0;
  font-size: clamp(1.125rem, 1.5vw + 0.75rem, var(--font-main));
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  color: var(--color-black);
}

.currency-info-modal__highlight {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--padding);
  padding: var(--padding);
  border-radius: 10px;
  background: var(--color-cyan-light);
  text-align: right;
  direction: rtl;
}

.currency-info-modal__highlight-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.9375rem, 0.9vw + 0.7rem, var(--font-subtitle));
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
}

.currency-info-modal__highlight-flag {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--color-light-grey);
}

.currency-info-modal__highlight-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.currency-info-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 5vw, 60px) var(--padding);
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}

.currency-info-modal__step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--padding);
  width: 100%;
  text-align: right;
}

.currency-info-modal__step-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-green) 0%, var(--color-cyan-light) 100%);
  font-size: var(--font-button);
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
  box-sizing: border-box;
}

.currency-info-modal__step-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6px;
  font-size: var(--font-button);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
}

.currency-info-modal__footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Layout + label color; hover / glow / scale come from .btn--primary (navbar.css) */
.currency-info-modal__topup.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: 45px;
  padding: 0 16px;
  border-radius: var(--radius-inner);
  color: var(--color-bg);
  font-family: inherit;
  font-size: var(--font-body);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  direction: rtl;
}

.currency-info-modal__topup-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 600px) {
  .currency-info-modal__highlight {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .currency-info-modal__highlight-flag {
    width: 48px;
    height: 48px;
    align-self: center;
  }

  .currency-info-modal__highlight-text {
    font-size: clamp(0.875rem, 2.8vw, 1rem);
    line-height: 1.35;
  }

  .currency-info-modal__steps {
    padding: 20px 12px;
    gap: 12px;
  }

  .currency-info-modal__step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .currency-info-modal__step-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: var(--font-body);
    align-self: flex-start;
    margin-top: 2px;
  }

  .currency-info-modal__step-text {
    width: auto;
    flex: 1 1 auto;
    padding-top: 0;
    font-size: var(--font-body);
    line-height: 1.35;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .currency-info-modal,
  .currency-info-modal__dialog {
    transition: none;
  }

  .currency-info-modal__dialog {
    transform: none;
  }
}
