.site-steam-top-up {
  background:
    radial-gradient(circle at 84% 9%, rgba(252, 228, 77, 0.09), transparent 21rem),
    radial-gradient(circle at 12% 38%, rgba(73, 177, 117, 0.08), transparent 26rem),
    #0b1320;
}

.steam-top-up-page {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  overflow: hidden;
  padding: 30px 0 0;
}

.steam-top-up-page__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.steam-top-up-page__background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 19, 32, 0.98) 0%, rgba(11, 19, 32, 0.88) 52%, rgba(11, 19, 32, 0.62) 100%),
    linear-gradient(0deg, rgba(11, 19, 32, 0.66), transparent 46%);
  content: '';
}

.steam-top-up-page__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
}

.steam-top-up-page__container {
  width: min(100%, 980px);
  margin: 0 auto;
}

.steam-top-up-page__title {
  margin: 0 0 18px;
  color: #f6f8fc;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1;
}

.steam-top-up-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(250px, 1fr);
  align-items: start;
  gap: 28px;
}

.steam-top-up-form,
.steam-top-up-info {
  border: 1px solid rgba(213, 225, 241, 0.13);
  border-radius: 24px;
  background: rgba(20, 31, 46, 0.9);
}

.steam-top-up-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.steam-top-up-form__field,
.steam-top-up-form__promo-field {
  display: grid;
  gap: 8px;
}

.steam-top-up-form__field > span,
.steam-top-up-form__promo-field > span {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.steam-top-up-form__field input,
.steam-top-up-form__promo-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(213, 225, 241, 0.14);
  border-radius: 12px;
  outline: none;
  background: #0b1320;
  color: #f8fafc;
  font: inherit;
  padding: 0 15px;
}

.steam-top-up-form__login-control {
  position: relative;
  display: block;
}

.steam-top-up-form__login-control input {
  padding-right: 46px;
}

.steam-top-up-form__login-state {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.steam-top-up-form__login-state--available {
  background: rgba(46, 204, 113, 0.17);
  color: #72dc9a;
}

.steam-top-up-form__login-state--unavailable {
  background: rgba(239, 93, 93, 0.16);
  color: #f19b9b;
}

.steam-top-up-form__login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -14px 0 0;
  color: #f19b9b;
  font-size: 13px;
  line-height: 1.4;
}

.steam-top-up-form__login-error[hidden] {
  display: none;
}

.steam-top-up-form__login-help {
  display: inline-grid;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.steam-top-up-form__login-help:hover {
  color: inherit;
}

.steam-top-up-info__details {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fce44d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.steam-top-up-info__details:hover {
  color: #fff7b5;
}

.steam-top-up-info__details:focus-visible,
.product-help-sheet__close:focus-visible {
  outline: 2px solid #fce44d;
  outline-offset: 3px;
}

.steam-top-up-form__field input:focus,
.steam-top-up-form__promo-field input:focus {
  border-color: rgba(252, 228, 77, 0.64);
  box-shadow: 0 0 0 3px rgba(252, 228, 77, 0.09);
}

.steam-top-up-form__currencies {
  width: 100%;
}

.steam-top-up-form__currency-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px;
}

.steam-top-up-form__currency {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid rgba(213, 225, 241, 0.14);
  background: rgba(11, 19, 32, 0.72);
  color: #b7c3d5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.steam-top-up-form__currency:first-child {
  border-left: 0;
}

.steam-top-up-form__currency:hover,
.steam-top-up-form__currency.is-active {
  background: rgba(252, 228, 77, 0.1);
  color: #fff7b5;
}

.steam-top-up-form__currency .country-flag {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  background-size: 84px 42px;
}

.steam-top-up-form__currency .country-flag--ru { background-position: 0 0; }
.steam-top-up-form__currency .country-flag--kz { background-position: -21px 0; }
.steam-top-up-form__currency .country-flag--ua { background-position: -42px 0; }
.steam-top-up-form__currency .country-flag--uz { background-position: -21px -14px; }

.steam-top-up-form__currency:focus-visible {
  z-index: 1;
  outline: 2px solid #fce44d;
  outline-offset: -2px;
}

.steam-top-up-form__commission {
  display: grid;
  gap: 5px;
}

.steam-top-up-form__commission-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  padding-bottom: 7px;
}

.steam-top-up-form__commission-scale > div {
  position: relative;
  display: grid;
  min-height: 22px;
  border-bottom: 2px solid rgba(213, 225, 241, 0.2);
  color: #8fa0b6;
  place-items: start center;
}

.steam-top-up-form__commission-scale > div::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 1px;
  height: 8px;
  background: rgba(213, 225, 241, 0.38);
  content: '';
}

.steam-top-up-form__commission-scale > div:first-child::before {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 1px;
  height: 8px;
  background: rgba(213, 225, 241, 0.38);
  content: '';
}

.steam-top-up-form__commission-scale > div.is-active {
  border-color: #fce44d;
  color: #fff7b5;
}

