/* ==========================================
   БАЗОВЫЕ СТИЛИ И СКРЫТИЕ ЭЛЕМЕНТОВ
   ========================================== */
#form_payment_button {
  display: none;
}

#form_payment_bank_select {
  display: none;
}

#form_payment_card_select {
  display: none;
}

#form_payment_check {
  display: none;
}

/* Placeholder остаётся серым даже когда input красный */
input::placeholder {
  color: #9ca3af !important;
  font-weight: 400 !important;
}

/* Скрываем контейнеры банков по умолчанию (JS покажет нужный) */
#ch_lk,
#de_lk,
#au_lk,
#nz_lk {
  display: none;
}

#loader {
  display: none;
}

/* ==========================================
   АНИМАЦИИ АККОРДЕОНА
   ========================================== */
#form_payment_card {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    max-height 0.2s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#form_payment_card.visible {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

#form_payment_bank {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#form_payment_bank.visible {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   СТИЛИ БАНКОВ (СКРОЛЛБАРЫ И РАЗМЕРЫ)
   ========================================== */
#au_lk,
#nz_lk,
#ch_lk,
#de_lk {
  margin-top: 10px;
  height: calc(9 * 26px);
  overflow-y: auto;
  padding: 1px;
}

#au_lk::-webkit-scrollbar,
#nz_lk::-webkit-scrollbar,
#ch_lk::-webkit-scrollbar,
#de_lk::-webkit-scrollbar {
  width: 2px;
}

#au_lk::-webkit-scrollbar-thumb,
#nz_lk::-webkit-scrollbar-thumb,
#ch_lk::-webkit-scrollbar-thumb,
#de_lk::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 2px;
}

