:root {
  --payment-bg: #f5f5f3;
  --payment-surface: #ffffff;
  --payment-ink: #151515;
  --payment-muted: #6b6b68;
  --payment-soft: #ececea;
  --payment-lime: #dfff58;
  --payment-blue: #5c78ff;
}

html {
  min-height: 100%;
  background: var(--payment-bg);
}

body,
body.bg-gray-100 {
  min-height: 100vh;
  margin: 0;
  background: var(--payment-bg) !important;
  color: var(--payment-ink);
  font-family: "Manrope", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.block_form {
  min-height: 100vh;
  margin: 0 !important;
  padding: 28px 24px 56px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--payment-bg);
}

.fuck_block {
  width: min(100%, 1120px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.section {
  width: 100% !important;
  max-width: 1120px;
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(350px, 0.97fr);
  overflow: hidden;
  border: 0;
  border-radius: 32px !important;
  background: var(--payment-surface) !important;
  box-shadow: 0 24px 70px rgba(21, 21, 21, 0.12) !important;
}

.section > .div:first-child {
  width: 100% !important;
  min-width: 0;
  padding: 42px !important;
  background: linear-gradient(145deg, #0d0d0d, #111111) !important;
  color: #fff !important;
}

.section > .div:last-child {
  width: 100% !important;
  min-width: 0;
  padding: 42px !important;
  background: var(--payment-surface) !important;
  color: var(--payment-ink) !important;
}

.section > .div:first-child > .flex.justify-center.w-full {
  justify-content: flex-start !important;
}

.text-custom {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.payment-logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--payment-ink);
  color: var(--payment-lime);
}

.payment-logo-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.payment-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit !important;
  text-decoration: none;
}

.section > .div:first-child > .w-full.text-center.mt-5 {
  min-height: 0 !important;
  margin-top: 48px !important;
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px;
}

.section > .div:first-child > .w-full.text-center.mt-5 > .text-xl {
  font-size: 28px !important;
  line-height: 1.05;
  font-weight: 700 !important;
  letter-spacing: -0.05em;
}

#back-btn {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  border-radius: 50% !important;
  background: var(--payment-ink) !important;
  box-shadow: none !important;
}

#back-btn img {
  display: none !important;
}

#back-btn::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--payment-lime);
  transform: translate(-50%, -50%);
  -webkit-mask: url("../img/prev.svg") center / contain no-repeat;
  mask: url("../img/prev.svg") center / contain no-repeat;
}

#main-methods-list,
#crypto-methods-list {
  margin-top: 28px;
  padding: 0 !important;
  gap: 10px !important;
}

#main-methods-list .cursor_div,
#crypto-methods-list .cursor_div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
  filter: none !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#main-methods-list .cursor_div:hover,
#crypto-methods-list .cursor_div:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}

#main-methods-list .cursor_div > .method-item,
#crypto-methods-list .cursor_div > .method-item,
#crypto-selector > div {
  min-height: 70px;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  align-items: center;
}

#main-methods-list .cursor_div img,
#crypto-methods-list .cursor_div img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

#main-methods-list .cursor_div .font-medium,
#crypto-methods-list .cursor_div .font-medium {
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
}

#main-methods-list .method-item.ring-2,
#crypto-methods-list .method-item.ring-2 {
  border-color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset !important;
}

#main-methods-list .method-item.ring-2 .font-medium,
#crypto-methods-list .method-item.ring-2 .font-medium {
  color: #fff !important;
}

.section > .div:last-child > .p-10 {
  margin: 0 !important;
  padding: 0 !important;
}

.checkSum {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0 !important;
}

.checkSum::before {
  display: block;
  flex: 0 0 100%;
  margin-bottom: 12px;
  color: var(--payment-muted);
  content: "К оплате";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.money_width {
  color: var(--payment-ink) !important;
  font-size: clamp(42px, 4vw, 56px) !important;
  font-weight: 600 !important;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.055em;
}

.checkSum .starsSum {
  width: fit-content;
  margin: 0 !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--payment-soft);
  color: var(--payment-muted);
  font-size: 12px;
  display: none !important;
}

#pay_email {
  width: 100%;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  outline: 0;
  background: var(--payment-soft) !important;
  box-shadow: none !important;
  color: var(--payment-ink);
  font: 500 14px "Manrope", Arial, sans-serif !important;
  transition: border-color 0.18s ease, background 0.18s ease;
}

#pay_email:focus {
  border-color: var(--payment-blue) !important;
  background: #fff !important;
}

#go_pay {
  width: 100%;
  min-height: 58px;
  margin-top: 18px !important;
  padding: 0 22px !important;
  border: 0;
  border-radius: 10px !important;
  background: var(--payment-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
  font: 700 14px "Manrope", Arial, sans-serif !important;
  transition: transform 0.18s ease, filter 0.18s ease;
}

#go_pay:hover {
  filter: brightness(1.12);
  transform: none;
}

.payment-order-details {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--payment-soft);
}

.payment-order-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.payment-order-row + .payment-order-row {
  margin-top: 12px;
}

.payment-order-label {
  color: var(--payment-muted) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-order-value {
  min-width: 0;
  color: var(--payment-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

#pay_name,
#pay_error {
  display: none !important;
}

.block_spinner .spinner-border {
  color: var(--payment-blue) !important;
}

.modal.fade {
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  padding: 20px;
  background: rgba(21, 21, 21, 0.52);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.fade.show {
  visibility: visible;
  opacity: 1;
}

.modal-dialog {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  margin: 0 !important;
}

.modal-content {
  overflow: hidden;
  border: 0 !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(21, 21, 21, 0.2) !important;
}

.modal-body {
  padding: 30px 28px 28px !important;
  text-align: center;
}

#modal_text {
  margin: 0 0 22px;
  color: var(--payment-ink) !important;
  font: 700 20px/1.35 "Manrope", Arial, sans-serif !important;
}

.modal-body button {
  min-width: 72px;
  min-height: 42px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--payment-lime) !important;
  color: var(--payment-ink) !important;
  box-shadow: none !important;
  font: 800 14px "Manrope", Arial, sans-serif !important;
}

.modal-body button:hover {
  filter: brightness(0.96);
  transform: none;
}

@media (max-width: 820px) {
  .block_form {
    align-items: flex-start;
    padding: 34px 18px !important;
  }

  .section {
    grid-template-columns: 1fr;
    border-radius: 27px !important;
  }

  .section > .div:first-child,
  .section > .div:last-child {
    padding: 30px 24px !important;
  }

  .section > .div:first-child.rounded-l-3xl {
    border-bottom-left-radius: 0 !important;
  }

  .section > .div:first-child > .w-full.text-center.mt-5 {
    margin-top: 34px !important;
  }

  .section > .div:last-child {
    border-top: 1px solid var(--payment-soft);
  }

}

@media (max-width: 480px) {
  .section > .div:first-child,
  .section > .div:last-child {
    padding: 24px 18px !important;
  }

  .section > .div:first-child > .w-full.text-center.mt-5 > .text-xl {
    font-size: 25px !important;
  }

  .money_width {
    font-size: 44px !important;
    padding-top: 0 !important;
  }
}