.steam-top-up-form__commission-scale strong {
  font-size: 13px;
  line-height: 1;
}

.steam-top-up-form__commission-ticks {
  display: flex;
  justify-content: space-between;
  color: #718198;
  font-size: 10px;
  line-height: 1;
}

.steam-top-up-form__commission-ticks span {
  white-space: nowrap;
}

.steam-top-up-form__amount-control {
  position: relative;
}

.steam-top-up-form__amount-control input {
  padding-right: 52px;
}

.steam-top-up-form__amount-control > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #fce44d;
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
}

.steam-top-up-form__promo {
  display: grid;
  gap: 12px;
}

.steam-top-up-form__promo-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fce44d;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.steam-top-up-form__promo-toggle:hover {
  color: #fff7b5;
}

.steam-top-up-form__promo-toggle[hidden],
.steam-top-up-form__promo-field[hidden],
.steam-top-up-form__summary[hidden],
.steam-top-up-form__status[hidden] {
  display: none !important;
}

.steam-top-up-form__summary {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(213, 225, 241, 0.12);
  border-bottom: 1px solid rgba(213, 225, 241, 0.12);
}

.steam-top-up-form__summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(213, 225, 241, 0.08);
}

.steam-top-up-form__summary > div:first-child {
  border-top: 0;
}

.steam-top-up-form__summary dt {
  color: #9caabe;
  font-size: 12px;
}

.steam-top-up-form__summary dd {
  margin: 0;
  color: #f2f5fa;
  font-size: 13px;
  font-weight: 700;
}

.steam-top-up-form__summary-total dd {
  color: #fce44d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.steam-top-up-form__status {
  margin: -8px 0 0;
  color: #f5a5a5;
  font-size: 14px;
  line-height: 1.45;
}

.steam-top-up-form__status.is-success {
  color: #76d69b;
}

.steam-top-up-form__submit {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.steam-top-up-form__legal {
  margin: -10px 0 0;
  color: #8493a9;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.steam-top-up-form__legal a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.steam-top-up-info {
  display: grid;
  gap: 0;
  padding: 8px 24px;
}

.steam-top-up-info article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid rgba(213, 225, 241, 0.1);
}

.steam-top-up-info article:first-child {
  border-top: 0;
}

.steam-top-up-info__index {
  color: rgba(252, 228, 77, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.steam-top-up-info h2 {
  margin: 0;
  color: #f6f8fc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
}

.steam-top-up-info p {
  margin: 6px 0 0;
  color: #9eacc0;
  font-size: 14px;
  line-height: 1.48;
}

.steam-top-up-page__trust {
    margin: 28px 0 0;
}

.site-steam-top-up .market-footer {
    margin-top: 24px;
}

body.site-steam-top-up-sheet-open {
  overflow: hidden;
}

.product-help-sheet[hidden] {
  display: none !important;
}

.product-help-sheet {
  position: fixed;
  z-index: 110;
  inset: 0;
}

.product-help-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.product-help-sheet__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  padding: 22px 20px 20px;
  border: 1px solid rgba(213, 225, 241, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(252, 228, 77, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(19, 31, 49, 0.98), rgba(14, 24, 38, 0.98));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.product-help-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  place-items: center;
}

.product-help-sheet__body,
.steam-top-up-details {
  display: grid;
  gap: 14px;
}

.product-help-sheet__body h2,
.product-help-sheet__body h3 {
  margin-right: 40px;
  color: #f6f8fc;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

.product-help-sheet__body h2 {
  font-size: 1.25rem;
}

.product-help-sheet__body h3 {
  margin: 6px 40px 0 0;
  font-size: 1rem;
}

.product-help-sheet__body p,
.steam-top-up-details li {
  margin: 0;
  color: #aab6c8;
  font-size: 14px;
  line-height: 1.58;
}

.steam-top-up-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .steam-top-up-page__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .steam-top-up-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
  }

  .steam-top-up-info article,
  .steam-top-up-info article:first-child {
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .steam-top-up-page {
    padding: 20px 0 48px;
  }

  .steam-top-up-page__title {
    margin-bottom: 16px;
  }

  .steam-top-up-page__background img {
    object-position: 30% center;
  }

  .product-help-sheet__dialog {
    width: calc(100vw - 20px);
    max-height: min(82vh, 680px);
    padding: 20px 16px 16px;
    border-radius: 24px;
  }

  .steam-top-up-form {
    gap: 20px;
    padding: 22px;
    border-radius: 20px;
  }

  .steam-top-up-form__currency-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steam-top-up-form__currency:nth-child(odd) {
    border-left: 0;
  }

  .steam-top-up-form__currency:nth-child(n + 3) {
    border-top: 1px solid rgba(213, 225, 241, 0.14);
  }

  .steam-top-up-info {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 20px;
  }

  .steam-top-up-info article,
  .steam-top-up-info article:first-child {
    border-top: 1px solid rgba(213, 225, 241, 0.1);
  }

  .steam-top-up-info article:first-child {
    border-top: 0;
  }
}
