﻿/*Model Consent*/
.hwc-pdpa .popupCookieConsentSection {
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection {
    width: 570px;
    border-radius: 3px;
    padding: 20px;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection .wrapInPopupCookieConsentText {
    width: 100%;
    height: auto;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border: none;
    border-radius: 20px;
    padding: 77px 80px 46px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    /*overflow-y: scroll;*/
}

.popupCookieConsentSectionShow {
    display: block !important;
}

/*Toggle Switch*/
.hwc-pdpa .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .hwc-pdpa .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.hwc-pdpa .accordion-right label {
    width: 50px;
    height: 45px;
    float: right;
    top: -8px;
    position: relative;
}

    .hwc-pdpa .accordion-right label i {
        font-size: 44px;
        color: #D8D8D8;
        -webkit-transition: .4s;
        transition: .4s;
    }

        .hwc-pdpa .accordion-right label i.rotate-180 {
            -webkit-transition: .4s;
            transition: .4s;
            transform: rotate(180deg);
        }

.hwc-pdpa .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D8D8D8;
    -webkit-transition: .4s;
    transition: .4s;
}

    .hwc-pdpa .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.hwc-pdpa input:checked + .slider {
    background-color: #4DDBB8;
}

.hwc-pdpa input + .far.fa-toggle-on {
    display: none;
}

.hwc-pdpa input:checked + .far.fa-toggle-on {
    color: #4DDBB8;
    display: inline-block;
}

.hwc-pdpa input:checked ~ .far.fa-toggle-on.rotate-180 {
    display: none;
}

.hwc-pdpa input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.hwc-pdpa input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.hwc-pdpa .slider.round {
    border-radius: 34px;
}

    .hwc-pdpa .slider.round:before {
        border-radius: 50%;
    }

.hwc-pdpa input.btn, .hwc-pdpa button.btn {
    width: auto;
    min-width: 170px;
    height: 44px;
    border-radius: 5px;
    background-color: #ffffff;
    border: solid 1px #e8e8e8;
    font-family: 'Krungsri Condensed';
    font-size: 16px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 2.14;
    letter-spacing: normal;
    text-align: center;
    color: #554242;
    outline: none !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.hwc-pdpa .z-99 {
    z-index: 99 !important;
}

.hwc-pdpa span, .hwc-pdpa a {
    font-family: "Krungsri Condensed";
    font-size: 14px;
}

.hwc-pdpa input.btn.btn-primary, .hwc-pdpa button.btn.btn-primary {
    margin-left: 0px;
    color: #fefefe;
    background-color: #25447e;
    border: solid 0px #e8e8e8 !important;
    font-family: "Krungsri Condensed";
    font-size: 14px;
}

.hwc-pdpa button.btn.btn-cookie-setting {
    margin-right: 75px;
    background-color: #fff;
    color: #554242;
    border: solid 1px #E8E8E8;
    font-family: 'Krungsri Condensed';
    font-size: 14px;
}

.hwc-pdpa input.btn.btn-primary, .hwc-pdpa #btnSaveCookieSetting {
    margin-left: 0px !important;
    color: #fefefe;
    background-color: #25447e;
    border: solid 0px #e8e8e8 !important;
    font-family: "Krungsri Condensed";
}

.hwc-pdpa button.btn.btn-cookie-setting:hover {
    border: solid 1px #C7C7C7 !important;
}

.hwc-pdpa button.btn.btn-cookie-setting:focus {
    border-color: #E8E8E8;
    box-shadow: inset 1px 2px 1px rgba(0,0,0,0.1);
}

.hwc-pdpa button.btn.btn-primary:hover, .hwc-pdpa input.btn.btn-primary:hover {
    background-color: #08315e;
}

.hwc-pdpa input.btn.btn-primary, .hwc-pdpa #btnSaveCookieSetting:hover {
    background-color: #08315e;
}

.hwc-pdpa input.btn.btn-primary-brown, .hwc-pdpa button.btn.btn-primary-brown {
    background-color: #554242 !important;
    color: #FFD400 !important;
}

    .hwc-pdpa input.btn.btn-primary-brown:hover, .hwc-pdpa button.btn.btn-primary-brown:hover {
        background-color: #463737 !important;
    }

    .hwc-pdpa input.btn.btn-primary-brown:focus, .hwc-pdpa button.btn.btn-primary-brown:focus {
        background-color: #463737 !important;
        box-shadow: inset 1px 2px 1px rgba(0,0,0,0.1);
    }

