.overlay-main-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    align-items: center;
    z-index: 99999;
    overflow-y: auto;
    display: block;
}

.payment-loading,
.payment-success {
    display: grid;
}

.overlay-inside-wrapper {
    margin: 0 auto;
    max-width: 800px;
}

.payment-loading .overlay-inside-wrapper,
.payment-success .overlay-inside-wrapper {
    text-align: center;
}

/* Style for the back button */

.back-button {
    position: relative;
    background: #333;
    color: white;
    border: none;
    padding: 0px 15px 5px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin: 10px 0px;
}

.back-button::before {
    content: "\2190";
    font-size: 25px;
    font-weight: bold;
}

.back-button:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
}

/* Style for the overlay */

.overlay-section {
    /* width: 100%;
    display: block; */
}

#review-overlay .overlay-section {
    margin: 50px 0px;
}

/* .overlay-section h4 {
    margin: 0px;
} */

#review-overlay h4 {
    margin: 20px 0px;
    text-align: left;
    /* font-size: 16px; */
}

#review-overlay .trip {
    margin-bottom: 20px;
}

.payment-area-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.payment-area-flex>div {
    width: 50%;
}

.total {
    font-size: 30px;
    color: #536387;
    font-weight: bold;
    cursor: default;
}

/* Styles for the overlay */

.light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.3;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.overlay-content {
    text-align: center;
    /* color: #fff; */
}

.overlay-content p {
    line-height: 1.5;
}

.page-overlay {
    width: 800px;
    height: 643.4px;
    position: relative;
    margin: auto;
    /* width: 100%;
    height: 100%; */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-overlay>.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ok-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
}

.ok-button:hover {
    background-color: #45a049;
}

@media (max-width: 800px) {

    .overlay-inside-wrapper {
        padding: 20px;
    }

}

@media screen and (max-width: 600px) {

    .page-overlay {
        width: 100%;
    }

    .overlay-main-wrapper h2 {
        font-size: 26px;
    }

    .back-button {
        margin-top: 0px;
    }

    .overlay-inside-wrapper {
        max-width: 100%;
        display: block;
        padding: 20px;
    }

    .overlay-section {
        width: inherit;
        display: block;
    }

    .overlay-section h4 {
        text-align: center;
    }

    .total {
        text-align: center;
    }

    .payment-area-flex {
        display: block;
    }

    .payment-area-flex>div {
        width: 100% !important;
    }
}