@media (max-width: 578.9px) {
  .popup_balance_content {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 579px) and (max-width: 1186.9px) {
  .popup_balance_content {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 1187px) {
  .popup_balance_content {
    display: flex;
    flex-direction: row;
    gap: 15px;
  }
}

@media (max-width: 578.9px) {
  .popup_middle_line {
    display: none !important;
  }

  .popub_balance_second {
    width: 100%;
  }
}

@media (min-width: 579px) and (max-width: 1186.9px) {
  .popup_middle_line {
    display: none !important;
  }

  .popub_balance_second {
    width: 100%;
  }
}

@media (min-width: 1187px) {
  .popub_balance_second {
    width: 600px;
  }
}

@media (max-width: 768.9px) {

  .popub_balance_first,
  .popub_balance_second {
    background: transparent;
    width: 100%;
    height: auto;
  }

  .popub_balance_second {
    padding: 0 20px 20px;
  }
}

@media (min-width: 769px) {

  .popub_balance_first,
  .popub_balance_second {
    background: transparent;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 389.9px) {
  .popup_pay_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 390px) and (max-width: 568.9px) {
  .popup_pay_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 569px) and (max-width: 768.9px) {
  .popup_pay_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .popup_pay_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.popup_gateways {
  display: none;
  transition: 0.7s;
}

.input-form label {
  transition: 0.7s;
}

.popup_gateways-label {
  position: relative;
  width: 100% !important;
  height: 100px !important;
  background-color: var(--input-form) !important;
  outline: 1px solid var(--bottom-line-table);
  display: flex;
  border-radius: 12px;
  transition: 0.7s;
  margin: 0 !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.popup_gateways-label img {
  background-position: center;
  background-repeat: no-repeat;
  width: 60%;
  height: auto;
  z-index: 1;
}

input.popup_gateways:checked+label.popup_gateways-label:before {
  content: "";
  -webkit-animation: popup_check linear 0.3s;
  animation: popup_check linear 0.3s;
  position: absolute;
  left: 0px;
  top: 0px;
  border-radius: 12px;
  background: linear-gradient(to top right, var(--span-middle), transparent);
  height: 100%;
  width: 100%;
  outline: 1px solid var(--span-middle);
}

input.popup_gateways:checked+label.popup_gateways-label:after {
  content: "\2713";
  font-size: 11px;
  font-weight: 500;
  color: var(--span);
  -webkit-animation: popup_check linear 0.3s;
  animation: popup_check linear 0.3s;
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 25px;
  background: var(--span-low);
  height: 18px;
  width: 18px;
  padding-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 1px solid var(--span);
}

@-webkit-keyframes popup_check {
  0% {
    opacity: 0;
    transition: 0.7s;
  }

  50% {
    opacity: 0.5;
    transition: 0.7s;
  }

  100% {
    opacity: 1;
    transition: 0.7s;
  }
}

@keyframes popup_check {
  0% {
    opacity: 0;
    transition: 0.7s;
  }

  50% {
    opacity: 0.5;
    transition: 0.7s;
  }

  100% {
    opacity: 1;
    transition: 0.7s;
  }
}

.popup_pay_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--input-form);
  padding: 10px 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

div#kass_img {
  width: 80px;
  height: auto;
}

.popup_pay_info::before {
  content: "";
  background-image: url(/../storage/cache/img/lkback/wallet.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: -18%;
  left: 30%;
  opacity: 0.5;
  width: 200px;
  height: 200px;
  z-index: 0;
}

.popup_pay_info_left {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.popup_title_text {
  color: var(--text-custom);
  font-size: 12px;
}

.popup_pay_method {
  color: var(--text-default);
  font-size: 16px;
  font-weight: 600;
  font-family: "Unbounded";
}

.popup_input-form {
  position: relative;
  text-align: left;
  margin-bottom: 10px;
  color: var(--text-custom);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup_input-form input {
  font-size: 13px;
  padding: 15px 14px;
  color: var(--span);
  background-color: var(--input-form);
  border-radius: 12px;
  width: 100%;
  transition: 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 3px solid transparent;
}

.popup_input-form input:focus {
  outline: 3px solid var(--span);
  transition: 0.3s;
}

.popup_input-form .input_text {
  display: flex;
  color: var(--text-custom);
  font-size: 12px;
  text-align: left;
  align-items: center;
  gap: 5px;
}

.popup_input-form svg {
  width: 12px;
  height: 12px;
  fill: var(--text-custom);
}

.popup_number input[type="number"]::-webkit-outer-spin-button,
.popup_number input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

.popup_number {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
}

.popup_number-minus {
  right: 7px;
}

.popup_number-plus {
  right: 45px;
}

.popup_number-minus,
.popup_number-plus {
  display: flex !important;
  position: absolute;
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--transparent);
  color: var(--text-custom);
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.popup_number-minus:hover,
.popup_number-plus:hover {
  background: var(--button);
}

.popup_number input[type="number"] {
  font-size: 13px;
  padding: 15px 14px;
  color: var(--span);
  background-color: var(--input-form);
  border-radius: 12px;
  width: 100%;
  transition: 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 3px solid transparent;
}

.popup_number input[type="number"]:focus {
  outline: 3px solid var(--span);
  transition: 0.3s;
}

.popup_column {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input[type="checkbox"] {
  display: none;
}

.form-group input[type="checkbox"]+label {
  display: inline-block;
  padding-left: 35px;
  position: relative;
  color: var(--text-custom);
  cursor: pointer;
  color: #aaa;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  line-height: 24px;
}

.form-group input[type="checkbox"]+label:last-child {
  margin-bottom: 0;
}

.form-group input[type="checkbox"]:checked+label:before {
  border-radius: 0;
  opacity: 1;
  border-radius: 6px;
  border: 1px solid var(--green);
  background-color: var(--green);
  font-size: 14px;
}

@media all and (min-width: 481px) {
  .form-group.accept {
    margin: 10px 0;
    display: flex;
    position: relative;
    transition: all 0.1s ease-in-out;
    white-space: normal;
    justify-content: flex-start;
  }

  .form-group input[type="checkbox"]+label:before {
    content: "\2713";
    display: flex;
    width: 25px;
    height: 25px;
    color: white;
    font-size: 0;
    text-shadow: 0 1px 1px rgb(0 0 0 / 23%);
    font-weight: 800;
    border: 1px solid var(--text-custom);
    border-radius: 6px;
    background-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: all 0.12s, border-color 0.08s;
    transition: all 0.12s, border-color 0.08s;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
  }
}

@media all and (max-width: 480px) {
  .form-group.accept {
    margin: 10px 0;
    display: flex;
    position: relative;
    transition: all 0.1s ease-in-out;
    white-space: normal;
    justify-content: flex-start;
  }

  .form-group input[type="checkbox"]+label:before {
    content: "\2713";
    display: flex;
    width: 25px;
    height: 25px;
    color: white;
    font-size: 0;
    text-shadow: 0 1px 1px rgb(0 0 0 / 23%);
    font-weight: 800;
    border: 1px solid var(--text-custom);
    border-radius: 6px;
    background-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: all 0.12s, border-color 0.08s;
    transition: all 0.12s, border-color 0.08s;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
  }
}

.popup_btn_disabled {
  cursor: no-drop;
  opacity: 0.2;
  user-select: none;
  -webkit-user-drag: none;
}

.popup_btn_disabled:hover,
.popup_btn_purple:hover {
  filter: none !important;
}

.popup_btn_purple {
  background: var(--purple);
  color: white;
}

.promoresult_st {
  text-align: center;
  background-color: var(--money-bg);
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--text-default);
  font-size: 13px;
  font-weight: 400;
}

.amount_st {
  color: var(--money);
  font-weight: 700;
  font-size: 14px;
}

.popup_fill_width {
  flex: 1 1 calc((100% / 6) - 10px);
}

.popup_middle_line {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

span.popup_line_top {
  display: block;
  height: 51%;
  width: 1px;
  background: var(--bottom-line-table);
}

span.popup_line_bottom {
  display: block;
  height: 52%;
  width: 1px;
  background: var(--bottom-line-table);
}

span.popup_arrow {
  height: 3%;
  position: relative;
  width: 6px;
  overflow: hidden;
}

.popup_arrow::before,
.popup_arrow::after {
  border-right: 1px solid var(--bottom-line-table);
  content: "";
  display: block;
  height: 12px;
  top: -3px;
  position: absolute;
  transform: rotate(135deg);
  left: 2px;
  width: 0;
}

.popup_arrow::after {
  margin-top: 6px;
  transform: rotate(45deg);
}

.popup_promo_list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bottom-line-table);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  min-height: 49px;
  justify-content: center;
}

.popup_current_promo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  overflow: hidden;
}

.popup_current_promo svg {
  width: 13px;
  height: auto;
  fill: var(--text-custom);
}

.popup_copybtn {
  transition: opacity 0.3s ease-in-out;
}

.hidden {
  opacity: 0;
}

.popup_clear_promo {
  display: flex !important;
  position: absolute;
  right: 6px;
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgb(255 73 64 / 10%);
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.popup_clear_promo svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  transition: 0.3s;
}

.popup_promo_area {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
}

#promoresult {
  margin-top: 0 !important;
}

.skintoggle {
  display: flex;
  flex-direction: column;
}

div#kass_img img {
  width: 80px;
  height: auto;
}

.pay_access {
  height: max-content;
  transition: .2s;
}

.pay_hide {
  height: 0;
  transition: height 2s ease-out;
  overflow: hidden;
}

.popup_promo_block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

#popupPay>div {
  padding: 30px 40px;
  border: 3.67px solid transparent;
  background-clip: padding-box;
  position: relative;
  font-family: "Atyp Display";
}

#popupPay>div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 3.67px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

#popupPay .popup_modal_head {
  padding-block: 15px;
}

