@import url("https://thailocallink.com/css_center/mono");

.cv-policy {
    position: fixed;
    bottom: 0;
    /* width: 100%; */
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
}

.cv-policy .policy-in {
    background: rgba(110, 110, 110, 0.9);
    box-shadow: rgba(0, 0, 0, 0.16) 2px 2px 2px;
    border-radius: 5px 5px 0px 0px;
    padding: 13px;
    display: grid;
    max-width: 550px;
    margin: 0px auto;
    grid-template-columns: 1fr auto auto;
    column-gap: 15px;
    align-content: center;
    -webkit-box-align: center;
    align-items: center;
    position: relative;
}

.cv-policy .policy-in p {
    margin: 0px;
    color: white;
    font: 14px/24px 'Kanit', Arial, sans-serif;
}

.cv-policy .policy-in p a {
    text-decoration: underline;
    transition: all 0.5s ease 0s;
    color: white;
    display: inline-block;
    background: none;
    font-size: 18px;
    padding: 0px;
    font-weight: bold;
    font: 15px/24px 'Kanit', Arial, sans-serif;
}

.cv-policy .policy-in p a:link,
.cv-policy .policy-in p a:visited {
    font: 15px/24px 'Kanit', Arial, sans-serif;
}

.cv-policy .policy-in .policy-accept {
    background: rgb(19 135 203);
    transition: all 0.5s ease 0s;
    color: white !important;
    text-align: center;
    padding: 3px 10px;
    height: 100%;
    display: grid;
    -webkit-box-align: center;
    align-items: center;
    cursor: pointer;
    font: 16px/24px 'Kanit', Arial, sans-serif;
}

.cv-policy .policy-in .policy-setting {
    background: rgb(153 153 153);
    transition: all 0.5s ease 0s;
    color: white !important;
    text-align: center;
    padding: 3px 10px;
    height: 100%;
    display: grid;
    -webkit-box-align: center;
    align-items: center;
    cursor: pointer;
    font: 16px/24px 'Kanit', Arial, sans-serif;
}

.cv-policy-setting {
    font: 16px/20px 'Kanit', Arial, sans-serif;
}

.cv-policy-setting .st-backdrop {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3)!important;
    z-index: 99999;
    -webkit-transition: 0.4s all;
    -o-transition: 0.4s all;
    transition: 0.4s all;
    cursor: pointer;
}

.cv-policy-setting .st-sidebar {
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    z-index: 99999;
    -webkit-transition: 0.4s all;
    -o-transition: 0.4s all;
    transition: 0.4s all;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
}

.cv-policy-setting.active .st-backdrop {
    visibility: visible;
    opacity: 1;
}

.cv-policy-setting.active .st-sidebar {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.cv-policy-setting .st-header {
    padding: 1rem;
    border-bottom: solid 1px #e9e9e9;
}

.cv-policy-setting .st-title {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5em;
}

.cv-policy-setting .st-close {
    float: right;
    cursor: pointer;
    padding: 0.2em;
}

.cv-policy-setting .st-body {
    padding: 1em;
}

.cv-policy-setting .st-body h1 {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.8em;
}

.cv-policy-setting .st-body h2 {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.8em;
}

.cv-policy-setting .st-body p {
    font-size: 0.9em;
    font-weight: 300;
    margin-bottom: 1em;
}

.cv-policy-setting .st-body hr {
    margin-top: 1em;
    margin-bottom: 1em;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.cv-policy-setting .st-button {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375em 0.75em;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.cv-policy-setting .st-control {
    position: relative;
    display: block;
    min-height: 1.5em;
    padding-left: 1.5em;
}

.cv-policy-setting .st-switch {
    padding-left: 2.25em;
}

.cv-policy-setting .st-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.cv-policy-setting .st-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.cv-policy-setting .st-control-label::before {
    position: absolute;
    top: 0.25em;
    left: -1.5em;
    display: block;
    width: 1em;
    height: 1em;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: #adb5bd solid 1px;
}

.cv-policy-setting .st-switch .st-control-label::before {
    left: -2.25em;
    width: 1.75em;
    pointer-events: all;
    border-radius: 0.5em;
}

.cv-policy-setting .st-control-input:checked~.st-control-label::before {
    color: #fff;
    border-color: #007bff;
    background-color: #007bff;
}

.cv-policy-setting .st-control-label::after {
    position: absolute;
    top: 0.25em;
    left: -1.5em;
    display: block;
    width: 1em;
    height: 1em;
    content: "";
    background: no-repeat 50%/50% 50%;
}

.cv-policy-setting .st-switch .st-control-label::after {
    top: calc(0.25em + 3px);
    left: calc(-2.25em + 3px);
    width: calc(1em - 4px);
    height: calc(1em - 4px);
    background-color: #adb5bd;
    border-radius: 0.5em;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out;
}

.cv-policy-setting .st-switch .st-control-input:checked~.st-control-label::after {
    background-color: #fff;
    -webkit-transform: translateX(0.75em);
    transform: translateX(0.75em);
}

@media (max-width: 767px) {
    .cv-policy .policy-cookie {
        margin: 0px 15px;
        grid-template-columns: 100%;
        row-gap: 15px;
        max-width: 100%;
        width: auto;
    }
    .cv-policy .policy-cookie p span {
        padding-left: 0px;
    }
    .cv-policy .policy-cookie p {
        grid-column: span 2 / auto;
    }
    .cv-policy .policy-cookie p a {
        display: inline-block;
        text-align: left;
        padding-right: 4px;
    }
    .cv-policy .policy-cookie .policy-accept {
        grid-column: 1 / auto;
    }
    .cv-policy .policy-cookie .policy-setting {
        grid-column: 1 / auto;
    }
    .cv-policy {
        width: 100%;
        left: unset;
        transform: unset;
    }
}