/* General container styling */
.container {
    display: flex;    
    width: 100%; /* Full width */
    max-width: 1200px; 
    min-height: 400px; /* Set a new minimum height */
    margin: 0 auto;
    padding: 5px; /* Added padding for better spacing */
}
/* Content inside the blank side */  
.blank {
    width: 100%;
    max-width: 600px; /* Max width */
    margin: 0 auto;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    padding: 20px;
    display: flex; /* Enable flexbox */    
    align-items: left; /* Center items vertically */
}

.blank-content h1 {
    font-size: 2rem; 
}

.blank-content p {
    font-size: 1rem; 
}

.arrow-button { 
    display: flex; 
    align-items: right; 
    background-color: rgba(255, 255, 255, 0.1); 
    color: white; 
    padding: 8px; 
    border-radius: 25px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    font-size: 12px; 
    justify-content: center; 
    margin-top: 40px; 
    margin-left: 10px; /* Center the button */
    width: 50px;
    height: 35px;
}

/* Hover effect */
.arrow-button:hover {
    background-color: rgba(0, 107, 177, 0.8); 
}

.arrow-icon {
    font-size: 20px; 
    transition: transform 0.3s ease; 
}

.arrow-button:hover .arrow-icon {
    transform: translateX(-5px); 
}

.amount-section {
    padding: 15px;   
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end; /* Align items to the right */
    margin-top: 0px;
}

.psp-h2 {
    color: white;  
    text-align: right;   
    margin-right: 190px;
    margin-top: 0px;
    margin-bottom: 1.5px; /* Space between title and content */
    font-size: 30px;
}
.amount-section p {
    color: white;  
    text-align: left;   
    margin-right: 60px;
    margin-top: 0px;
}
@media (min-width: 1024px) { /* Adjust the screen width as needed */
    .psp-h2 {
        text-align: center; /* Center the text horizontally */
        margin-right: 345px; /* 345 Remove right margin to center properly */
        margin-left: 0px; /* Ensure no additional margins affect centering */
    }
    .amount-section p {
        text-align: center; /* Center the text horizontally */
        margin-right: 200px; /* Remove right margin to center properly */
        margin-left: 0; /* Ensure no additional margins affect centering */
    }
    .content-item {
        margin-right: 150px;
    } 
    .psp-hr {
        margin: 10px 150px !important;

    }   
}
.content-section-one {
   
    width: 100%; /* Make it full width of the parent */
    max-width: 300px; /* Set a maximum width for rectangle */
    max-height: 100px; /* Set a maximum height for rectangle */
    margin: 20px 0px 20px 200px; /* 10px top/bottom margin, 10px right for spacing */
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack items vertically */
    align-items: stretch; /* Make items take the full width */
    justify-content: flex-start; /* Align items to the top */
    color: white; /* Set text color to white */    
    
}

.content-item {
    display: flex; /* Use flexbox for each item */
    justify-content: space-between; /* Space between text and value */
    margin-bottom: 5px; /* Reduced space between items */
    width: 100%; /* Full width */
}

.content-item p {
    margin: 0 10px; /* Add some horizontal space between items */
}

/* Form container styling */
.form-container {
    width: 100%;      
    background-color: #ffffff; 
    padding: 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);    
    border: 1px solid #ddd; 
    z-index: 2; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;  
   
}

.payment-form {
    padding: 20px; 
}
.payment-methods p {
    font-weight: bold;
    margin-bottom: 1rem;
}

.payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    flex: 1 1 100px; /* Allow flexible sizing */
}

.payment-button img {
    max-width: 30px;
    margin-right: 0.5rem;
}

.payment-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.payment-button.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.payment-button.selected img {
    filter: brightness(0) invert(1);
}

.payment-information p {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Form row styling */
.form-row {
    display: flex; /* Ensure flex display */
    justify-content: space-between; /* Distribute space evenly */
    margin-bottom: 10px; 
}

.form-row .form-group {
    flex: 1; /* Allow flexible sizing */
    min-width: 0; /* Remove min-width to allow fitting in one row */
    margin-right: 10px; /* Add space between the fields */
}
/* Make the card number field larger */
.form-row .form-group.card-number {
    flex: 2; /* Adjust this value to make it larger */
}
/* Remove margin for the last field to avoid extra space */
.form-row .form-group:last-child {
    margin-right: 0; 
}
/* Error message styling */
.error-message {
    color: red;  
    margin-top: 0px;
    font-size: 13px;
}

.payment-icons {
    display: flex;
    justify-content: left; 
    gap: 0.1rem; 
    margin: 1rem 0; 
    width: 100%;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.payment-icon {
    width: 50px; 
    height: auto; 
}

/* Logo styling */
.psp-logo img {
    max-width: 100%; 
    width: 150px; 
    height: 80px; 
    object-fit: contain; 
}

.psp-logo {
    text-align: center; 
    margin-bottom: 0px; 
}

/* Form label styling */
#pspxml_form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px; 
    line-height: 1.5; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Input field styling */
#pspxml_form input[type="text"],
#pspxml_form input[type="email"],
#pspxml_form input[type="number"],
#pspxml_form textarea,
#pspxml_form select {
    width: 100%;
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-sizing: border-box;
    font-size: 14px; 
    margin-bottom: 10px; 
    background-color: #ffffff; 
}

/* Remove the focus outline */
#pspxml_form input:focus,
#pspxml_form select:focus {
    border-color: #007bff; 
    box-shadow: none; 
}

