/* AFCMall v1.3.1 — Configurable Content Protection */

.afc-cp-protected-scope.afc-cp-no-select,
.afc-cp-protected-scope.afc-cp-no-select * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

.afc-cp-protected-scope.afc-cp-no-callout,
.afc-cp-protected-scope.afc-cp-no-callout * {
    -webkit-touch-callout: none !important;
}

.afc-cp-allow,
.afc-cp-allow * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

img.afc-cp-protected-image {
    -webkit-user-drag: none;
    user-drag: none;
}

.afc-cp-image-watermark-wrap {
    position: relative !important;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

.afc-cp-image-watermark-wrap > img {
    display: block;
    width: 100%;
    height: auto;
}

.afc-cp-image-watermark {
    position: absolute;
    z-index: 5;
    max-width: calc(100% - 18px);
    padding: .38em .7em;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: rgba(255,255,255,.94);
    background: rgba(8,20,38,.28);
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    font-family: Inter, system-ui, sans-serif;
    font-size: var(--afc-cp-watermark-size, 18px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,.45);
    opacity: var(--afc-cp-watermark-opacity, .12);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afc-cp-watermark-top-left { top: 10px; left: 10px; }
.afc-cp-watermark-top-right { top: 10px; right: 10px; }
.afc-cp-watermark-center { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-12deg); }
.afc-cp-watermark-bottom-left { bottom: 10px; left: 10px; }
.afc-cp-watermark-bottom-right { right: 10px; bottom: 10px; }

.afc-cp-page-watermark-layer {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    overflow: hidden;
    pointer-events: none;
    opacity: var(--afc-cp-watermark-opacity, .12);
}

.afc-cp-page-watermark-layer span {
    max-width: 90%;
    color: #24324a;
    font: 700 var(--afc-cp-watermark-size, 18px)/1.1 Inter, system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-24deg);
}

.afc-cp-toast {
    position: fixed;
    z-index: 2147483000;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: min(92vw, 520px);
    padding: 13px 18px;
    border: 1px solid rgba(207,164,54,.42);
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(12,30,54,.97), rgba(31,47,72,.97));
    box-shadow: 0 20px 54px rgba(3,12,25,.30);
    font: 600 14px/1.45 Inter, system-ui, sans-serif;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
}

.afc-cp-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 640px) {
    .afc-cp-page-watermark-layer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, minmax(0, 1fr));
    }
}

@media print {
    body.afc-cp-block-print > * {
        display: none !important;
    }

    body.afc-cp-block-print::after {
        content: "Pencetakan halaman ini dinonaktifkan.";
        display: block !important;
        padding: 40px;
        color: #111;
        font: 18px/1.5 system-ui, sans-serif;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afc-cp-toast {
        transition: none;
    }
}
/* AFCMall v1.3.15 — Reliable selection/copy protection */
html.afc-cp-active,
body.afc-cp-active {
    -webkit-touch-callout: none;
}

body.afc-cp-active .afc-cp-protected-scope,
body.afc-cp-active .afc-cp-protected-scope *,
body.afc-cp-active [data-copy-protect],
body.afc-cp-active [data-copy-protect] * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

body.afc-cp-active .afc-cp-protected-scope::selection,
body.afc-cp-active .afc-cp-protected-scope *::selection {
    color: inherit;
    background: transparent;
}

body.afc-cp-active .afc-cp-allow,
body.afc-cp-active .afc-cp-allow *,
body.afc-cp-active input,
body.afc-cp-active textarea,
body.afc-cp-active select,
body.afc-cp-active option,
body.afc-cp-active [contenteditable="true"],
body.afc-cp-active [contenteditable="true"] * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

.afc-cp-test-badge {
    position: fixed;
    z-index: 2147483500;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, rgba(7,31,58,.97), rgba(184,139,27,.97));
    box-shadow: 0 15px 40px rgba(2,12,25,.28);
    backdrop-filter: blur(12px);
    font: 750 12px/1.2 Inter, system-ui, sans-serif;
    transform: translateX(-50%);
    pointer-events: none;
}
