/* Cookie Consent Styles */

/* Popup Cookie Consent Section - Base Styles */
.hwc-pdpa .popupCookieConsentSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hwc-pdpa .popupCookieConsentSection.popupCookieConsentSectionShow {
    display: block;
    opacity: 1;
    visibility: visible;
}

.hwc-pdpa .popupCookieConsentSection .wrapperPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection {
    position: relative;
    width: 100%;
    max-width: 570px;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwc-pdpa .popupCookieConsentSection .wrapInPopupCookieConsentSection {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 1px 2px 20px 0 rgba(35, 19, 18, 0.05);
    overflow: hidden;
}

.hwc-pdpa .popupCookieConsentSection #divPopupCookieConsent {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.hwc-pdpa .popupCookieConsentSection .wrapInPopupCookieConsentText {
    padding: 20px;
}

/* Close button styles */
.hwc-pdpa .popupCookieConsentSection .close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    font-size: 28px;
    font-weight: 300;
    color: #5a5a5a;
    opacity: 0.7;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.hwc-pdpa .popupCookieConsentSection .close:hover {
    opacity: 1;
}

/* Cookie Display None - for hiding when not needed */
.hwc-pdpa .cookieDisplaynone {
    display: none !important;
}

.hwc-pdpa ul {
    list-style: unset;
    margin-left: 16px;
}

.hwc-pdpa .d-none {
    display: none;
}

.hwc-pdpa .modal-header {
    border-bottom: 0;
}

.hwc-pdpa .cookie-accordion #essentialCookies {
    padding-bottom: 17px;
}

/* Switch Styles */
.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);
}

.hwc-pdpa .slider.round {
    border-radius: 34px;
}

.hwc-pdpa .slider.round:before {
    border-radius: 50%;
}

/* Button Styles */
.hwc-pdpa input.btn,
.hwc-pdpa button.btn {
    width: auto;
    min-width: 170px;
    height: 44px;
    border-radius: 5px;
    background-color: #fff;
    border: solid 1px #e8e8e8;
    font-family: 'krungsri simple med';
    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: .35rem;
    padding-bottom: .35rem;
}

.hwc-pdpa .z-99 {
    z-index: 99 !important;
}

.hwc-pdpa span,
.hwc-pdpa a {
    --font-family: "Thongterm-Roman";
}

.hwc-pdpa input.btn.btn-primary,
.hwc-pdpa button.btn.btn-primary {
    margin-left: 75px;
    color: #554242;
    background-color: #ffd400;
    border: solid 0 #e8e8e8 !important;
    font-family: "krungsri simple med", "Thonhterm-Roman", sans-serif;
}

.hwc-pdpa button.btn.btn-cookie-setting {
    margin-right: 75px;
    background-color: #fff;
    color: #554242;
    border: solid 1px #e8e8e8;
    font-family: 'krungsri simple med';
}

.hwc-pdpa input.btn.btn-primary,
.hwc-pdpa #btnSaveCookieSetting {
    margin-left: 0 !important;
    color: #554242;
    background-color: #ffd400;
    border: solid 0 #e8e8e8 !important;
    font-family: "krungsri simple med", "Thonhterm-Roman", sans-serif;
}

.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, .1);
}

.hwc-pdpa button.btn.btn-primary:hover,
.hwc-pdpa input.btn.btn-primary:hover {
    background-color: #ffc800;
}

.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, .1);
}

.hwc-pdpa .btn-secondary {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: .375rem !important;
    padding-bottom: .375rem !important;
}

/* Footer Policy Styles */
.hwc-pdpa .footer_policy {
    background-color: #fff;
    padding: 25px 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 99999;
    display: none;
    box-shadow: 1px 2px 15px 5px rgba(35, 19, 18, .05);
    background: rgba(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: #fff !important;
}

.hwc-pdpa .footer_policy .txt-detail .more_cookie {
    color: #fff !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;
}

/* Cookie Setting Modal */
.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;
}

.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;
}

/* Cookie Modal */
.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;
}

.hwc-pdpa #cookieModal .modal-body .cookie-modal-content span {
    color: #5a5a5a;
    font-size: 16px;
}

.hwc-pdpa #cookieModal .modal-body .cookie-modal-content .spanBold {
    font-family: 'Krungsri_Condensed_Bol' !important;
}

.hwc-pdpa #cookieModal .modal-content .cookie-footer {
    padding-top: 60px;
    padding-bottom: 78px;
}

.hwc-pdpa #cookieModal .modal-content cookie-footer > div {
    margin-bottom: 25px;
}