/* Submit button styling */
#pspxml_form input[type="submit"] {
    background: #005d8b; 
    color: #ffffff;
    border: none;
    padding: 15px; 
    font-size: 16px; 
    border-radius: 4px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; 
    margin-top: 20px; 
}

#pspxml_form input[type="submit"]:hover {
    background: #005d8b; 
}

/* Receipt content styling */
#receiptContent { 
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    margin-top: 20px; 
    box-shadow: 1px 1px 30px 10px rgba(0, 0, 0, 0.15);
    width: 100%; /* Full width */
    max-width: 300px; /* Max width */
}

#receiptContent h2 {
    margin-top: 0;
    text-align: center; 
}  

#receiptContent p {
    font-family: 'Arial', sans-serif; 
    font-size: 12px; 
    color: #080707;    
}

#receiptContent button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.psp-hr {
    border: none; /* Remove the default border */
    height: 2px; /* Set the height of the line */
    background-color: #f7f7f7; /* Set the color */
    margin: 10px 0px; /* Add margin for spacing */
    width: 100%; /* Full width */
}
/* .cc-card {
    width: 100% !important; 
    height: auto !important; 
    margin: 5px auto !important; 
    justify-content: flex-start !important;
} */
/* #gpay-button-online-api-id {
    background-color: #006ba1;
    border: 1px solid #006ba1;
    border-radius: 8px;
    color: #006ba1;      
}
.gpay-card-info-placeholder-container {
    display: block !important; 
    width: 10% !important; 
    height: auto !important; 
    margin: 20px auto !important; 
    justify-content: flex-start !important;
} */
.button-row {
    display: flex; /* Align children in a row */
    gap: 10px; /* Add space between the buttons (optional) */
}

.pay-buttons-row .f-button {
    background-color: #000000; /* Green */
    border-radius: 4px;
    color: white;
    padding: 5px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: 7px;
    height: 40px;  
    width: 100%;
}

/* Payment button styling */
.payment-methods {
    margin-bottom: 2rem;
}
    
.payment-buttons {     
    display: flex;
    flex-direction: column;
    gap: 10px;  
}
.pay-buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adds space between Google Pay and Apple Pay buttons */
}

.google-pay,.apple-pay-button {
    flex: 1; /* Ensure both buttons share equal width */
    text-align: center;
    min-width: 250px;
}

.google-pay > google-pay-button,.apple-pay-button {   
    width: 100%; /* Allow it to scale with the container */    
}
.apple-pay-button {
    margin-bottom: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column; 
        padding: 10px; 
        overflow: hidden; /* Prevent scrolling */
        align-items: center; /* Center content horizontally */
    }  

    .blank {
        max-width: 90%; /* Increased max width */
        width: 100%; /* Ensure it takes full width */
        padding: 20px; /* Increased padding */
        min-height: 350px; /* Set a minimum height */
    }
    .form-container {
        max-width: 100%; /* Use full width */
        width: 100%; /* Ensure they take full width */
        padding: 0 10px; /* Add some horizontal padding */
    }

    .blank-content {
        width: 100%; /* Full width for the content */
    }

    .blank-content h1 {
        font-size: 1.5rem; 
    }

    .blank-content p {
        font-size: 0.9rem; 
    }

    .arrow-button {
        width: 40px; /* Adjust button width */
        padding: 10px; 
        margin-left: 10px; /* Center the button */        
    }

    .amount-section {
        align-items: flex-end; /* Align items to the start (left) */
        text-align: left; /* Ensure text is aligned to the left */
    }

    .psp-h2{
        margin-left:0; /* Reset margins */
        text-align: left; /* Center text */
        
    }    
    .amount-section p {
        margin-left:0; /* Reset margins */
        text-align: left; /* Center text */
        
    }
    .content-section-one {
        max-width: 100%; /* Full width */
        margin: 0 15px 20px 0;
    }

    .content-item {
        flex-direction: row; /* Stack items on smaller screens */
        width: 100%; /* Full width for content items */
    }
    .form-row {
        flex-direction: column; /* Stack form fields vertically */
    }

    .form-row .form-group {
        margin-right: 0; /* Remove margin on the right */
        margin-bottom: 10px; /* Add some space below each field */
    }
    .google-pay-button {
        width: 100%;
        max-width: 320px !important;
    }
    .pay-buttons-row .f-button {
        width: 100%;        
    }
}

@media (max-width: 480px) {
    .blank {
        max-width: 95%; /* Further increased max width for smaller screens */
        padding: 15px; /* Maintain sufficient padding */
        min-height: 350px; /* Set a minimum height for smaller screens */
    }
    .blank-content h1 {
        font-size: 1.2rem; 
    }

    .blank-content p {
        font-size: 0.8rem; 
    }

    .payment-button {
        flex: 1 1 80px; /* Adjust button sizing */
        width: 100%; /* Full width for buttons */
    }

    #pspxml_form input[type="submit"] {
        padding: 12px; /* Smaller padding */
    }

    #receiptContent {
        padding: 20px; /* Reduce padding */
        width: 100%; /* Full width */
        max-width: none; /* No max width */
    }
    .psp-h2{
        text-align: left; /* Ensure text is aligned to the left */
    }    
    .amount-section p {
        text-align: left; /* Ensure text is aligned to the left */
    }    
}