#myModal{
    position: relative;
    z-index: 1000;
}

.modal-dialog{
    width: 400px;
    margin: auto auto;
    border: 1px solid #ccc;
}

.modal-dialog{ transform: scale(0.5); }
.modal-dialog{ transform: scale(1); }

.modal-dialog .modal-content{
    text-align: center;
    border: none;
    background: #fff;
    
}

.modal-body{ padding: 40px 40px 40px !important; }
.modal-body .title{
    color: #026fd4;
    font-size: 33px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 10px;
}
.modal-body .description{
    color: #9A9EA9;
    font-size: 16px;
    margin: 0 0 20px;
}
.modal-body .form-group{
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}
.modal-body .input-icon{
    color: #777;
    font-size: 18px;
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    left: 20px;
}
.modal-body .form-control{
    font-size: 17px;
    height: 45px;
    width: 100%;
    padding: 4px;
    margin: 0 auto;
    border: 2px solid #eee;
    border-radius: 5px;
    box-shadow: none;
    outline: none;
}
.form-control::placeholder{
    color: #AEAFB1;
}


.modal-body .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
  }

.site-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
}

.process-otp{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
}

.loader-otp {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 100px;
    height: 100px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

.otp-enter{
    display: none;
}

.modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.modal-heading{
    font-weight: 700;
}

.otptitle{
    font-size: 20px;
    font-weight: 700;
    margin-top: 1em;
}

.modal-body .description{
    color: #9A9EA9;
    font-size: 14px;
}

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

.wc-credit-card-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
}

.wc-credit-card-form .ali-form-row, .wc-credit-card-form .ali-form-row-two {
    margin-bottom: 1em;
}

.ali-form-row-two {
    display: flex;
    justify-content: space-between;
    width: 95%;
    font-size: 14px;
}

.ali-form-row input {
    width: 95%;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 14px;
}

.ali-form-row-two select {
    width: 60%;
    border: 1px solid #eee;
    border-radius: 5px;
}

/* ============================================ */
/* FINAL ASTRA + STRIPE PERFECT UI              */
/* ============================================ */

body.woocommerce-checkout #wc-ali-gateway-cc-form {
  background: #fff !important;
  padding: 28px !important;
  border-radius: 18px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.10) !important;
  margin-bottom: 25px !important;
}

body.woocommerce-checkout #wc-ali-gateway-cc-form input#ybc_ccno {
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/0/04/Visa.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 38px;
  padding-right: 55px !important;
}

body.woocommerce-checkout #wc-ali-gateway-cc-form input,
body.woocommerce-checkout #wc-ali-gateway-cc-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 48px !important;
  padding: 12px 15px !important;
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  background: #f9fafb !important;
}

body.woocommerce-checkout #wc-ali-gateway-cc-form .form-row-first,
body.woocommerce-checkout #wc-ali-gateway-cc-form .form-row-last {
  width: 48% !important;
}

body.woocommerce-checkout #wc-ali-gateway-cc-form .form-row-first {
  margin-right: 4% !important;
}

body.woocommerce-checkout #place_order {
  margin-top: 25px !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 100% !important;
}

@media (max-width: 600px) {
  body.woocommerce-checkout #wc-ali-gateway-cc-form .form-row-first,
  body.woocommerce-checkout #wc-ali-gateway-cc-form .form-row-last {
    width: 100% !important;
    margin-right: 0 !important;
  }
}


/* ============================================ */
/* STRIPE HEADER ICONS FOR PAYMENT TITLE        */
/* ============================================ */

body.woocommerce-checkout label[for="payment_method_ali-gateway"] {
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.woocommerce-checkout label[for="payment_method_ali-gateway"]::after {
  content: "";
  display: inline-block;
  width: 120px;
  height: 26px;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/0/04/Visa.svg"),
    url("https://upload.wikimedia.org/wikipedia/commons/a/a4/Mastercard_2019_logo.svg"),
    url("https://upload.wikimedia.org/wikipedia/commons/f/fa/American_Express_logo_%282018%29.svg");
  background-repeat: no-repeat;
  background-size: 34px, 34px, 34px;
  background-position: 0 center, 42px center, 84px center;
  opacity: 0.95;
}


/* ============================================ */
/* STRIPE TITLE BOLD PROFESSIONAL FIX           */
/* ============================================ */

body.woocommerce-checkout label[for="payment_method_ali-gateway"] {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

body.woocommerce-checkout label[for="payment_method_ali-gateway"]::after {
  margin-left: auto !important;
}
