@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;300;400&family=Roboto:wght@100;300;400&display=swap');

:root {
    --green: #51bdd2;
    --white: #FFF;
    --gray: #333;
    --lightgray: #eaeaea;
    --th: 'Kanit', sans-serif;
    --en: 'Roboto', sans-serif;
}

.editcookies {
    display: none;

}

.editcookies.active {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .2);
    border-radius: 50%;
    overflow: hidden;
    display: block;
 
    white-space: nowrap;
    position: fixed;
    left: 50px;
    bottom: 13%;
    z-index: 9999;

}

.editcookies img {

    width: 30px;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform:translate(-50%,-50%);
    -moz-transform:translate(-50%,-50%);
    -ms-transform:translate(-50%,-50%);
    -o-transform:translate(-50%,-50%);
    transform:translate(-50%, -50%);
}

.editcookies:hover:after {
    background-color: var(--white);
    color: var(--gray);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .2);
    padding: 5px 20px;
    border-radius: 20px;
    position: fixed;
    left: 120px;
    z-index: 9999;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* .editcookies:hover:after,
.editcookies.lang-th:hover:after {
    content: "th สรุปความยินยอมทั้งหมด";
}
.editcookies.lang-en:hover:after {
    content: "en สรุปความยินยอมทั้งหมด";
} */

.popeditcookies {
    position: fixed;
    background-color: var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
    width: 100%;
    min-height: 200px;
    max-width: 480px;
    z-index: 9998;
    border-radius: 20px;
    display: none;

}

.popeditcookies.active {
    display: block;
    left: 50px;
    bottom: calc(15% + 50px);

}

@media(max-width:480px) {
    .editcookies.active {
        left: 10px;
    }

    .popeditcookies.active {
        left: 10px;
        right: 10px;
        width: 90%;
        margin: 0 auto;
        max-width: inherit;
    }

    .editcookies:hover:after {
        left: 65px;
    }
}

.popeditcookies .headpop {
    font-size: 1em;
    font-weight: 800;
    display: block;
    width: 100%;
    padding: 15px 10px 10px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.btnclosepop {
    background-color: transparent;
    border: none;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    float: right;
    cursor: pointer;

}

.swappad {
    padding: 10px 30px !important;
}

.popeditcookies h3 {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    padding: 0;
    margin: 10px 0;
}

.popeditcookies ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popeditcookies li {
    padding: 0;
}

.popeditcookies li span {
    width: 30px;
    height: 30px;
    color: var(--white);
    font-size: 16px;
    font-family: bootstrap-icons !important;
    vertical-align: middle;
    margin-right: 10px;

}

.popeditcookies li span.check:after {
    content: "\F26E";
    background-color: var(--green);
    border-radius: 50%;

}

.popeditcookies li span.uncheck:after {
    content: "\F2EA";
    background-color: #ccc;
    border-radius: 50%;
}

.btnmaster {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    padding: 10px 20px;
    margin-bottom: 10px;
    font-size: 1em;
    width: 100%;
    border: none;
    background-color: var(--white);
    border-radius: 5px;
    letter-spacing: .5px;
}

.hypertxt {
    font-size: 1em !important;
    font-weight: 600;
    justify-content: left;
    background-color: var(--white);
    padding: 10px 0;
    margin: 10px 0;
}

.sectiondetail {
    display: none;

}

.sectiondetail.active {
    display: block;
    transition: all ease-in-out .35s;
    padding: 0 0 10px 0;
}

.sectiondetail p strong {
    font-family: var(--th);
    font-weight: 600;
    font-size: 14px !important;
    display: block;

}

.sectiondetail p {
    font-family: var(--en);
    font-size: 16px !important;
    line-height: 20px;
    margin: 0 0 10px 0;
    padding: 0;
    color: #333;
}


.btngreen {
    background-color: var(--green);
    border: 1px solid var(--green);
    color: var(--white);
}

.btnwhite {
    background-color: var(--white);
    color: var(--green);
    border: 1px solid var(--green);
}