/* Cookie Accordion */
.hwc-pdpa .modal-body .cookie-accordion {
    padding: 0;
    padding-top: 8px;
    --padding-bottom: 17px;
    border-bottom: solid 1px #d8d8d8;
    margin-bottom: 8px;
}

.hwc-pdpa .modal-body .cookie-accordion.toogle-switch {
    padding-bottom: 9px;
}

.hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-header span {
    color: #5a5a5a;
    font-size: 16px;
}

.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 {
    color: #5b5b5b;
    margin-right: 18px;
}

.hwc-pdpa .modal-body .cookie-accordion .cookie-accordion-content {
    margin-left: 35px;
    font-size: 14px;
    color: #949494;
    --font-family: "Thongterm-Roman";
}

/* Clear Cookie Modal */
.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: 18px;
    font-family: 'Thongterm-Bold';
}

.hwc-pdpa #clearCookieModal .clear-cookie-modal-footer .btn {
    width: 170px;
}

/* Responsive Styles */
@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) {
    .modal-dialog {
        margin: 0 !important;
    }

    .modal-body {
        flex: none;
    }

    .modal.show .modal-dialog {
        height: 100%;
    }

    .modal-open .modal {
        padding-right: 0 !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;
        font-size: 24px;
    }

    .hwc-pdpa #cookieSettingModal .modal-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hwc-pdpa #cookieSettingModal .modal-body {
        padding-top: 0 !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-content {
        padding: 0 !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;
    }

    .hwc-pdpa .footer_policy .text-right {
        margin-top: 22px;
    }

    .hwc-pdpa .footer_policy .close_cookie {
        max-width: 170px !important;
        height: 30px !important;
        line-height: 19px !important;
        margin-top: 0;
    }

    .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: 0;
        border-radius: 0;
    }

    .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: 0;
    }

    .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: 0;
        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;
    }

    .hwc-pdpa #policyText {
        font-size: 14px;
    }
}

@media only screen and (max-width: 767px) {
    .vertical-center {
        padding: 40% 20px 0 20px;
    }

    .clear-cookie-modal-footer {
        padding: 0 40px 40px 40px;
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (min-width: 768px) {
    .modal-content {
        height: auto;
        width: 570px;
        border-radius: 3px;
        background-color: #fff;
        box-shadow: 1px 2px 20px 0 rgba(35, 19, 18, .05);
    }

    .hwc-pdpa #clearCookieModal .modal-content {
        padding: 0 !important;
    }

    .clear-cookie-modal-footer {
        padding: 0 40px 40px 40px;
    }

    .modal-body {
        padding: 0 50px 0 50px;
    }
}

/* Mobile-specific popup styles */
@media (max-width: 767px) {
    .hwc-pdpa .popupCookieConsentSection .wrapPopupCookieConsentSection {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hwc-pdpa .popupCookieConsentSection .wrapInPopupCookieConsentSection {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .hwc-pdpa .popupCookieConsentSection #divPopupCookieConsent {
        max-height: calc(100vh - 40px);
    }
    
    .hwc-pdpa .popupCookieConsentSection .wrapInPopupCookieConsentText {
        padding: 15px;
    }
    
    .hwc-pdpa .popupCookieConsentSection .cookie-footer {
        flex-direction: column-reverse;
    }
    
    .hwc-pdpa .popupCookieConsentSection .cookie-footer .btn {
        width: 100%;
        margin: 5px 0;
    }

    .hwc-pdpa #policyText {
        font-size: 14px !important;
    }

    .hwc-pdpa #cookieModal .modal-body .cookie-modal-content span {
        font-size: 14px !important;
    }
}

/* Accordion toggle icon styles */
.hwc-pdpa .accordion-toggle {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

.hwc-pdpa .accordion-toggle::before,
.hwc-pdpa .accordion-toggle::after {
    content: "";
    position: absolute;
    background-color: #5b5b5b;
    transition: transform 0.3s ease;
}

.hwc-pdpa .accordion-toggle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hwc-pdpa .accordion-toggle::after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hwc-pdpa .accordion-left:not(.collapsed) .accordion-toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Text styling for popup content */
.hwc-pdpa .popupCookieConsentSection .modal-title {
    font-size: 24px;
    color: #554242;
    font-weight: bold;
    margin-bottom: 16px;
}

.hwc-pdpa .popupCookieConsentSection .cookie-modal-content {
    color: #5a5a5a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hwc-pdpa .popupCookieConsentSection .cookie-modal-content span {
    color: #5a5a5a;
}

/* Cookie footer button alignment */
.hwc-pdpa .popupCookieConsentSection .cookie-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
}
