.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    transition: 0.2s;
    opacity: 1;
}

.close:focus,
.close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.8;
}

button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    position: absolute;
    z-index: 200;
    right: -20px;
    top: -18px;
}

.modal-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.modal-open {
    overflow: visible;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 !important;
    z-index: 5600;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    transition: 0.2s ease-out;
    opacity: 1;
    background: rgb(203 203 203 / 32%);
    -webkit-backdrop-filter: saturate(340%) blur(20px);
    backdrop-filter: saturate(200%) blur(20px);
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px
}

.modal-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    outline: 0;
}

.modal-backdrop {
    /*position: fixed;*/
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

.modal-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5
}

.modal-header {
    min-height: 16.43px;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5
}

.modal-header .close {
    margin-top: -2px
}

.modal-title {
    margin: 0;
    line-height: 1.42857143
}

.modal-body {
    position: relative;
    padding: 15px
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5
}

.modal-footer .btn+.btn {
    margin-bottom: 0;
    margin-left: 5px
}

.modal-footer .btn-group .btn+.btn {
    margin-left: -1px
}

.modal-footer .btn-block+.btn-block {
    margin-left: 0
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

.modal.fade .modal-dialog-body {
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    transition: all 0.8s;
    top: -850px;
}

.modal.in .modal-dialog-body {
    top: 40px;
}

.gr_modal_sect {
    width: 100%;
    padding: 24px 2%;
    max-width: 640px;
    position: relative;
    border-radius: 12px;
}

.gr_modal_cont {
    width: 94%;
    padding: 4px 24px 4px 24px;
    position: relative;
    border-radius: 12px;
    margin: 0px auto 24px auto;
    background: rgb(0, 67, 112);
    background: linear-gradient(140deg, rgb(0 40 67) 0%, rgb(16 75 118) 49%, rgb(66 126 93) 100%);
}

.modal_subhead {
    font-size: 16px;
    line-height: 22px;
    color: rgb(84 98 107);
    font-weight: 400;
    letter-spacing: 0px;
    margin: 0px 0px 8px 0px;
    text-align: center;
    font-family: 'Noto Sans Thai', sans-serif;
}

.modal_title {
    font-size: 32px;
    margin: 4px 0px 8px 0px;
    line-height: 40px;
    background: linear-gradient(47deg, rgb(0 64 108) 52%, rgb(73 148 122)) text;
    color: transparent;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    text-align: center;
}

.modal_txt_body {
    font-weight: 500;
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 17px;
    letter-spacing: 0.2px;
    text-align: center;
}

.modal_pk_title {
    font-size: 20px;
    margin: 4px 0px 16px 0px;
    line-height: 48px;
    background: linear-gradient(47deg, rgb(222 220 202) -13%, rgb(199 181 104)) text;
    color: transparent;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 600;
    text-align: left;
}

.modal_pk_total {
    font-size: 40px;
    margin: 4px 0px 16px 0px;
    line-height: 48px;
    background: linear-gradient(47deg, rgb(255 255 255) 45%, rgb(255 232 131)) text;
    color: transparent;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    text-align: right;
}

.modal_num_kw {
    font-size: 56px;
    line-height: 22px;
    color: rgb(255 255 255);
    font-weight: 700;
    letter-spacing: 0px;
    text-transform: capitalize;
    margin: 0px 0px 8px 0px;
    text-align: left;
}

.modal_kw {
    font-size: 20px;
    line-height: 22px;
    color: rgb(213 213 213);
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: capitalize;
    margin: 0px 0px 8px -8px;
    text-align: left;
}

.gr_modal_img {
    width: 100%;
    height: auto;
    position: relative;
    margin: -78px auto 12px auto;
    justify-items: flex-end;
    display: grid;
}

.img_pk_products {
    max-width: 344px;
    display: block;
    height: auto;
}

.gr_modal_body {
    font-weight: 300;
    color: rgb(255, 255, 255);
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-align: right;
    margin: 0px 0px 0px 0px;
}


/* Slide Up from Bottom */

.modal-dialog-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    margin: 0% auto 0% auto;
    padding: 8px 1%;
    width: auto;
    max-width: 495px;
    min-width: 400px;
    height: auto;
    background: rgb(255 255 255);
    color: #fff;
    border-radius: 12px;
    opacity: 1;
    -webkit-transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(163deg, rgb(255 255 255 / 73%) 17%, rgb(255 255 255 / 64%) 35%, rgb(255 255 255 / 55%) 132%);
}

.img_queen {
    width: 90vw;
    max-width: 800px;
    display: block;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 12px;
    margin: auto;
}

.mo_desktop {
    display: block;
}

.mo_mobile {
    display: none;
}

.modal_queen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 !important;
    z-index: 5600;
    display: none;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.9);
    /*-webkit-backdrop-filter: saturate(100%) blur(4px);
    backdrop-filter: saturate(100%) blur(4px);
    -webkit-overflow-scrolling: touch;*/
    transition: 0.2s ease-out;
    opacity: 1;
}

.modal_queen.fade .modal-dialog-pop {
    transition: all 0.8s;
    top: -850px;
}

.modal_queen.in .modal-dialog-pop {
    top: 40%;
}

.modal-dialog-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0% auto 0% auto;
    /* padding: 8px; */
    width: auto;
    /* max-width: 480px; */
    /* min-width: 300px; */
    height: auto;
    /* background: rgb(0, 0, 0); 
    -webkit-box-shadow: rgb(0 0 0 / 20%) 0px 0px 10px 10px;
    box-shadow: rgb(0 0 0 / 20%) 0px 0px 10px 10px;
    /* border: 1px solid #555; */
    color: #fff;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modal_close {
    position: absolute;
    top: -10px;
    right: -10px;
    color: rgb(226, 0, 0);
    font-size: 24px;
    text-shadow: 0 0px 0 rgba(0, 0, 0, 0);
    z-index: 100;
}

.modal_book_cont {
    width: 100%;
    height: auto;
    text-align: center;
    float: left;
    margin: auto;
    font-size: 20px;
    line-height: 28px;
}

@media only screen and (max-width: 1200px) {
    .modal-dialog-pop {
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media only screen and (max-width: 992px) {
    .modal-lg {
        width: 900px
    }
    .modal-container {
        min-width: unset;
    }
    .modal-dialog-body {
        max-width: 465px;
        min-width: unset;
        width: 80%;
    }
}

@media only screen and (max-width: 768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto
    }
    .modal-content {}
    .modal-sm {
        width: 300px
    }
    .modal-dialog-body {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 0%);
    }
    .modal-container {
        /*min-width: 680px;*/
    }
}

@media only screen and (max-width: 685px) {
    .modal-dialog-body {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 100%);
    }
    .modal-dialog-pop {
        /*width: 88%;*/
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .modal-container {
        min-width: unset;
    }
    .img_queen {
        height: auto;
        /*max-width: 400px;*/
    }
    .mo_desktop {
        display: none;
    }
    .mo_mobile {
        display: block;
    }
    .modal.in .modal-dialog-body {
        top: 32px;
        transform: translate(-50%, 0%);
    }
    .img_pk_products {
        max-width: 100%;
        display: block;
        height: auto;
    }
}

@media only screen and (max-width: 600px) {
    .modal-dialog-body .modal-dialog-profile {
        width: 90%;
        height: auto;
    }
}

.fade {
    transition: opacity .15s linear
}

@media screen and (prefers-reduced-motion:reduce) {
    .fade {
        transition: none
    }
}


@media only screen and (max-width: 480px) {
.gr_modal_img {
    margin: -18px auto 12px auto;
}
}