.subscription-info .subscription-devices--tracked {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  margin-block-start: 4px;
  padding: 8px 15px;
  border: 1px solid #79518c;
  border-radius: 22px;
  background: rgba(194, 94, 224, .12);
  color: #f4e4fc;
  font: 600 15px/1.35 var(--font-text);
  letter-spacing: 0;
}

.subscription-devices--tracked .subscription-devices__icon {
  width: 18px;
  height: 18px;
}

.subscription-devices--tracked:hover {
  background: rgba(194, 94, 224, .2);
}

.subscription-reimport {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  margin-block: 8px 12px;
  padding: 20px clamp(12px, 4vw, 24px);
  border: 1px solid #85509c;
  border-radius: 20px;
  background: #271935;
  font-family: var(--font-text);
  letter-spacing: 0;
  text-align: center;
}

.subscription-reimport__copy {
  display: grid;
  gap: 4px;
  color: #e3d2ed;
  font-size: 15px;
  line-height: 1.45;
}

.subscription-reimport__copy strong {
  color: #f8edfe;
  font-size: 16px;
  font-weight: 650;
}

.button.subscription-reimport__open {
  justify-content: center;
  width: min(100%, 280px);
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  background: #3b2449;
  font: 600 15px/1.4 var(--font-text);
  text-align: center;
  white-space: normal;
}

.button.subscription-reimport__open:hover {
  background: #4c2b60;
}

.subscription-devices--tracked:focus-visible,
.subscription-reimport__open:focus-visible {
  outline: 2px solid #e2a4f5;
  outline-offset: 3px;
}

.paid-plans {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(224, 181, 246, .17);
  border-radius: 16px;
  background: rgba(21, 16, 33, .52);
  font-family: var(--font-text);
  letter-spacing: 0;
}

.paid-plans__title {
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.paid-plans__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paid-plans__row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(224, 181, 246, .13);
  border-radius: 12px;
  background: var(--color-card);
}

.paid-plans__row--active {
  border-color: rgba(212, 144, 240, .43);
  background: rgba(166, 90, 196, .12);
}

.paid-plans__details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.paid-plans__name {
  display: block;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.paid-plans__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 4px;
  color: #d1c5dc;
  font-size: 13px;
  line-height: 1.35;
}

.paid-plans__status {
  font-weight: 600;
}

.paid-plans__row--active .paid-plans__status {
  color: #ebbcfb;
}

.paid-plans .button {
  min-height: 44px;
  height: auto;
  justify-content: center;
  padding: 8px 10px;
  font: 500 14px/1.3 var(--font-text);
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.paid-plans__row > .button {
  flex: 0 0 min(48%, 154px);
}

.paid-plans__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paid-plans__actions > .button {
  flex: 1 1 126px;
  width: auto;
}

.tariffs-screen--live .tariffs-page:not(.tariffs-detail-page) {
  --tariffs-grid-gap: clamp(12px, 3vw, 24px);
}

.tariffs-screen--live .tariffs-introduction,
.tariffs-screen--live .tariffs-tabs,
.tariffs-screen--live .tariffs-cards {
  max-width: none;
}

.tariffs-screen--live .tariffs-tabs {
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  overflow: visible;
}

.tariffs-screen--live .tariff-tab {
  min-height: 42px;
  padding-inline: 4px;
  font-size: clamp(13px, 3.5vw, 17px);
  letter-spacing: -0.04em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tariffs-screen--live .tariffs-cards {
  grid-auto-rows: 1fr;
  gap: var(--tariffs-grid-gap);
  margin-top: 0;
}

.tariffs-screen--live .tariffs-cards > .tariff-card-live {
  --tariff-card-inset: clamp(12px, 2vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(36px, 1fr) auto;
  align-items: start;
  justify-items: stretch;
  gap: 8px;
  height: auto;
  min-height: 144px;
  padding: var(--tariff-card-inset);
  border: 1px solid transparent;
}

.tariffs-screen--live .tariffs-cards > .tariff-card-selected {
  border-color: #da61ff;
}

.tariffs-screen--live .tariff-card-live > :is(.tariff-card-heading, .tariff-duration) {
  grid-row: 1;
  min-width: 0;
}

.tariffs-screen--live .tariff-card-live .tariff-duration {
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tariffs-screen--live .tariff-card-live > .tariff-price-live {
  grid-row: 2;
  align-content: start;
  align-items: baseline;
  min-width: 0;
  gap: 4px 8px;
  font-size: clamp(16px, 4.4vw, 23px);
  line-height: 1.2;
  white-space: normal;
}

.tariffs-screen--live .tariff-card-live .tariff-price-group {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tariffs-screen--live .tariff-card-live > :is(.tariff-daily, .tariff-features) {
  grid-row: 3;
  min-width: 0;
  min-height: 1.35em;
  font-size: clamp(13px, 3.7vw, 16px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tariffs-screen--live .tariff-card-live > .tariff-daily {
  white-space: normal;
}

.tariffs-screen--live .tariff-card-live > .tariff-hit {
  position: absolute;
  inset-block-start: var(--tariff-card-inset);
  inset-inline-end: var(--tariff-card-inset);
  padding: 3px 6px;
  font-size: 11px;
}

.tariffs-screen--live .tariff-card-live:has(> .tariff-hit) > :is(.tariff-card-heading, .tariff-duration) {
  padding-inline-end: 38px;
}

.tariffs-screen--live .tariff-card-live:has(> .tariff-card-info) > .tariff-card-heading {
  padding-inline-end: 20px;
}

.tariffs-screen--live .tariffs-page:not(.tariffs-detail-page) > .tariffs-pay {
  align-self: center;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

@supports (grid-template-rows: subgrid) {
  .tariffs-screen--live .tariffs-cards {
    grid-auto-rows: max-content minmax(36px, 1fr) max-content;
  }

  .tariffs-screen--live .tariffs-cards > .tariff-card-live {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}

@media (min-width: 768px) {
  .tariffs-screen--live .tariffs-cards > .tariff-card-live {
    min-height: 160px;
  }

  .tariffs-screen--live .tariffs-page:not(.tariffs-detail-page) > .tariffs-pay {
    max-width: 360px;
  }
}
