/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top - increased for better visibility */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Ensure modal is visible when shown */
.modal.show {
    display: block !important;
}

/* Force display when inline style is set */
.modal[style*="display: block"] {
    display: block !important;
}

.modal[style*="display:block"] {
    display: block !important;
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 0px 0px 20px;
    border: 1px solid #888;
    position: fixed;
    overflow: hidden;
    width: 100%;
    max-width: 768px;
    height: 90%;
    top: 30px;
    left: 0;
    right: 0;
    margin: auto;
    transition: all .3s ease-in-out;
    z-index: 2;
  }

  #paymentGatewayContianer {
    width: 100%;
    height: calc(100% - 25px);
    border: none;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
    z-index: 3;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Additional styles for better modal visibility */
.modal:not([style*="display: none"]) {
    display: block !important;
}

/* Ensure iframe is properly sized */
#paymentGatewayContianer {
    width: 100% !important;
    height: calc(100% - 25px) !important;
    border: none !important;
    display: block !important;
  }