/* Local overrides for restored verif.tools (Aug 2022) frontend */

/* Telegram promo overlay — styles were stripped by Wayback cleanup; hide it */
#banner1,
#__veriftools_overlay,
.__veriftools_overlay_woslider {
  display: none !important;
}

#localAuthBlock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

#localAuthBlock .header_cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

#localAuthBlock .header_cart_lentgh {
  position: absolute;
  top: -6px;
  right: -8px;
  margin: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff8200;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

#localAuthBlock .header_name {
  min-width: 0;
}

#localAuthBlock .header_name button {
  color: #333;
  font-size: 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#localAuthBlock .local-logout-button {
  font-size: 14px;
}

#localAuthBlock .content_balance_button,
#localAuthBlock .local-header-balance {
  cursor: pointer;
  line-height: 1;
}

@media screen and (max-width: 760px) {
  .header .bone {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .header {
    padding-top: env(safe-area-inset-top, 0);
  }

  #localAuthBlock {
    height: auto;
    min-height: 60px;
    justify-content: flex-end;
    gap: 8px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
  }

  #localAuthBlock .header_name button {
    font-size: 14px;
  }
}

@media screen and (max-width: 420px) {
  .header .bone {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  #localAuthBlock {
    gap: 6px;
  }

  #localAuthBlock .header_name button {
    font-size: 13px;
  }
}

#toast {
  transition: opacity 0.3s ease;
}

.pop_up_wrapper input[name="csrfmiddlewaretoken"] {
  display: none;
}

/* Brand tokens used by inactive-account paywall (generator pages omit legacy index CSS) */
:root {
  --black: #000;
  --orange: #FF8200;
  --gray-border: #c4c4c4;
}

.inactive-modal.is-visible {
  opacity: 1;
}

.inactive-modal.is-visible .inactive-modal__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.inactive-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .22s ease;
}

.inactive-modal__content {
  position: relative;
  width: min(456px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 58px 52px 46px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .4);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .24s ease, transform .24s ease;
}

.inactive-modal__close {
  position: absolute;
  top: 22px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease;
}

.inactive-modal__close:before,
.inactive-modal__close:after {
  content: "";
  position: absolute;
  top: 18px;
  left: 3px;
  width: 34px;
  height: 5px;
  background: var(--orange);
  border-radius: 3px;
}

.inactive-modal__close:before {
  transform: rotate(45deg);
}

.inactive-modal__close:after {
  transform: rotate(-45deg);
}

.inactive-modal__close:hover {
  transform: rotate(90deg);
}

.inactive-modal__title {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.inactive-modal__text {
  margin: 0 auto 12px;
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.inactive-modal__topup.button,
.inactive-modal__topup.button.green {
  width: 100%;
  min-height: 42px;
  margin: 18px 0 0;
  border-radius: 5px;
  font-size: 18px;
  color: #fff;
  background: var(--orange);
}

@media screen and (max-width: 760px) {
  .inactive-modal__content {
    width: min(456px, calc(100vw - 28px));
    padding: 58px 28px 42px;
  }

  .inactive-modal__title {
    font-size: 26px;
  }

  .inactive-modal__text {
    font-size: 18px;
    line-height: 24px;
  }
}

@media screen and (max-width: 420px) {
  .inactive-modal {
    align-items: flex-start;
    padding: 16px 10px;
  }

  .inactive-modal__content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 32px);
    padding: 56px 18px 34px;
  }

  .inactive-modal__title {
    font-size: 24px;
  }

  .inactive-modal__text {
    font-size: 16px;
    line-height: 21px;
  }

  .inactive-modal__topup.button {
    min-height: 40px;
    font-size: 16px;
  }
}
