/* 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 account modals (generator pages omit legacy index CSS) */
:root {
  --black: #000;
  --orange: #FF8200;
  --gray-border: #c4c4c4;
  --danger: #d93025;
}

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

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

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

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

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

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

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

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

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

.topup-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 322px;
  margin: 0 auto;
}

.topup-form__title {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.topup-form__description {
  margin: 36px 0 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.topup-form__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 11px;
}

.topup-form__field label,
.topup-form__field legend {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 400;
}

.topup-form__field .input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  font-size: 18px;
  color: var(--black);
}

.topup-form__field .input::placeholder {
  color: #bdbdbd;
  opacity: 1;
}

.topup-form__hint {
  display: none;
}

.topup-payment-select {
  appearance: none;
  background: #fff;
}

.topup-form__error {
  min-height: 20px;
  margin: -6px 0 18px;
  color: var(--danger);
  font-size: 16px;
}

.topup-form__status {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  background: #fafafa;
  font-size: 14px;
  line-height: 20px;
}

.topup-form__status strong {
  color: var(--orange);
  font-weight: 700;
}

.topup-form__actions {
  display: block;
  margin-top: 8px;
}

.topup-form__actions .button {
  width: 100%;
  min-height: 38px;
  margin: 0;
  border-radius: 5px;
  font-size: 16px;
}

.withdraw-form__balance {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.withdraw-form__note {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.account-withdraw.button:disabled,
.account-withdraw.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.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;
  }

  .topup-modal__content {
    width: min(456px, calc(100vw - 28px));
    padding: 54px 24px 42px;
  }

  .topup-modal__close {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }

  .topup-modal__close:before,
  .topup-modal__close:after {
    top: 17px;
    left: 4px;
    width: 30px;
    height: 5px;
  }

  .topup-form__field label,
  .topup-form__field legend {
    font-size: 18px;
  }

  .topup-form__field .input {
    height: 42px;
    padding: 0 12px;
    font-size: 18px;
  }

  .topup-form__actions .button {
    min-height: 42px;
    font-size: 17px;
  }

  .topup-form__description {
    margin-top: 32px;
    font-size: 18px;
    line-height: 23px;
  }
}

@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;
  }

  .topup-modal {
    align-items: center;
    padding: 16px;
  }

  .topup-modal__content {
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 48px 18px 32px;
  }

  .topup-form {
    max-width: none;
  }

  .topup-form__field label,
  .topup-form__field legend {
    font-size: 17px;
  }

  .topup-form__field .input {
    height: 40px;
    font-size: 17px;
  }

  .topup-payment-select {
    font-size: 15px !important;
  }

  .topup-form__actions .button {
    min-height: 40px;
    font-size: 16px;
  }

  .topup-form__description {
    margin-top: 28px;
    font-size: 16px;
    line-height: 21px;
  }
}

/* Low balance modal — redesigned paywall popup */
.low-balance-modal__content {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .24s ease, transform .24s ease;
}

.low-balance-modal__main {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 36px 32px 24px;
}

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

.low-balance-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color .2s ease;
}

.low-balance-modal__close:hover {
  color: #374151;
}

.low-balance-modal__hero {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.low-balance-modal__wallet-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff4eb;
}

.low-balance-modal__wallet {
  display: block;
}

.low-balance-modal__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #fff;
}

.low-balance-modal__title {
  margin: 0 0 10px;
  color: #1a1a2e;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.low-balance-modal__divider {
  width: 48px;
  height: 3px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: var(--orange);
}

.low-balance-modal__body {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.low-balance-modal__amount {
  color: var(--orange);
  font-weight: 700;
}

.low-balance-modal__info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f3f4f6;
  text-align: left;
}

.low-balance-modal__info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
}

