/**
 * play-balance.online — form-steam-direct (slug: playbalance).
 * Акцент сайта: #2f2fe4. Шрифт (family/size) — от темы.
 */

#payment-form-steam-direct.form-style-playbalance,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-panel,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field,
#payment-form-steam-direct.form-style-playbalance label,
#payment-form-steam-direct.form-style-playbalance input,
#payment-form-steam-direct.form-style-playbalance button,
#payment-form-steam-direct.form-style-playbalance .payment-form-amount-hint,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-currency-suffix,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-credited,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-btn,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-radio-label,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-pay-btn,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-checkbox-label--as-hint,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-checkbox-label--as-hint span,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-status {
  font-family: inherit;
  font-size: inherit;
}

#payment-form-steam-direct.form-style-playbalance {
  color: inherit;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(36, 54, 82, 0.65);
  border-radius: 20px;
  padding: 28px;
  box-sizing: border-box;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* —— плотнее блоки полей —— */

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field {
  margin-bottom: 0.65rem;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field:last-child {
  margin-bottom: 0;
}

/* Не трогаем подписи пресетов-сумм (radio) — они ниже со своим видом */
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field > label:not(.payment-form-steam-amount-radio-label),
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-login-label {
  margin-bottom: 0.35rem;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-amount-hint {
  margin: 4px 0 8px;
  line-height: 1.35;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount > label[for="amount-acc"] {
  margin-bottom: 0.25rem;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount {
  margin-top: 1.35rem;
  margin-bottom: 0.25rem;
}

/* —— inputs —— */

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="text"],
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="email"],
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: #0a1422;
  border: 1px solid #1e2d48;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(47, 47, 228, 0.15);
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input::placeholder {
  color: #8fa3bf;
  opacity: 0.85;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="text"]:focus,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="email"]:focus,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field input[type="number"]:focus {
  outline: none;
  border-color: #2f2fe4;
  box-shadow: inset 0 0 0 1px rgba(47, 47, 228, 0.2), 0 0 0 2px rgba(47, 47, 228, 0.25);
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-input-wrap--amount {
  position: relative;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount #amount-acc {
  padding-right: 56px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-currency-suffix {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  color: #8fa3bf;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-credited {
  margin-top: 14px;
}

/* —— кнопки сумм —— */

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px !important;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-btn {
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid #2f2fe4;
  border-radius: 10px;
  color: #2f2fe4;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-btn:hover,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-btn.active {
  background: #2f2fe4;
  border-color: #2f2fe4;
  color: #0b0f16;
}

/* Пресеты radio: больше воздуха от поля суммы; сами пресеты компактнее и светлее фона инпута */
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-radios--layout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 47, 228, 0.14);
  width: 100%;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row .payment-form-steam-input-wrap--amount {
  flex: 1 1 140px;
  max-width: 200px;
  min-width: 120px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row #amount-acc {
  height: 52px !important;
  padding: 0 48px 0 14px !important;
  border-color: #2f2fe4 !important;
  box-shadow: inset 0 0 0 1px rgba(47, 47, 228, 0.25), 0 0 0 1px rgba(47, 47, 228, 0.18) !important;
  font-weight: 600 !important;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row .payment-form-steam-currency-suffix {
  right: 14px;
  color: #2f2fe4;
  font-weight: 700;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row .payment-form-steam-amount-radio-item {
  flex: 1 1 0;
  min-width: min(100%, 72px);
  max-width: 110px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-radios-rest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-radios-rest .payment-form-steam-amount-radio-item {
  min-width: 0;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio-item {
  display: block;
  width: 100%;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio-label {
  box-sizing: border-box;
  width: 100%;
  min-height: 28px;
  margin: 0 !important;
  padding: 0 6px 0 5px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  border: 1px solid #243652 !important;
  border-radius: 6px !important;
  background: rgba(13, 24, 40, 0.85) !important;
  color: #a8b8cc !important;
  font-weight: 500 !important;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio-label::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #2f2fe4;
  background: transparent;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio-label:hover {
  border-color: #2f2fe4 !important;
  box-shadow: 0 0 0 1px rgba(47, 47, 228, 0.25);
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio:checked + .payment-form-steam-amount-radio-label {
  border-color: #2f2fe4 !important;
  background: rgba(47, 47, 228, 0.12) !important;
  color: #e6edf5 !important;
  box-shadow: 0 0 0 1px rgba(47, 47, 228, 0.35);
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio:checked + .payment-form-steam-amount-radio-label::before {
  border-color: #2f2fe4;
  background: #2f2fe4;
  box-shadow: inset 0 0 0 2px #0d1828;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-field--amount .payment-form-steam-amount-radios .payment-form-steam-amount-radio:focus-visible + .payment-form-steam-amount-radio-label {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(47, 47, 228, 0.45), 0 0 0 1px rgba(47, 47, 228, 0.25) !important;
}

@media (max-width: 520px) {
  #payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row .payment-form-steam-input-wrap--amount {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  #payment-form-steam-direct.form-style-playbalance .payment-form-steam-amount-top-row .payment-form-steam-amount-radio-item {
    flex: 1 1 calc(33.333% - 6px);
    min-width: min(100%, 80px);
  }
}

/* —— двухколоночный макет —— */

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: stretch;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-main,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side {
  min-width: 0;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-main,
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side > .payment-form-steam-direct-section {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 8px 4px;
  box-shadow: none;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side > .payment-form-steam-direct-section--methods {
  flex: 1 1 auto;
  /* опустить Карта/СБП до уровня инпута логина (лейбл + отступ под ним) */
  padding-top: calc(1.25em + 0.35rem) !important;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side > .payment-form-steam-direct-section--footer {
  flex: 0 0 auto;
  margin-bottom: 0;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-section--data {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  #payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-layout {
    grid-template-columns: 1fr;
  }

  #payment-form-steam-direct.form-style-playbalance {
    padding: 20px 16px;
  }

  #payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-side > .payment-form-steam-direct-section--methods {
    padding-top: 8px !important;
  }
}

/* —— заголовки секций (скрыты) —— */

#payment-form-steam-direct.form-style-playbalance #payment-block-title-data,
#payment-form-steam-direct.form-style-playbalance #payment-methods-title {
  display: none;
}

#payment-form-steam-direct.form-style-playbalance label[for="amount-acc"] + .payment-form-amount-hint {
  display: none;
}

/* —— главные кнопки оплаты (Карта / СБП) —— */

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  border-radius: 4px !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #4f5dff 0%, #2f2fe4 100%) !important;
  color: #0b0f16 !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(47, 47, 228, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  cursor: pointer !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 25px rgba(47, 47, 228, 0.35) !important;
  color: #0b0f16 !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn.is-active {
  background: linear-gradient(135deg, #4f5dff 0%, #2f2fe4 100%) !important;
  transform: none !important;
  box-shadow: 0 6px 20px rgba(47, 47, 228, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(47, 47, 228, 0.45), 0 6px 20px rgba(47, 47, 228, 0.25) !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn > span {
  display: inline !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct #pay-common-RUB,
#payment-form-steam-direct.form-style-playbalance #payment-steam-direct #pay-common-EXT {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct #pay-common-RUB img,
#payment-form-steam-direct.form-style-playbalance #payment-steam-direct #pay-common-EXT img {
  display: block !important;
  margin: 0 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  max-height: 28px !important;
  height: auto !important;
  width: auto !important;
  max-width: 36px !important;
  flex-shrink: 0 !important;
}

/* Согласие сразу под кнопками оплаты — как хинт под логином Steam */
#payment-form-steam-direct.form-style-playbalance .payment-form-steam-rules--below-pay {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-checkbox-label--as-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  font-weight: 400;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-checkbox-label--as-hint span {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  line-height: 1.35 !important;
  color: #8fa3bf !important;
  font-weight: 400 !important;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-checkbox-label--as-hint input[type="checkbox"] {
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #2f2fe4;
  cursor: pointer;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-status--below-pay {
  margin-top: 10px;
}

#payment-form-steam-direct.form-style-playbalance .payment-form-steam-direct-status--below-pay .payment-form-steam-status {
  margin: 0;
  line-height: 1.35;
}

/* Ссылки только в основной форме (не трогаем <button> Карта/СБП и пресеты сумм) */
#payment-form-steam-direct.form-style-playbalance #payment-steam-direct a {
  color: #2f2fe4;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

#payment-form-steam-direct.form-style-playbalance #payment-steam-direct a:hover {
  color: #7077ed;
}

@media (max-width: 540px) {
  #payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-buttons {
    gap: 8px !important;
  }

  #payment-form-steam-direct.form-style-playbalance #payment-steam-direct .payment-form-steam-pay-btn {
    height: 52px !important;
    min-height: 52px !important;
  }
}

/* Cabinet (same form_style slug) */
body.universal-admin-cabinet.form-style-playbalance #steam-admin-table-scroll {
  overflow-x: auto;
}

body.universal-admin-cabinet.form-style-playbalance #steam-admin-table {
  min-width: 1100px;
}

body.universal-admin-cabinet.form-style-playbalance #steam-admin-table input[name="tx_method_id[]"] {
  min-width: 160px;
}
