/* Поле «ник Telegram» (tg-account.js) — ОДИН вид в магазине и на сайте (сайт грузит
   файл как /tg/tg-account.css). Раскладка и цвета взяты у секции выбора консоли в
   корзине (cart.css → .cart-console-card), чтобы обязательный шаг перед оплатой
   выглядел одинаково, где бы он ни стоял. */

.tgacc {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(28, 40, 74, 0.4);
  border: 1px solid rgba(120, 150, 220, 0.16);
}
.tgacc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tgacc-label { font-size: 15px; font-weight: 800; color: #eef3ff; }
.tgacc-help {
  padding: 0;
  border: 0;
  background: none;
  color: #8aa8ff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline dotted;
}
.tgacc-help.is-open { color: #cfd9ff; }

.tgacc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 220, 0.28);
  background: rgba(10, 16, 34, 0.55);
  color: #eef3ff;
  font: inherit;
  font-size: 16px;               /* 16px — иначе iOS увеличивает страницу при фокусе */
  font-weight: 600;
  outline: none;
}
.tgacc-input::placeholder { color: rgba(190, 205, 235, 0.45); font-weight: 500; }
.tgacc-input:focus { border-color: rgba(120, 160, 255, 0.6); }

.tgacc-note { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #9fb0d0; }

/* Ответ проверки: зелёный — ник найден (с именем владельца), красный — к оплате не
   пускаем, жёлтый — предупреждение (бот). */
.tgacc-state { margin-top: 8px; font-size: 13px; line-height: 1.45; font-weight: 600; }
.tgacc.is-ok .tgacc-state { color: #7fe0b0; }
.tgacc.is-bad .tgacc-state { color: #ff9a9a; }
.tgacc.is-warn .tgacc-state { color: #ffd166; }
.tgacc.is-bad .tgacc-input { border-color: rgba(255, 120, 120, 0.55); }
.tgacc.is-ok .tgacc-input { border-color: rgba(90, 210, 160, 0.45); }

.tgacc-explain {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 34, 0.45);
  border: 1px solid rgba(120, 150, 220, 0.14);
}
.tgacc-explain p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #c6d3ee; }
.tgacc-explain p:last-child { margin-bottom: 0; }
.tgacc-explain b { color: #eef3ff; }