.hwc-pdpa .btn-secondary {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}


.hwc-pdpa .footer_policy {
    background-color: #fff;
    padding: 25px 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 99999;
    /*opacity: 0.95;*/
    display: none;
    box-shadow: 1px 2px 15px 5px rgba(35,19,18,0.05); /*box-shadow: 0 1px 6px 0 rgba(90,90,90,0.2)*/
    background: rgba(0, 0, 0, 0.75);
}

    .hwc-pdpa .footer_policy.cookiealert.show {
        transform: translateY(0%);
        transition-delay: 1000ms;
        display: block;
    }

    .hwc-pdpa .footer_policy .close_cookie {
        font-size: 16px;
        width: 100%;
    }

    .hwc-pdpa .footer_policy h3.footer-header {
        color: #fff;
        font-size: 20px;
    }

    .hwc-pdpa .footer_policy .txt-detail {
        color: #ffffff !important;
    }

        .hwc-pdpa .footer_policy .txt-detail .more_cookie {
            color: #ffffff !important;
        }

        .hwc-pdpa .footer_policy .txt-detail span:first-child {
            display: block;
            margin-top: 8px;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .hwc-pdpa .footer_policy .txt-detail > a {
            font-size: 14px;
        }

.hwc-pdpa .policy-link {
    color: #F76F00 !important;
}

.hwc-pdpa .footer_policy .txt-detail .policy-link:first-of-type::after {
    content: " | ";
}

.hwc-pdpa .footer_policy .close_cookie {
    margin-top: 8px;
}

.hwc-pdpa #cookieSettingModal {
    z-index: 99999;
}

    .hwc-pdpa #cookieSettingModal.modal.show .modal-dialog {
        max-width: 570px;
    }

    .hwc-pdpa #cookieSettingModal .modal-content {
        padding-left: 20px;
        padding-right: 20px;
        width: 570px;
        height: auto;
    }

        .hwc-pdpa #cookieSettingModal .modal-content .modal-header {
            padding-right: 0;
        }

    .hwc-pdpa #cookieSettingModal .modal-body {
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

        .hwc-pdpa #cookieSettingModal .modal-body #settingHeaderDestop {
            display: block;
            font-size: 24px;
            font-family: "Krungsri Condensed";
        }

    .hwc-pdpa #cookieSettingModal .modal-header #settingHeaderMobile {
        display: none;
    }

    .hwc-pdpa #cookieSettingModal .modal-body .modal-title {
        margin-bottom: 8px;
    }

    .hwc-pdpa #cookieSettingModal .modal-body .cookie-modal-content {
        margin-bottom: 25px;
    }

        .hwc-pdpa #cookieSettingModal .modal-body .cookie-modal-content span {
            color: #5a5a5a;
        }

    .hwc-pdpa #cookieSettingModal .modal-content .cookie-footer {
        --padding: 15px;
        padding-top: 82px;
        padding-bottom: 40px;
    }

    /*.hwc-pdpa #cookieSettingModal .modal-content .cookie-footer > div {
			margin-bottom: 25px;
		}*/

    .hwc-pdpa #cookieSettingModal .modal-content {
        padding-left: 20px;
        padding-right: 20px;
        width: 570px;
        height: auto;
    }

        .hwc-pdpa #cookieSettingModal .modal-content .modal-header {
            padding-right: 0;
        }

.hwc-pdpa #cookieModal .modal-content {
    padding-left: 20px;
    padding-right: 20px;
    width: 570px;
    height: auto;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
}

    .hwc-pdpa #cookieModal .modal-content .modal-header {
        padding-right: 0;
        padding-top: 28px;
    }

.hwc-pdpa #cookieModal .modal-body {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

    .hwc-pdpa #cookieModal .modal-body .modal-title {
        margin-bottom: 8px;
        font-size: 24px;
        color: #5a5a5a;
        font-family: "Krungsri Condensed";
    }

    .hwc-pdpa #cookieModal .modal-body .cookie-modal-content span {
        color: #5a5a5a;
    }

.hwc-pdpa #cookieModal .modal-content .cookie-footer {
    padding-top: 60px;
    padding-bottom: 78px;
}

.hwc-pdpa #cookieModal .modal-content cookie-footer > div {
    margin-bottom: 25px;
}

