/* generated from src/components/network-fees/network-fees.module.css — do not edit CSS modules; edit source then re-run converter */
.networkFees_root {
  display: block;
  width: 100%;
  min-height: 600px;
  --bs-orange: var(--iw-network-fees-plugin-orange);
}

/** Обёртка для legacy-каруселей. */
.networkFees_legacyHost {
  position: relative;
  width: 100%;
}

/**
 * Desktop/mobile без JS breakpoint: SSR и первый paint совпадают с viewport,
 * нет вспышки desktop→mobile из useSyncExternalStore(serverSnapshot: false).
 */
.networkFees_layoutMobile {
  display: block;
}

.networkFees_layoutDesktop {
  display: none;
}

@media (min-width: 993px) {
  .networkFees_layoutMobile {
    display: none;
  }

  .networkFees_layoutDesktop {
    display: block;
  }
}

/** Ширина стрелок; высота — на всю высоту .networkFees_swiper-container. */
.networkFees_legacyHost .token__swiper-btn {
  width: 40px;
  top: 0;
  bottom: 0;
  height: auto;
  cursor: pointer;
}

/** 40px кнопка + 10px зазор до контента (legacy -40px рассчитан на width: 30px). */
.networkFees_legacyHost .token__prev-button {
  left: -50px;
}

.networkFees_legacyHost .token__next-button {
  right: -50px;
}

.networkFees_wrap {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--iw-sp-40);
  margin-bottom: 0;
}

.networkFees_header {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-inline: clamp(0.25rem, 4vw, 2.75rem);
  box-sizing: border-box;
}

.networkFees_title {
  margin: 0 auto;
}

[dir="rtl"] .networkFees_title {
  text-align: start;
}

.networkFees_data {
  min-height: 450px;
  width: 100%;
  height: 100%;
  border-radius: var(--iw-radius-md);
  isolation: isolate;
  overflow: visible;
  padding-inline: clamp(0.25rem, 4vw, 2.75rem);
  box-sizing: border-box;
}

.networkFees_tableWrap {
  width: 100%;
}

.networkFees_tableLoading {
  padding: 2rem 0;
  color: var(--iw-text-secondary);
  font-size: var(--iw-fs-sm);
}

.networkFees_tableError {
  margin: 0;
  color: var(--iw-text-secondary);
  font-size: var(--iw-fs-sm);
}

.networkFees_feesGroup {
  margin-bottom: var(--iw-sp-24);
}

.networkFees_feesGroup:last-child {
  margin-bottom: 0;
}

.networkFees_feesGroupTitle {
  font-size: var(--iw-fs-md);
  font-weight: 600;
  margin: 0 0 var(--iw-sp-12);
  color: var(--iw-text-primary);
}

.networkFees_feesList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--iw-sp-8);
}

.networkFees_feesRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--iw-sp-12);
  padding: var(--iw-sp-12) var(--iw-sp-16);
  border-radius: var(--iw-radius-md);
  background: rgba(var(--iw-black-rgb), 0.04);
  border: 1px solid var(--iw-border-light);
}

.networkFees_feesIcon {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.networkFees_feesMain {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.networkFees_feesName {
  font-weight: 600;
  font-size: var(--iw-fs-base);
  color: var(--iw-text-primary);
}

.networkFees_feesNetwork {
  font-size: var(--iw-fs-sm);
  color: var(--iw-text-secondary);
}

.networkFees_feesToken {
  font-size: var(--iw-fs-sm);
  color: var(--iw-text-secondary);
}

.networkFees_feesPrices {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.networkFees_feesUsd {
  font-weight: 600;
  font-size: var(--iw-fs-base);
  color: var(--iw-text-primary);
}

.networkFees_feesCrypto {
  font-size: var(--iw-fs-sm);
  color: var(--iw-text-secondary);
}

.networkFees_pricePending {
  color: var(--iw-text-tertiary);
  font-weight: 400;
}

@keyframes priceSkeletonWave {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/** Плейсхолдер цен: серая полоса + белая «волна». */
.networkFees_priceSkeletonOuter {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  align-items: center;
  min-height: 22px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.token__right-block .networkFees_priceSkeletonOuter {
  min-width: min(100%, 10rem);
}

.networkFees_priceSkeletonBar {
  position: relative;
  display: block;
  width: 40%;
  min-width: 3.25rem;
  max-width: 100%;
  height: 18px;
  border-radius: 999px;
  background: #e9e9ea;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.networkFees_priceSkeletonBar::after,
.networkFees_priceSkeletonBarSecondary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 45%,
    transparent 100%
  );
  animation: priceSkeletonWave 1.35s ease-in-out infinite;
}

/** Вторая полоска цены — только на мобиле (колонка USD + crypto). */
.networkFees_priceSkeletonBarSecondary {
  display: none;
}

.token__right-block--compact .networkFees_priceSkeletonBar {
  height: 14px;
}

/** Иконка/текст остаются в DOM; скелетон — оверлей до прихода цен. */
.networkFees_iconWrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.networkFees_iconSkeleton {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e9e9ea;
  overflow: hidden;
  z-index: 1;
}

.networkFees_iconSkeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 45%,
    transparent 100%
  );
  animation: priceSkeletonWave 1.35s ease-in-out infinite;
}

.networkFees_networksWrap {
  position: relative;
  min-width: 0;
}

.networkFees_textSkeletonOverlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  background: var(--iw-bg, #fff);
  pointer-events: none;
}

.networkFees_listSkeletonLine {
  display: block;
  height: 20px;
  width: min(140px, 42vw);
  max-width: 100%;
  border-radius: 6px;
  background: #e9e9ea;
  overflow: hidden;
  position: relative;
}

.networkFees_listSkeletonLine::after,
.networkFees_listSkeletonLineMuted::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 45%,
    transparent 100%
  );
  animation: priceSkeletonWave 1.35s ease-in-out infinite;
}