.low-balance-modal__info-text {
  flex: 1;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.low-balance-modal__add-funds {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 12px 44px 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.low-balance-modal__add-funds-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

.low-balance-modal__add-funds:hover {
  background: #e67600;
}

.low-balance-modal__add-funds:active {
  transform: scale(.985);
}

.low-balance-modal__dismiss {
  display: flex;
  align-items: center;
  gap: 12px;
}

.low-balance-modal__dismiss-line {
  flex: 1;
  height: 1px;
  background: #d1d5db;
}

.low-balance-modal__not-now {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease;
}

.low-balance-modal__not-now:hover {
  color: #6b7280;
}

.low-balance-modal__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 24px;
  background: #f3f4f6;
  border-radius: 0 0 20px 20px;
  text-align: left;
}

.low-balance-modal__shield {
  flex-shrink: 0;
  display: block;
}

.low-balance-modal__footer-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

@media screen and (max-width: 420px) {
  .low-balance-modal__content {
    width: calc(100vw - 24px);
  }

  .low-balance-modal__main {
    padding: 32px 20px 20px;
  }

  .low-balance-modal__title {
    font-size: 22px;
  }

  .low-balance-modal__body,
  .low-balance-modal__info-text,
  .low-balance-modal__footer-text {
    font-size: 14px;
  }

  .low-balance-modal__add-funds {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Generation loader (#load_load) — solid card overlay (replaces legacy :before pseudo) */
#load_load.load {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: rgba(0, 0, 0, .6);
  z-index: 1002;
}

#load_load.load:before {
  display: none;
  content: none;
}

#load_load.load.active {
  visibility: visible;
  opacity: 1;
}

#load_load .load_content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(456px, calc(100vw - 28px));
  max-width: 100%;
  padding: 40px 52px 36px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .4);
  text-align: center;
}

#load_load .load_text {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

#load_load .load_label {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

#load_load .load_label p {
  margin: 0;
  text-align: center;
}

#load_load .load_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 18px 0 0;
}

@media screen and (max-width: 760px) {
  #load_load .load_content {
    padding: 36px 28px 32px;
  }

  #load_load .load_text {
    font-size: 26px;
  }

  #load_load .load_label {
    font-size: 16px;
    line-height: 22px;
  }
}

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

  #load_load .load_content {
    width: calc(100vw - 20px);
    padding: 32px 18px 28px;
  }

  #load_load .load_text {
    font-size: 24px;
  }

  #load_load .load_label {
    font-size: 15px;
    line-height: 21px;
  }
}

.content_result_img.veriftools-result-blurred img {
  filter: blur(18px);
  transform: scale(1.04);
}