.hwc-pdpa .modal-body .cookie-accordion {
    padding: 0;
    padding-top: 8px;
    --padding-bottom: 17px;
    border-bottom: solid 1px #D8D8D8;
    margin-bottom: 8px;
    font-weight: bold;
}

    .hwc-pdpa .modal-body .cookie-accordion #essentialCookies {
        margin-bottom: 17px;
    }

    .hwc-pdpa .modal-body .cookie-accordion.toogle-switch {
        padding-bottom: 9px;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header span {
        color: #5a5a5a;
        text-align: end;
        font-weight: 500;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .far.fa-times {
        width: 12px;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .far.fa-times, .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header.active .far.fa-plus {
        display: none;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .far.fa-plus, .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header.active .far.fa-times {
        display: inline-block;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .accordion-left {
        cursor: pointer;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .accordion-right .switch {
        margin-bottom: 0;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header .accordion-left i {
        /*vertical-align: middle;*/
        color: #5B5B5B;
        margin-right: 18px;
    }

    .hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-content {
        margin-left: 35px;
        font-size: 14px;
        color: #949494;
        font-family: "Krungsri Condensed";
        font-weight: 100 !important;
    }

.hwc-pdpa #clearCookieModal .modal-content {
    padding: 40px;
}

.hwc-pdpa #clearCookieModal .clear-cookie-icon {
    margin-bottom: 40px;
}

    .hwc-pdpa #clearCookieModal .clear-cookie-icon i {
        font-size: 88px;
        color: #FDD200;
    }

.hwc-pdpa #clearCookieModal .clear-cookie-msg {
    margin-bottom: 40px;
}

    .hwc-pdpa #clearCookieModal .clear-cookie-msg h3 {
        font-size: 16px;
        font-family: "Krungsri Condensed";
        line-height: 2;
    }

.hwc-pdpa #clearCookieModal .clear-cookie-modal-footer .btn {
    width: 170px;
    font-size: 14px;
}

.hwc-pdpa .close {
    border: none;
    background-color: transparent;
    z-index: 9999;
}

.hwc-pdpa .close span {
    font-size: 24px !important;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection {
    width: 570px;
    border-radius: 3px;
    padding: 20px;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection .wrapInPopupCookieConsentText h2 {
    text-align: unset;
}

.accordion-left .accordion-toggle:after {
    /* symbol for "opening" panels */
    font-family: 'FontAwesome';
    content: "\f00d";
    float: left;
    color: #5B5B5B;
    font-weight: 100;
    padding-right: 20px;
}

.hwc-pdpa .cookie-footer {
    display: flex;
    padding: 60px 20px;
    justify-content: space-between;
}

.accordion-left.collapsed .accordion-toggle:after {
    /* symbol for "collapsed" panels */
    content: "\f067";
}

@media (min-width: 1200px) {
    .hwc-pdpa .footer_policy .container {
        width: 1170px;
    }

    .hwc-pdpa .footer_policy .close_cookie {
        width: 170px;
    }
}

@media(min-width: 576px) {
    .modal-dialog {
        max-width: 570px !important;
    }

    .hwc-pdpa #clearCookieModal .modal-dialog {
        max-width: 570px;
    }
}

@media(max-width: 576px) {
    .hwc-pdpa #cookieSettingModal .modal-dialog, .hwc-pdpa #clearCookieModal .modal-dialog {
        margin-left: 0;
        margin-right: 0;
    }
}

@media(max-width: 767px) {

    .hwc-pdpa .modal-dialog {
        margin: 0 !important;
    }

    .hwc-pdpa .modal-body {
        flex: none;
    }

    .hwc-pdpa .modal.show .modal-dialog {
        height: 100%;
    }

    .hwc-pdpa .modal-open .modal {
        padding-right: 0px !important;
    }

    .hwc-pdpa .footer_policy {
        padding: 20px 0;
    }

    .hwc-pdpa .d-flex {
        display: -ms-flexbox !important;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .hwc-pdpa #cookieSettingModal .modal-body #settingHeaderDestop {
        /*display: none;*/
    }

    .hwc-pdpa #cookieSettingModal .modal-header #settingHeaderMobile {
        display: block;
    }

    .hwc-pdpa #cookieSettingModal .modal-content {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .hwc-pdpa #cookieSettingModal .modal-body {
        padding-top: 20px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 20px !important;
    }

    .hwc-pdpa #cookieSettingModal .modal-content .cookie-footer {
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }

    .hwc-pdpa #clearCookieModal .modal-body {
        padding: 20px !important;
    }

    .hwc-pdpa .footer_policy h3.footer-header {
        font-size: 18px;
    }

    .hwc-pdpa .footer_policy .txt-detail {
        line-height: 20px;
        font-size: 14px;
    }

        .hwc-pdpa .footer_policy .txt-detail span:first-child {
            display: inline;
        }

        .hwc-pdpa .footer_policy .txt-detail .policy-link:first-of-type::after {
            content: "";
        }

    .hwc-pdpa .footer_policy .text-left {
        margin-top: 8px;
        /*padding-top:0;*/
    }

    .hwc-pdpa .footer_policy .text-right {
        /*text-align: left !important;*/
        /*margin-top: 8px;*/
        margin-top: 22px;
    }

    .hwc-pdpa .footer_policy .close_cookie {
        max-width: 170px !important;
        height: 30px !important;
        line-height: 19px !important;
        margin-top: 0px;
    }

        .hwc-pdpa .footer_policy .close_cookie.btn-primary {
            margin-left: 7.5px;
        }

    .hwc-pdpa #cookieSettingModal .modal-content .modal-header {
        padding-right: 15px;
    }

    .hwc-pdpa #cookieSettingModal .modal-content {
        width: 100%;
        height: 100%;
    }

    .hwc-pdpa #cookieModal .modal-content .modal-header {
        padding-right: 15px;
    }

    .hwc-pdpa #cookieModal .modal-content {
        width: 100%;
        height: 100%;
        border: 0px;
        border-radius: 0px;
    }

        .hwc-pdpa #cookieModal .modal-content > div {
            padding-left: 0;
            padding-right: 0;
        }

        .hwc-pdpa #cookieModal .modal-content .cookie-footer {
            padding-left: 0;
            padding-right: 0;
            padding-bottom: 40px;
        }

            .hwc-pdpa #cookieModal .modal-content .cookie-footer .btn {
                width: 270px;
                max-width: 270px !important;
                height: 44px !important;
                --line-height: 19px !important;
                --min-width: 150px;
            }

                .hwc-pdpa #cookieModal .modal-content .cookie-footer .btn + .btn {
                    margin-left: 0px;
                }

    .hwc-pdpa #cookieModal .modal-content {
        padding-left: 16px;
        padding-right: 16px;
    }

        .hwc-pdpa #cookieModal .modal-content .cookie-footer {
            padding-top: 20px;
        }

    .hwc-pdpa button.btn.btn-cookie-setting {
        margin-right: 0px;
        margin-top: 24px;
    }

    .hwc-pdpa #clearCookieModal .modal-dialog {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
    }

    .hwc-pdpa #cookieSettingModal .modal-content .cookie-footer .btn-primary {
        width: 270px;
    }

    .hwc-pdpa #clearCookieModal .clear-cookie-modal-footer .btn {
        width: 270px;
    }

    .hwc-pdpa #clearCookieModal .clear-cookie-modal-footer #confirmClearCookie {
        margin-bottom: 25px;
    }

    .hwc-pdpa #clearCookieModal .modal-content {
        height: auto;
    }
}