/** Тикер под именем — только где networks колонкой (≤1280). */
.networkFees_listSkeletonLineMuted {
  display: none;
  height: 14px;
  width: min(72px, 28vw);
  max-width: 70%;
  border-radius: 6px;
  background: #ececec;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1280px) {
  .networkFees_textSkeletonOverlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }

  .networkFees_listSkeletonLine {
    height: 16px;
    width: min(110px, 36vw);
  }

  .networkFees_listSkeletonLineMuted {
    display: block;
  }
}

@media (max-width: 992px) {
  .token__right-block .networkFees_priceSkeletonOuter {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: 4.75rem;
    width: 4.75rem;
  }

  .networkFees_priceSkeletonBar {
    width: 100%;
    min-width: 0;
    height: 12px;
  }

  .networkFees_priceSkeletonBarSecondary {
    position: relative;
    display: block;
    width: 70%;
    height: 10px;
    border-radius: 999px;
    background: #e9e9ea;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
  }
}

/**
 * Скелетон списка до первого ответа API: та же сетка, что у token__item,
 * чтобы полоска цены была ~40% только колонки справа (как у живых строк).
 */
.networkFees_listSkeletonItem .networkFees_listSkeletonIcon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e9e9ea;
  overflow: hidden;
  position: relative;
}

.networkFees_listSkeletonItem .networkFees_listSkeletonIcon::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 45%,
    transparent 100%
  );
  animation: priceSkeletonWave 1.35s ease-in-out infinite;
}

.networkFees_listSkeletonItem .token__networks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.networkFees_listSkeletonItem .networkFees_listSkeletonLineMuted {
  display: block;
}

.networkFees_listSkeletonItem .token__left-block {
  min-width: 0;
}

.networkFees_footer {
  display: flex;
  flex-direction: column;
  gap: var(--iw-sp-25);
  margin: 0 auto;
}

.networkFees_btn {
  width: 100%;
  height: 48px;
  margin: var(--iw-sp-15) auto 0;
  background: linear-gradient(
    121.46deg,
    #2c32ba -21.37%,
    #0bb4ea 126.84%
  );
  background-size: 100% 100%;
  background-position: 0% 50%;
  border-radius: var(--iw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.networkFees_btn:hover {
  background: linear-gradient(
    121.46deg,
    #060da1 -21.37%,
    #0f8fb8 126.84%
  );
  background-size: 100% 100%;
  animation: none;
}

.networkFees_btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--iw-primary-blue-rgb), 0.3);
}

.networkFees_btnText {
  height: 22px;
  font-weight: 400;
  font-size: var(--iw-fs-base);
  line-height: 140%;
  letter-spacing: 0.12px;
  color: var(--iw-white);
}

.networkFees_note {
  font-weight: 400;
  font-size: var(--iw-fs-sm);
  line-height: 18px;
  color: var(--iw-text-secondary);
}

.networkFees_skeleton {
  box-sizing: border-box;
  width: 100%;
  min-height: 600px;
  border-radius: var(--iw-radius-md);
  background: linear-gradient(
    180deg,
    rgba(var(--iw-black-rgb), 0.03),
    rgba(var(--iw-black-rgb), 0.06)
  );
}

@media (min-width: 768px) {
  .networkFees_wrap {
    margin-bottom: 120px;
  }

  .networkFees_note {
    font-size: var(--iw-fs-base);
    line-height: var(--iw-sp-24);
    text-align: center;
  }

  .networkFees_footer {
    min-width: 100%;
    display: flex;
    gap: var(--iw-sp-25);
  }

  .networkFees_btn {
    max-width: 330px;
  }

  .networkFees_title {
    margin-bottom: var(--iw-sp-20);
  }
}

@media (min-width: 1024px) {
  .networkFees_title {
    text-align: start;
  }

  .networkFees_data {
    min-height: 559px;
  }
}

