/**
 * Стили виджета ironwallet-rates (из CDN-бандла): карусели, карточки токенов, пагинация.
 * Хост задаёт переменные для согласования с лендингом.
 */

.network-fees-rates-legacy-host .rates__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

.network-fees-rates-legacy-host .rates__update-timer {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center;
  align-self: stretch;
  height: 100%;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none;
}

.network-fees-rates-legacy-host .rates__progress-bar {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.network-fees-rates-legacy-host {
  --ff-gradient: linear-gradient(139deg, #2c32ba 0%, #0bb4ea 100%);
  --bs-body-font-family: "Roboto", system-ui, -apple-system, sans-serif;
  --bs-body-font-weight: 400;
  --bs-body-color: var(--iw-text-primary, #000000);
  --bs-gray-800: var(--iw-text-primary, #3f3d3d);
  --bs-orange: var(--iw-network-fees-plugin-orange, #ffa24f);
  --bs-teal: var(--iw-network-fees-plugin-teal, #51bf9c);
  --bs-blue: #005fcc;
  --bs-gray-600: rgba(159, 159, 159, 0.4);
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 12px;
  --bs-border-width: 2px;
  --bs-white--rgb: 255, 255, 255;
  --bs-black--rgb: 0, 0, 0;
}

.rates__wrap{display:flex;align-items:center;justify-content:space-between;flex-direction:column;margin-bottom:.5rem}.rates__wrap>div{max-width:100%}.rates__update-timer{background:var(--ff-gradient, linear-gradient(139deg, #2c32ba 0%, #0bb4ea 100%));padding:.25rem;border-radius:var(--bs-border-radius-sm, 6px);max-width:160px;margin-bottom:40px}.rates__update-timer--content{padding:.25rem .5rem;position:relative;z-index:2;border-radius:5px}.rates__update-timer--time_span{background:var(--ff-gradient, linear-gradient(139deg, #2c32ba 0%, #0bb4ea 100%));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0)}.rates__note-text{font-size:16px;font-weight:var(--bs-body-font-weight, 400);color:var(--bs-gray-800, #3f3d3d);max-width:97%;width:100%;text-align:center;margin:0 auto}.rates__btn{display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem}.rates__btn--link{padding:1rem 3rem;text-decoration:none;border-radius:var(--bs-border-radius-lg, 12px);background:var(--ff-gradient, linear-gradient(139deg, #2c32ba 0%, #0bb4ea 100%));color:var(--bs-white--rgb, #fff);text-align:center;min-width:150px}.rates__btn--link:hover{background:var(--ff-gradient, linear-gradient(121deg, #060da1 -21.37%, #0f8fb8 126.84%));color:var(--bs-white--rgb, #fff)}.rates__progress-bar{width:29px;height:29px;border-radius:50%}.rates__block{width:100%;box-sizing:border-box}.rates__block:nth-child(1){margin-bottom:1.5rem}.rates__progress{background:radial-gradient(closest-side, var(--bs-white--rgb, #fff) 79%, transparent 80% 100%),conic-gradient(var(--bs-white--rgb, #fff), calc(var(--progress-value) * 1%), var(--bs-blue, #005fcc) 0);animation:progress 2s 1 forwards;transition:animation .3s ease}.rates__plug{position:absolute;top:0;left:0;right:0;margin:0 auto;width:100%;height:100%;padding:1.5rem;gap:.25rem;background:rgba(var(--bs-white--rgb, #fff), 0.1);backdrop-filter:blur(10px);box-shadow:0 4px 6px rgba(var(--bs-black--rgb, #000) 0.1);border:var(--bs-border-width, 2px) rgba(var(--bs-black--rgb, #000) 0.2);color:var(--bs-white--rgb, #fff);text-align:center;display:flex;z-index:2}.rates__plug--content{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.25rem;width:100%}.rates__error-message{font-size:16px;color:var(--bs-body-color, #000000);margin-bottom:.5rem}.rates__beakline{border:1px solid #e9e9ea;width:48.6%;max-width:700px;height:0px;margin-bottom:.5rem}.token__block{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem}.token__item,.token__left-block,.token__networks{display:flex;align-items:center;justify-content:flex-start;font-family:var(--bs-body-font-family, "Roboto")}.token__item{width:100%;justify-content:space-between;display:flex;gap:10px}.token__left-block,.token__networks{gap:.5rem;font-weight:600;font-size:20px;font-family:var(--bs-body-font-family, "Roboto")}.token__right-block{text-align:right;font-weight:var(--bs-body-font-weight, 400);font-size:18px;font-family:var(--bs-body-font-family, "Roboto");color:var(--bs-body-color, #000000);padding:.25rem .5rem;border-radius:43px;background:#e9e9ea;display:flex;align-items:center;justify-content:flex-end}.token__token-currency{font-weight:var(--bs-body-font-weight, 400);font-size:20px;color:#595959}.token__amount-in-currency{font-size:16px;font-weight:var(--bs-body-font-weight, 400)}.token__amount-in-currency--compact{font-size:9.5px}.token__right-block--compact{font-size:13px}.token__icon{width:34px;height:34px;border-radius:100%}.token__card{display:flex;align-items:flex-start;justify-content:flex-start;gap:4.5rem}.token__card-title,.token__card-title-derivative{font-size:20px;font-weight:600;font-family:var(--bs-body-font-family, "Roboto");color:var(--bs-orange, #ffa24f);margin-bottom:1.25rem}@media(max-height: 768px){.token__card-title,.token__card-title-derivative{margin-bottom:.5rem}}.token__card-title-derivative{color:var(--bs-teal, #51bf9c)}.token__swiper-btn{position:absolute;top:0;border-radius:10px;width:30px;height:184px;background:var(--bs-gray-600, rgba(159, 159, 159, 0.4));display:flex;align-items:center;justify-content:center;border:none;height:100%}.token__swiper-btn::after{content:"";width:25px;height:24px;position:relative;z-index:2;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2725%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23222%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%279 18 15 12 9 6%27/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center;display:block;cursor:pointer}.token__next-button{right:-40px}.token__prev-button{left:-40px}.token__prev-button::after{transform:rotate(180deg)}button:focus-visible,a:focus-visible,[role=tab]:focus-visible{outline:2px solid var(--bs-blue, #005fcc);outline-offset:2px}.swiper-container{position:relative;width:98.8%}.swiper-button-disabled{display:none}@media(max-width: 1200px){.token__token-currency{font-size:16px}.token__networks{max-width:70%}}@media(max-width: 992px){.rates__wrap{margin:0 auto}}@media(max-width: 768px){.rates__header{align-items:center;justify-content:center}.rates__title{margin-bottom:32px}.rates__wrap{max-width:100%}.rates__update-timer{margin-top:30px;margin-bottom:0}.token__networks{flex-direction:column;gap:2px;align-items:self-start;justify-content:center;font-size:20px}.token__token-currency{font-size:16px}}@media(max-width: 576px){.rates__btn--link{width:100%}.token__networks{flex-direction:column;gap:2px;align-items:self-start;justify-content:center;font-size:16px}.token__token-currency{font-size:14px}.token__right-block{font-size:16px;padding:6px 8px}.token__amount-in-currency{font-size:12px}}@media(max-width: 375px){.token__networks{font-size:16px}}@media(max-width: 347px){.token__right-block{padding:6px 3px;font-size:14px;display:flex;gap:2x}}.swiper{max-width:100%}.skeleton__block{display:grid;gap:1rem;flex-wrap:wrap;width:100%;grid-template-columns:repeat(2, 1fr)}.skeleton__wrap{width:100%}.skeleton__btn{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:32px}.skeleton__slider_block{min-width:100%;display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}@property --progress-value{syntax:"<integer>";inherits:true;initial-value:0}@keyframes progress{to{--progress-value: 100}}progress{visibility:hidden;width:0;height:0}.CircularProgressbar-trail{stroke-width:0}.CircularProgressbar .CircularProgressbar-path{stroke:var(--bs-blue, #005fcc);stroke-width:12px}
.swiper-pagination{text-align:center;z-index:10;display:flex;justify-content:center;align-items:center;width:100%}.swiper-pagination-bullet{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;border:none;margin:0;padding:0;box-shadow:none;appearance:none;cursor:pointer;background:rgba(0,0,0,0);position:relative;transition:none}.swiper-pagination-bullet::after{content:"";display:block;width:.5rem;height:.5rem;border-radius:var(--bs-border-radius-lg, 12px);background:var(--bs-black--rgb, #000);opacity:.2;transition:width .8s ease,height .8s ease,opacity .3s ease}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active::after{opacity:1;background:var(--bs-blue, #005fcc);border-radius:18px;width:14px;height:7px}
.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;box-sizing:content-box}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;display:block}.swiper{width:100%}

/**
 * Таймер: градиент только у счётчика времени; «Update in» — обычный цвет текста.
 */
.network-fees-rates-legacy-host .rates__update-timer--content {
  padding: 0 0.5rem;
  position: relative;
  z-index: 2;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  line-height: 1.1;
  max-height: 40px;
}

/** Подпись без градиента; градиент только у числового таймера. */
.network-fees-rates-legacy-host .rates__update-timer__label {
  display: inline-block;
  color: var(--bs-gray-800, #3f3d3d);
  -webkit-text-fill-color: currentColor;
}

.network-fees-rates-legacy-host .rates__update-timer--time_span {
  display: inline-block;
  background-image: var(
    --ff-gradient,
    linear-gradient(139deg, #2c32ba 0%, #0bb4ea 100%)
  );
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .network-fees-rates-legacy-host .rates__header {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    justify-content: center;
  }

  .network-fees-rates-legacy-host .rates__update-timer {
    margin-top: 0 !important;
  }
}


.network-fees-rates-legacy-host .token__amount-usd,
.network-fees-rates-legacy-host .token__amount-in-currency {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .network-fees-rates-legacy-host .token__amount-in-currency::before {
    content: "(";
  }
  .network-fees-rates-legacy-host .token__amount-in-currency::after {
    content: ")";
  }
}

@media (min-width: 993px) {
  .network-fees-rates-legacy-host .token__item {
    container-type: inline-size;
    min-width: 0;
  }

  .network-fees-rates-legacy-host .token__left-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  .network-fees-rates-legacy-host .token__right-block {
    flex: 0 1 auto;
    min-width: 0;
  }

  .network-fees-rates-legacy-host .token__amount-in-currency {
    margin-inline-start: 0.25em;
  }

  /** right-block упирается в left-block — цены в колонку */
  @container (max-width: 31.25rem) {
    .network-fees-rates-legacy-host .token__right-block {
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-end;
      text-align: right;
      gap: 0;
      width: auto;
      min-width: 0;
      flex-shrink: 0;
      flex-grow: 0;
      padding-inline: 0.7rem;
    }

    .network-fees-rates-legacy-host .token__amount-in-currency {
      margin-inline-start: 0;
    }
  }
}

@media (max-width: 992px) {
  .network-fees-rates-legacy-host .token__right-block {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    gap: 0;
    width: auto;
    min-width: 0;
    flex-shrink: 0;
    flex-grow: 0;
    padding-inline: 0.7rem;
  }
}

/**
 * До 1280px: тикер/сеть (token__token-currency) на отдельной строке под названием.
 */
@media (max-width: 1280px) {
  .network-fees-rates-legacy-host .token__left-block {
    min-width: 0;
    align-items: flex-start;
  }

  .network-fees-rates-legacy-host .token__networks {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    white-space: normal;
    max-width: none;
  }

  .network-fees-rates-legacy-host .token__token-currency {
    white-space: nowrap;
  }
}

@media (min-width: 1281px) {
  .network-fees-rates-legacy-host .token__left-block {
    min-width: 0;
  }

  .network-fees-rates-legacy-host .token__networks {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 2px;
    min-width: 0;
    white-space: normal;
  }

  .network-fees-rates-legacy-host .token__token-currency {
    white-space: nowrap;
  }
}

/**
 * Pagination bullets: inactive — серый круг, active — оригинальный синий овал (как в legacy).
 */
.network-fees-rates-legacy-host .swiper-pagination {
  margin-top: 12px;
}

.network-fees-rates-legacy-host
  .swiper-pagination-bullet:not(.swiper-pagination-bullet-active)::after {
  background: #c4c4c4;
  opacity: 1;
}

/**
 * Embla / swiper: при dir=rtl на странице ломаются translateX, свайп и стрелки prev/next.
 * Карусель ведёт себя как в LTR (как ironwallet-rates в англ. версии).
 */
[dir="rtl"] .network-fees-rates-legacy-host .swiper-container,
[dir="rtl"] .network-fees-rates-legacy-host .swiper {
  direction: ltr;
}

@media (min-width: 768px) and (max-width: 992px) {
  .network-fees-rates-legacy-host .token__right-block {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.35em;
  }
}

.network-fees-rates-legacy-host .token__left-block {
  flex: 1 1 auto;
  min-width: 0;
}

.network-fees-rates-legacy-host .token__right-block {
  flex: 0 0 auto;
}

.network-fees-rates-legacy-host .token__networks {
  white-space: normal;
  overflow: hidden;
  max-width: none;
}

/**
 * Десктоп до 1200px: currency переносится под имя токена (column),
 * чтобы правый блок с ценой не перекрывал текст слева.
 * Выше 1200px — обычный row (имя + currency рядом).
 */
@media (min-width: 993px) and (max-width: 1200px) {
  .network-fees-rates-legacy-host .token__networks {
    flex-direction: column !important;
    gap: 2px !important;
    align-items: flex-start !important;
  }

  .network-fees-rates-legacy-host .token__right-block {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0 !important;
    padding: 0.5rem 1.25rem !important;
  }
}