/* mobile */
@media only screen and (max-width: 767px) {
    .hwc-pdpa .vertical-center {
        padding: 40% 20px 0px 20px;
    }

    .hwc-pdpa .clear-cookie-modal-footer {
        padding: 0 40px 0 40px;
        display: flex;
        flex-direction: column-reverse;
    }

    .hwc-pdpa .wrapperPage {
        width: 100%;
    }

    .hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection {
        height: inherit;
    }

    .hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection .wrapInPopupCookieConsentSection {
        max-height: 100vh;
        width: 100%;
    }

    .hwc-pdpa button.btn.btn-primary {
        margin-left: 0px !important;
    }

    .hwc-pdpa .d-flex {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hwc-pdpa .cookie-footer {
        display: flex;
        flex-direction: column !important;
    }
}

/* tablet-pc */
@media only screen and (min-width: 768px) {
    .hwc-pdpa .modal-content {
        height: auto;
        width: 570px;
        border-radius: 3px;
        background-color: #FFFFFF;
        box-shadow: 1px 2px 20px 0 rgba(35,19,18,0.05);
    }

    .hwc-pdpa #clearCookieModal .modal-content {
        padding: 0px !important;
    }

    .clear-cookie-modal-footer {
        padding: 0 40px 40px 40px;
    }

    .hwc-pdpa .modal-body {
        padding: 20px 50px 0px 50px;
    }
}