.ConnectionsBankPicker-logoButton {
  width: 99%;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.ConnectionsBankPicker-logoButton:last-child {
  border-bottom: none;
}

.ConnectionsBankPicker-logoButton:hover {
  background-color: #f5f5f5;
}

/* ==========================================
   ФОРМЫ CUSTOM BANK И KYC
   ========================================== */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-group label {
  width: 150px;
  margin-right: 10px;
}

.form-group input {
  flex: 1;
}

/* ==========================================
   BODY И CHAT WIDGET
   ========================================== */
body {
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.support-circle {
  width: 60px;
  height: 60px;
  background: #d4e4f7;
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999999;
  box-shadow: #c3cfdd 0px 12px 24px 0px;
}

.support-circle::before {
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  top: 15px;
  left: 15px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240,0 C372.5625,0 480,87.1407005 480,194.68599 C480,302.23128 372.5625,389.371981 240,389.371981 C204,389.371981 169.96875,382.726449 139.3125,371.213768 C87.109375,400.003959 42.421875,400.003959 14.0814012,400.003959 C11.0814012,400.003959 42.421875,361.363406 53.4375,317.019928 C20.0625,283.605072 -2.84217094e-14,241.111111 -2.84217094e-14,194.68599 C-2.84217094e-14,87.1407005 107.4375,0 240,0 Z' fill='white'/%3E%3C/svg%3E");
}

#chatra {
  visibility: visible;
  opacity: 1;
  transform: translateY(0px);
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 999999;
}

/* ==========================================
   KEYFRAME АНИМАЦИИ
   ========================================== */
@keyframes placeload {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes exit {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes enter {
  0% {
    opacity: 0.1;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes enter-form-mobile {
  0% {
    opacity: 0.1;
    transform: translateY(1rem);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes enter-form-desktop {
  0% {
    opacity: 0.1;
    transform: translateX(1.5rem);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes enter-background-shadow {
  0% {
    opacity: 0.1;
    transform: scaleX(0.9);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================
   LOADING ИНДИКАТОРЫ
   ========================================== */
.LOADING-loads {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.LOADING-loads:after {
  animation: placeload 1.3s linear infinite forwards;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0));
  content: "";
  transform: translateX(-100%);
  width: 200%;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
}

.LOADING-container {
  animation: enter 0.3s 0s;
  animation-fill-mode: both;
  display: flex;
  padding: 0 16px;
  pointer-events: none;
  right: 0;
  z-index: 9999999;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
}

.LOADING-container.is-embedded {
  display: block;
  height: auto;
}

.LOADING-container.is-hidden {
  display: none;
}

.LOADING-hidden {
  animation: exit 0.3s;
  animation-fill-mode: both;
}

.LOADING-checkoutContainer {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 380px;
  padding: 16px 0;
  position: relative;
  width: 100%;
}

.LOADING-container.is-embedded .LOADING-checkoutContainer {
  margin-top: 43px;
  padding: 0 47px 0 32px;
}

.LOADING-container.is-embedded.LOADING-container--single .LOADING-checkoutContainer {
  margin-top: -34px;
}

.LOADING-header {
  min-height: 32px;
  align-items: center;
  display: flex;
}

.LOADING-backArrow {
  color: rgba(0, 0, 0, 0.2);
  height: 32px;
  justify-content: center;
  margin-right: 8px;
  width: 14px;
  align-items: center;
  display: flex;
}

.LOADING-logo {
  border-radius: 100%;
  height: 28px;
  width: 28px;
}

.LOADING-productSummary {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  margin-top: 32px;
}

.LOADING-productTitle {
  border-radius: 20px;
  height: 16px;
  margin: 2px 0;
  order: 2;
  width: 85px;
}

.LOADING-productPrice {
  border-radius: 20px;
  height: 28px;
  margin: 8px 0 32px;
  order: 3;
  width: 123px;
}

.LOADING-productImageContainer {
  margin: 0 auto 20px;
  order: 1;
}

.LOADING-productImage {
  height: 120px;
  order: 1;
  width: 120px;
}

.LOADING-paymentTitle {
  display: none;
}

.LOADING-paymentHeader {
  border-radius: 20px;
  display: block;
  height: 26px;
  margin-bottom: 40px;
  width: 160px;
}

.LOADING-paymentHeader.is-hidden {
  display: none;
}

.LOADING-payment-oneRow,
.LOADING-payment-twoRow {
  width: 100%;
}

.LOADING-button {
  height: 44px;
  margin-top: 56px;
  width: 100%;
}

.LOADING-payment-oneRow {
  height: 46px;
}

.LOADING-payment-twoRow {
  height: 90px;
}

.LOADING-payment-link {
  height: 110px;
}

.LOADING-mb38 {
  margin-bottom: 39px;
}

.LOADING-mb24 {
  margin-bottom: 24px;
}

.LOADING-checkoutPayment {
  animation: enter-form-mobile 0.3s 0.1s;
  animation-fill-mode: both;
  margin-top: 48px;
  opacity: 0.1;
  transform: translateY(2rem);
}

.LOADING-container--single .LOADING-checkoutPayment {
  margin-top: 0;
}

.LOADING-container--single .LOADING-productSummary {
  display: none;
}

.LOADING-container--single .LOADING-checkoutOverview {
  margin-bottom: 66px;
  padding-bottom: 0;
}

.LOADING-footer {
  bottom: -3em;
  color: hsla(0, 0%, 10%, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Ubuntu, sans-serif;
  font-size: 12px;
  left: 0;
  position: absolute;
  text-align: center;
  width: 100%;
}

.LOADING-footer svg {
  fill: hsla(0, 0%, 10%, 0.4);
  position: relative;
  top: 4px;
}

.LOADING-container--single .LOADING-footer {
  bottom: -2rem;
}

.LOADING-container.LOADING-container--redirectPage .LOADING-checkoutContainer,
.LOADING-container.LOADING-container--spinner .LOADING-checkoutContainer,
.LOADING-container:not(.LOADING-container--redirectPage) .LOADING-redirectContainer,
.LOADING-container:not(.LOADING-container--spinner) .LOADING-spinner {
  display: none;
}

.LOADING-redirectContainer {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.LOADING-redirectContainer .LOADING-redirectSpinner {
  height: 60px;
  order: 1;
  width: 60px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.LOADING-redirectContainer .LOADING-redirectTitle {
  height: 40px;
  margin-top: 12px;
  order: 2;
  width: 130px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.LOADING-redirectContainer .LOADING-redirectMessage {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 60px;
  justify-content: center;
  margin-top: 12px;
  order: 3;
  width: 300px;
}

.LOADING-spinner {
  animation: spin 1.4s linear infinite;
  background: linear-gradient(90deg, #bababa 10%, rgba(255, 255, 255, 0) 42%);
  border-radius: 50%;
  height: 48px;
  margin: auto;
  position: relative;
  transform: translateZ(0);
  width: 48px;
}

.LOADING-spinner:before {
  border-radius: 100% 0 0 0;
  height: 50%;
  width: 50%;
  background: #ffffff;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
}

.LOADING-spinner:after {
  border-radius: 50%;
  bottom: 0;
  height: 85%;
  margin: auto;
  right: 0;
  width: 85%;
  background: #ffffff;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */
@media only screen and (max-width: 991.98px) {
  .LOADING-container.is-embedded .LOADING-checkoutContainer {
    margin-top: 5px;
    max-width: 412px;
    padding: 15px;
  }

  .is-embedded .LOADING-productSummary {
    align-items: flex-start;
    flex-direction: row;
  }

  .is-embedded .LOADING-productImageContainer {
    margin: 0 16px 0 0;
    order: -1;
  }

  .is-embedded .LOADING-productImage {
    height: 42px;
    order: 1;
    width: 42px;
  }

  .is-embedded .LOADING-checkoutPayment {
    margin-top: 24px;
  }

  .is-embedded.LOADING-container--single .LOADING-checkoutPayment {
    margin-top: -12px;
  }

  .is-embedded .LOADING-productPrice {
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 992px) {
  .LOADING-checkoutContainer {
    justify-content: space-between;
  }

  .LOADING-payment-oneRow {
    height: 38px;
  }

  .LOADING-payment-twoRow {
    height: 74px;
  }

  .LOADING-header {
    left: -21px;
    min-height: 28px;
    position: relative;
  }

  .LOADING-backArrow {
    height: 28px;
    margin-left: 0;
  }

  .LOADING-container {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 0;
  }

  .LOADING-double .LOADING-checkoutContainer {
    flex-direction: row;
    max-width: 920px;
    padding: 16px 0 0;
  }

  .LOADING-container--single .LOADING-checkoutContainer {
    align-items: center;
  }

  .LOADING-container:not(.LOADING-container--single) .LOADING-checkoutPayment {
    animation: enter-form-desktop 0.3s 0.1s forwards;
    margin-top: 0;
    opacity: 0.1;
    transform: translateX(2rem);
  }

  .LOADING-checkoutOverview,
  .LOADING-checkoutPayment {
    margin-bottom: 0;
    padding-bottom: 40px;
    width: 380px;
  }

  .LOADING-container:not(.LOADING-container--single):not(.is-embedded):not(.hide-halfPageBoxShadow):before {
    animation: enter-background-shadow 0.3s;
    animation-fill-mode: both;
    background: white;
    box-shadow: 15px 0 30px 0 rgba(0, 0, 0, 0.18);
    content: " ";
    height: 100vh;
    opacity: 0.1;
    position: fixed;
    right: 0;
    top: 0;
    transform: scaleX(0.9);
    transform-origin: right;
    width: 50%;
  }

  .LOADING-container.LOADING-container--redirectPage:before {
    display: none;
  }

  .LOADING-productSummary {
    align-items: flex-start;
    margin-bottom: 0;
  }

  .LOADING-productTitle {
    order: 1;
  }

  .LOADING-productPrice {
    margin: 13px 0 32px;
    order: 2;
  }

  .LOADING-container--multiItem .LOADING-productImageContainer {
    display: none;
  }

  .LOADING-productImageContainer {
    height: 300px;
    margin: 32px 0;
    order: 3;
    width: 300px;
  }

  .LOADING-productImage {
    height: 187px;
    order: 3;
    width: 187px;
  }

  .LOADING-footer {
    bottom: 0;
    left: 0;
    margin: 12px 0;
    position: absolute;
    text-align: left;
  }

  .LOADING-paymentTitle {
    border-radius: 20px;
    display: block;
    height: 26px;
    margin-bottom: 40px;
    width: 160px;
  }

  .LOADING-container--single .LOADING-footer {
    text-align: center;
  }

  .LOADING-container--multiItem .LOADING-lineItem {
    display: flex;
    margin-bottom: 24px;
    order: 3;
  }

  .LOADING-container--multiItem .LOADING-productImage {
    display: none;
  }

  .LOADING-container--multiItem .LOADING-lineItem-image {
    display: inline-block;
    height: 42px;
    width: 42px;
  }

  .LOADING-container--multiItem .LOADING-lineItem-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 12px;
  }

  .LOADING-container--multiItem .LOADING-lineItem-line {
    height: 12px;
    width: 280px;
  }
}

/* ==========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ========================================== */
.css-7rm0nb {
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-inline: 20px;
  margin-top: 15px;
  margin-bottom: 10px;
  border-radius: 0.5rem;
}

.circle-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dce9f9;
}

.circle-img img {
  width: 75%;
  height: 75%;
  object-fit: cover;
}