/* Hide Old Elements CSS - ซ่อนส่วนประกอบเก่าที่ไม่ต้องการ */

/* ซ่อน Design Switcher */
.design-switcher,
.design-switcher-btn,
.design-switcher-panel {
    display: none !important;
    visibility: hidden !important;
}

/* ซ่อน Contact Widget เก่า */
.contact-widget,
.contact-toggle,
.contact-menu,
.contact-backdrop {
    display: none !important;
    visibility: hidden !important;
}

/* ซ่อน Footer เก่า */
#footer.old-footer {
    display: none !important;
}

/* ซ่อนปุ่มสลับภาษาเก่า */
.lang-toggle.old-lang-toggle {
    display: none !important;
}

/* ซ่อนส่วนประกอบที่ซ้ำซ้อน */
.duplicate-contact,
.duplicate-footer,
.duplicate-header {
    display: none !important;
}

/* บังคับใช้ Modern Design เท่านั้น */
body:not(.use-modern-design) {
    /* บังคับให้ใช้ modern design */
}

body.use-classic-design {
    /* ยกเลิกการใช้ classic design */
}

/* ซ่อนองค์ประกอบที่ไม่เกี่ยวข้องกับ Samui Fix */
.irrelevant-widget,
.old-contact-form,
.deprecated-element {
    display: none !important;
}

/* ปรับปรุงการแสดงผลสำหรับ Modern Design */
.modern-only {
    display: block !important;
}

.classic-only {
    display: none !important;
}

/* ซ่อนข้อความหรือลิงก์ที่ไม่เกี่ยวข้อง */
a[href*="switch_classic"],
.switch-to-classic,
.classic-mode-btn {
    display: none !important;
}

/* ปรับแต่งสำหรับ Mobile */
@media (max-width: 768px) {
    .mobile-contact-widget,
    .mobile-design-switcher {
        display: none !important;
    }
}

/* ซ่อนส่วนประกอบที่อาจจะมีในอนาคต */
.future-deprecated,
.legacy-component,
.old-ui-element {
    display: none !important;
}