.pay_gateways_grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .pay_gateways_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pay_gateways_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pay_gateway_card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgb(99 99 99 / 25%), rgba(255, 255, 255, 0));
  border-radius: 16px;
  width: 207px;
  min-width: 100%;
  height: 92px;
  padding: 20px;
  cursor: pointer;
  border: solid 1px rgb(255 255 255 / 30%);
  transition: 0.3s;
  position: relative;
}

input.pay_gateways_popup:checked+label.pay_gateway_card:before {
  content: "";
  -webkit-animation: popup_check linear 0.3s;
  animation: popup_check linear 0.3s;
  position: absolute;
  left: 0px;
  top: 0px;
  border-radius: 12px;
  background: linear-gradient(to top right, var(--span-middle), transparent);
  height: 100%;
  width: 100%;
  outline: 1px solid var(--span-middle);
}

.pay_gateway_icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.3s;
}

.pay_gateway_card .pay_gateway_icon.color {
  display: none;
}

input[type="radio"]:checked+.pay_gateway_card .pay_gateway_icon.color {
  display: inline;
}

input[type="radio"]:checked+.pay_gateway_card .pay_gateway_icon.dark {
  display: none;
}

.pay_form_fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pay_form_row {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pay_form_field.steam {
  flex: 0 0 100%;
}

.pay_form_field {
  flex: 1 1 calc(50% - 30px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pay_form_label {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.pay_form_label span {
  color: #A64343;
  font-size: 16px;
}

.pay_input_wrapper {
  position: relative;
  width: 100%;
}

.pay_form_input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  border: none;
  background: var(--input-form);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

input.pay_form_input::placeholder {
  color: rgb(255 255 255 / 30%);
}

input.pay_form_input[type="number"]::-webkit-outer-spin-button,
input.pay_form_input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input.pay_form_input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.pay_form_input:focus {
  box-shadow: 0 0 0 2px var(--span);
}

.pay_input_wrapper:focus-within .pay_input_icon svg {
  fill: var(--span);
  opacity: 1;
}

.pay_input_icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pay_input_icon svg {
  height: 20px;
  fill: var(--text-custom);
  opacity: 0.3;
  transition: 0.3s;
}

.pay_form_checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay_form_checkbox_input {
  display: none;
}

.pay_form_checkbox svg {
  height: 20px;
  width: 20px;
  overflow: visible;
  margin-right: 10px;
}

.pay_form_checkbox svg .path {
  fill: none;
  stroke: #353535;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
  stroke-dasharray: 241 9999999;
  stroke-dashoffset: 0
}

.pay_form_checkbox .pay_form_checkbox_input:checked~svg .path {
  stroke-dasharray: 70.5096664428711 9999999;
  stroke-dashoffset: -262.2723388671875;
  stroke: var(--span);
}

.pay_form_checkbox_label {
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.form-group.accept a {
  color: #fff;
  transition: 0.3s;
}

.form-group.accept a:hover {
  color: var(--span);
}

.pay_form_submit {
  display: flex;
  width: 100%;
  max-width: 323px;
  height: 47px;
  border-radius: 6px;
  background: var(--input-form);
  color: rgb(255 255 255 / 30%);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-inline: auto;
  transition: 0.3s;
  align-items: center;
  justify-content: center;
}

.pay_form_submit:enabled {
  color: var(--text-custom);
  background: var(--span);
  opacity: 1;
}

.pay_form_submit:disabled {
  cursor: not-allowed;
}

.pay_gateways {
  position: relative;
}

.input-error {
  position: absolute;
  bottom: -25px;
  left: 5px;
  color: #A64343;
  letter-spacing: 1px;
}

.input-error#error-gatewayPay {
  text-align: center;
  width: 100%;
  left: 0px;
}