/* General form styling */
#payment-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-input2,
.address-div,
.card-div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.user-input2-div,
.card-div div {
    flex: 1 1 calc(50% - 10px); /* Adjusts width for two columns */
    min-width: 150px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Make layout stack vertically on small screens */
@media screen and (max-width: 600px) {
    .user-input2-div,
    .card-div div {
        flex: 1 1 100%; /* Full-width for smaller screens */
    }

    .price, 
    #currencyChanger {
        width: 100%;
    }
}

/* Button styling */
.submit-butn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #21243D;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-butn:hover {
    background-color: #181a31;
}

/* Loader styling */
.loader-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #21243D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



input:focus{
  outline:none !important;
  border: 1px solid lightgray !important;
}
#payment-form{
  input{
      height: 48px !important;
  }
  .user-div{
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  .user-input1{
      display: flex;
      width: 100%;
      gap: 5px;
  }
  .user-input2{     
      display: flex;
      width: 100%;
      gap: 5px;
      .user-input2-div{
          width: 100%;
          input{
              width: 100%;
          }
      }
  }
  .address-div{
      display: flex;
      flex-direction: column;
      gap: 10px;
      input{
          width: 100%;
      }
  }
  .card-div{
      display: flex;
      /* flex-direction: column; */
      gap: 10px;
      input{
          width: 100%;
      }
  }
  .submit-butn{
      width: 100%;
      background-color:#5e3df2 ;
      color: white;
  }
  .merchant-div{
      label{
          display: flex;
          flex-direction: column;
      }
  }
}
.price{
  color: #5e3df2;
  font-weight: 600;
  font-size: 30px;
}

#bapp_billing_country{
  padding: .6180469716em;
  background-color: #f2f2f2;
  background-color: #f2f2f2 !important;
  color: #43454b !important;
  border: 0;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-weight: 400;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
}

select#bapp_billing_country {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 1rem center;
  padding-right: 2rem;
  background-size: 1rem;
}

select#bapp_billing_country:focus {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg>') no-repeat right 1rem center;
  padding-right: 2rem;
  background-size: 1rem;
}

.loader-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: -20px 0 0 -20px;
}

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


#bapp_billing_state{
  padding: .6180469716em;
  background-color: #f2f2f2;
  background-color: #f2f2f2 !important;
  color: #43454b !important;
  border: 0;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-weight: 400;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
}


select#bapp_billing_state {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 1rem center;
  padding-right: 2rem;
  background-size: 1rem;
}

select#bapp_billing_state:focus {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg>') no-repeat right 1rem center;
  padding-right: 2rem;
  background-size: 1rem;
}

label{
  color: #ff0000;
  font-size: 12px;
  margin: 0;
  padding: 0;
}



.card-input {
  display: flex;
  align-items: center;
  background: #f2f2f2;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
}

.card-input input {
  border: none;
  padding: 10px;
  font-size: 16px;
  flex: 1;
  background: transparent;
  color: #43454b;
  outline: none;
}

.card-input input::placeholder {
  color: #43454b;
}

.card-input input:not(:first-child) {
  margin-left: 10px;
  max-width: 80px;
}

.card-input input#cvv {
  max-width: 60px;
}