/* Proteksi konten frontend. Konten HTML tetap normal agar aman untuk SEO. */
.td-content-protection-active .detail-description-content-simple,
.td-content-protection-active .content-body,
.td-content-protection-active .article-content-body,
.td-content-protection-active .content-page-header,
.td-content-protection-active .page-top-simple,
.td-content-protection-active .product-grid,
.td-content-protection-active .category-section {
    -webkit-user-select: none;
    user-select: none;
}

.td-content-protection-active .detail-description-content-simple img,
.td-content-protection-active .content-body img,
.td-content-protection-active .article-content-body img,
.td-content-protection-active .product-card img,
.td-content-protection-active .detail-main-image img,
.td-content-protection-active .detail-gallery img,
.td-content-protection-active .content-featured-image img {
    -webkit-user-drag: none;
    user-drag: none;
}

.td-content-protection-toast {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 99999;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.td-content-protection-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media print {
    .td-content-protection-active.td-content-protection-strict body,
    body.td-content-protection-active.td-content-protection-strict {
        display: none !important;
    }
}

/* Peringatan ketika JavaScript browser nonaktif. Menggunakan <noscript>, bukan JavaScript. */
.td-noscript-warning {
    box-sizing: border-box;
    color: #1f2937;
}

.td-noscript-warning *,
.td-noscript-warning *::before,
.td-noscript-warning *::after {
    box-sizing: border-box;
}

.td-noscript-warning--banner {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.26);
}

.td-noscript-warning--banner .td-noscript-warning__panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.td-noscript-warning--overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.td-noscript-warning__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.td-noscript-warning--overlay .td-noscript-warning__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(560px, 100%);
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.td-noscript-warning__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff7ed;
    color: #d97706;
    font-size: 18px;
}

.td-noscript-warning__content {
    min-width: 0;
}

.td-noscript-warning__content strong {
    display: block;
    margin: 0 0 5px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.td-noscript-warning__content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .td-noscript-warning--banner {
        padding: 10px 12px;
    }

    .td-noscript-warning--banner .td-noscript-warning__panel,
    .td-noscript-warning--overlay .td-noscript-warning__panel {
        gap: 12px;
        padding: 16px;
        border-radius: 22px;
    }

    .td-noscript-warning--overlay {
        align-items: center;
        padding: 18px 14px;
    }

    .td-noscript-warning__icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 16px;
    }

    .td-noscript-warning__content strong {
        font-size: 17px;
    }

    .td-noscript-warning__content p {
        font-size: 13px;
        line-height: 1.6;
    }
}
