/* NSFW image blur */
img[data-nsfw="true"] {
    filter: blur(var(--wc-nsfw-blur, 18px)) !important;
    transition: filter 0.3s ease;
    cursor: pointer;
}

/* Reveal images after confirmation */
body.wc-nsfw-unlocked img[data-nsfw="true"] {
    filter: none !important;
}

/* Age confirmation overlay */
.wc-nsfw-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.wc-nsfw-modal[hidden] {
    display: none !important;
}

.wc-nsfw-modal-content {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
}

.wc-nsfw-modal-content h2 {
    margin-top: 0;
}

.wc-nsfw-modal-content p {
    margin-bottom: 22px;
}

.wc-nsfw-confirm {
    border: 0;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

/* Blocked purchase message */
.wc-nsfw-blocked-message {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 4px;
    background: #ffeded;
    color: #900;
    font-weight: 700;
    text-align: center;
}

/* Admin settings preview */
#wc-nsfw-modal-preview {
    padding: 20px;
}

.wc-nsfw-preview-content {
    max-width: 400px;
    padding: 20px;
    border-radius: 6px;
    background: #333;
    color: #fff;
}

.wc-nsfw-preview-content button {
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