.veriftools-demo-notice {
  margin: 16px 0 0;
  max-width: 520px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Account dashboard (index.html cart view) */
body.account-dashboard-active .main-content {
  display: grid;
  grid-template-columns: 310px minmax(0, 900px);
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1270px;
  margin: 5px auto 116px;
  align-items: start;
}

body.account-dashboard-active .default {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

body.account-dashboard-active footer[data-v-046e0130] {
  height: 56px;
  padding: 0;
  margin-top: auto;
  line-height: 56px;
  background: #fff;
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
}

body.account-dashboard-active .main-content > .left-menu,
body.account-dashboard-active .main-content > main,
body.account-dashboard-active .account-dashboard {
  min-width: 0;
  width: 100%;
}

.account-summary {
  display: grid;
  min-height: 124px;
  grid-template-columns: 190px 112px minmax(260px, 1fr) 148px;
  grid-template-rows: repeat(2, auto);
  align-items: center;
  gap: 13px 18px;
  padding: 15px;
  margin: 0 0 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px #7d7d7d1a;
}

.account-balance-line,
.account-referral-link,
.account-referral-balance {
  display: flex;
  align-items: center;
  min-width: 0;
}

.account-balance-line {
  grid-column: 1;
  grid-row: 1 / 3;
  gap: 12px;
  white-space: nowrap;
}

.account-referral-link {
  grid-column: 3 / 5;
  grid-row: 1;
  gap: 9px;
}

.account-referral-balance {
  grid-column: 3;
  grid-row: 2;
  gap: 12px;
  justify-self: start;
  white-space: nowrap;
}

.account-balance-line strong,
.account-referral-balance strong {
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
}

.account-money {
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

.account-topup.button,
.account-withdraw.button {
  margin: 0;
  font-size: 17px;
  color: #fff;
  background: var(--orange);
  white-space: nowrap;
}

.account-topup.button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 112px;
  height: 52px;
  padding: 0 14px;
}

.account-referral-link input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.account-referral-copy.button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  font-size: 15px;
  white-space: nowrap;
}

.account-percent {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
}

.account-withdraw.button {
  grid-column: 4;
  grid-row: 2;
  width: 148px;
  height: 36px;
  justify-self: start;
}

.account-panel {
  min-height: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px #7d7d7d1a;
  overflow: hidden;
}

.account-tabs {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 52px;
  padding: 0 12px;
  background: var(--background, #f4f4f4);
}

.account-tab {
  flex: 0 0 130px;
  margin: 0;
  border: 0;
  background: #c9c9c9;
  border-radius: 7px 7px 0 0;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.account-tab.active {
  background: #fff;
  color: var(--orange);
}

.account-panel-content {
  padding: 0;
}

.account-panel-content .account-empty {
  padding: 24px 20px;
}

.account-empty {
  min-height: 549px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9c9c9;
  font-size: 54px;
  font-weight: 700;
}

.account-referrals-table-wrap {
  overflow-x: auto;
  padding: 16px 20px 24px;
}

.account-referrals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.account-referrals-table th,
.account-referrals-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.account-referrals-table th {
  color: var(--orange);
  font-weight: 700;
}

@media screen and (max-width: 1100px) {
  body.account-dashboard-active .main-content {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .account-summary {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .account-balance-line,
  .account-topup.button {
    grid-row: auto;
  }

  .account-referral-link {
    grid-column: 1 / -1;
  }

  .account-referral-balance,
  .account-withdraw.button {
    grid-column: auto;
  }
}

@media screen and (max-width: 640px) {
  .account-tabs {
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  .account-tab {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 96px;
  }

  .account-summary {
    grid-template-columns: 1fr;
  }

  .account-balance-line,
  .account-topup.button,
  .account-referral-link,
  .account-referral-balance,
  .account-withdraw.button {
    grid-column: 1;
    grid-row: auto;
  }

  .account-empty {
    min-height: 320px;
    font-size: 32px;
  }
}

.account-cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 24px;
}

.account-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.account-cart-item__preview {
  flex: 0 0 96px;
}

.veriftools-cart-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  filter: blur(8px);
}

.account-cart-item__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-cart-item__date {
  color: #888;
  font-size: 13px;
}

.account-cart-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 88px;
}

.account-cart-buy {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.account-cart-buy:hover:not(:disabled) {
  background: #e67400;
  border-color: #e67400;
}

.account-cart-buy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.account-cart-remove {
  flex: 0 0 auto;
}

.veriftools-cart-thumb--clear {
  filter: none;
}

.account-cart-item--purchased {
  border-color: #d8f0d8;
  background: #fafffa;
}

/* Generator photo/signature crop modal (site-auth.js) */
.vt-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  transition: opacity .22s ease;
}

.vt-crop-modal.is-visible {
  display: flex;
  opacity: 1;
}

.vt-crop-modal__content {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 48px 28px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .4);
  text-align: center;
}

.vt-crop-modal__close {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease;
}

.vt-crop-modal__close:before,
.vt-crop-modal__close:after {
  content: "";
  position: absolute;
  top: 16px;
  left: 2px;
  width: 32px;
  height: 4px;
  background: var(--orange, #ff8200);
  border-radius: 3px;
}

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

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

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

.vt-crop-modal__title {
  margin: 0 0 8px;
  color: var(--orange, #ff8200);
  font-size: 24px;
  font-weight: 700;
}

.vt-crop-modal__hint {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.vt-crop-stage {
  position: relative;
  width: 100%;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.vt-crop-stage__viewport {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: #111;
}

.vt-crop-stage__image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  transform-origin: 0 0;
}

.vt-crop-stage__frame {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--orange, #ff8200);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .58);
  cursor: move;
  touch-action: none;
  pointer-events: auto;
  box-sizing: border-box;
}

.vt-crop-stage__frame.is-dragging {
  cursor: grabbing;
}

.vt-crop-stage__frame.is-resizing {
  cursor: inherit;
}

.vt-crop-stage__grid {
  position: absolute;
  background: rgba(255, 255, 255, .28);
  pointer-events: none;
}

.vt-crop-stage__grid--h1,
.vt-crop-stage__grid--h2 {
  left: 0;
  right: 0;
  height: 1px;
}

.vt-crop-stage__grid--h1 {
  top: 33.333%;
}

.vt-crop-stage__grid--h2 {
  top: 66.666%;
}

.vt-crop-stage__grid--v1,
.vt-crop-stage__grid--v2 {
  top: 0;
  bottom: 0;
  width: 1px;
}

.vt-crop-stage__grid--v1 {
  left: 33.333%;
}

.vt-crop-stage__grid--v2 {
  left: 66.666%;
}

.vt-crop-stage__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  pointer-events: none;
}

.vt-crop-stage__corner--tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.vt-crop-stage__corner--tr {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.vt-crop-stage__corner--bl {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}

.vt-crop-stage__corner--br {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.vt-crop-stage__handle {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  touch-action: none;
  box-sizing: border-box;
}

.vt-crop-stage__handle--tl,
.vt-crop-stage__handle--tr,
.vt-crop-stage__handle--bl,
.vt-crop-stage__handle--br {
  width: 16px;
  height: 16px;
  background: var(--orange, #ff8200);
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.vt-crop-stage__handle--tl {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.vt-crop-stage__handle--tr {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.vt-crop-stage__handle--bl {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.vt-crop-stage__handle--br {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}

.vt-crop-stage__handle--t,
.vt-crop-stage__handle--b {
  left: 50%;
  width: 32px;
  height: 12px;
  margin-left: -16px;
  background: #fff;
  border: 2px solid var(--orange, #ff8200);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.vt-crop-stage__handle--t {
  top: -7px;
  cursor: ns-resize;
}

.vt-crop-stage__handle--b {
  bottom: -7px;
  cursor: ns-resize;
}

.vt-crop-stage__handle--l,
.vt-crop-stage__handle--r {
  top: 50%;
  width: 12px;
  height: 32px;
  margin-top: -16px;
  background: #fff;
  border: 2px solid var(--orange, #ff8200);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.vt-crop-stage__handle--l {
  left: -7px;
  cursor: ew-resize;
}

.vt-crop-stage__handle--r {
  right: -7px;
  cursor: ew-resize;
}

.vt-crop-stage__handle--tl::after,
.vt-crop-stage__handle--tr::after,
.vt-crop-stage__handle--bl::after,
.vt-crop-stage__handle--br::after,
.vt-crop-stage__handle--t::after,
.vt-crop-stage__handle--b::after,
.vt-crop-stage__handle--l::after,
.vt-crop-stage__handle--r::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.vt-crop-zoom {
  width: 100%;
  margin: 0 0 20px;
  accent-color: var(--orange, #ff8200);
}

.vt-crop-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.vt-crop-actions .button {
  min-width: 120px;
}

.vt-crop-actions .button.green {
  background: var(--orange, #ff8200);
  border-color: var(--orange, #ff8200);
}

@media screen and (max-width: 480px) {
  .vt-crop-modal__content {
    padding: 44px 16px 20px;
  }

  .vt-crop-modal__title {
    font-size: 20px;
  }

  .vt-crop-actions {
    flex-direction: column;
  }

  .vt-crop-actions .button {
    width: 100%;
  }
}
