.cwc-cookie-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(13, 35, 58, 0.72);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cwc-cookie-modal {
    background-color: #ffffff;
    border-top: 5px solid #2e7d32;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 28px 30px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    color: #333333;
}

.cwc-cookie-modal h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #0d233a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cwc-cookie-modal h3 i {
    color: #2e7d32;
}

.cwc-cookie-modal p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.55;
    color: #444444;
}

.cwc-cookie-links {
    font-size: 14px !important;
}

.cwc-cookie-links a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
}

.cwc-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cwc-btn-secondary {
    background-color: #f0f4f8;
    color: #0d233a;
    border: 1px solid #c5d1de;
    padding: 11px 18px;
    border-radius: 5px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.cwc-btn-secondary:hover {
    background-color: #e2e8f0;
}
```[cite: 18]

---

### 2. `assets/js/cookie-consent.js`
Create `assets/js/cookie-consent.js` and paste this code[cite: 17]:

```javascript
(function () {
    const STORAGE_KEY = "cwc_cookie_consent_v1";

    function getConsent() {
        try {
            return localStorage.getItem(STORAGE_KEY);
        } catch (e) {
            return null;
        }
    }

    function setConsent(value) {
        try {
            localStorage.setItem(STORAGE_KEY, value);
        } catch (e) {
            // Fallback if storage is unavailable
        }
    }

    function showModal() {
        const backdrop = document.getElementById("cwc-cookie-backdrop");
        if (backdrop) {
            backdrop.style.display = "flex";
        }
    }

    function hideModal() {
        const backdrop = document.getElementById("cwc-cookie-backdrop");
        if (backdrop) {
            backdrop.style.display = "none";
        }
    }

    document.addEventListener("DOMContentLoaded", function () {
        const existing = getConsent();
        if (!existing) {
            showModal();
        } else {
            hideModal();
        }

        const acceptBtn = document.getElementById("cwc-accept-all");
        const rejectBtn = document.getElementById("cwc-reject-non-essential");
        const reopenBtn = document.getElementById("reopen-cookie-settings");

        if (acceptBtn) {
            acceptBtn.addEventListener("click", function () {
                setConsent("accepted");
                hideModal();
                document.dispatchEvent(new CustomEvent("cwc:consentUpdated", { detail: { consent: "accepted" } }));
            });
        }

        if (rejectBtn) {
            rejectBtn.addEventListener("click", function () {
                setConsent("essential_only");
                hideModal();
                document.dispatchEvent(new CustomEvent("cwc:consentUpdated", { detail: { consent: "essential_only" } }));
            });
        }

        if (reopenBtn) {
            reopenBtn.addEventListener("click", function () {
                showModal();
            });
        }
    });
})();
```[cite: 17]