=== CookieClear — GDPR & CCPA Cookie Consent Banner ===
Contributors:      axmea
Tags:              cookie consent, gdpr, ccpa, cookie banner, privacy
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
Stable tag:        2.0.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

A clean, modern cookie consent banner for GDPR & CCPA compliance — with script blocking, consent logging, and a beautiful Windows 11-style admin UI.

== Description ==

CookieClear gives you a beautiful, accessible cookie consent banner that works out of the box. No coding required.

**Free features:**

* Modern cookie consent banner (bottom / top / centre position)
* Accept All, Reject All, and Manage Preferences buttons
* Category-based consent — Necessary, Analytics, Marketing, Preferences, Functional
* Automatic script blocking until consent is given
* Consent logging to your database
* Floating "Manage Cookies" button — lets visitors revisit their choice
* Customisable colours, text, headline, and animation
* GDPR & CCPA ready
* Do Not Track (DNT) support
* Works with caching plugins
* Clean, modern Windows 11-style admin interface
* No external services required — all data stays on your server

**CookieClear Pro adds:**

* 🔍 Cookie Scanner — auto-detect all third-party scripts
* 📊 Consent Analytics dashboard with CSV export
* 🌍 Regional Rules — auto-apply GDPR, CCPA, or LGPD by visitor country
* ✅ Google Consent Mode v2 — certified compatible with GA4 and Google Ads
* 🔄 Re-consent — automatically re-prompt when your policy changes
* 🎬 Content Blocker — block YouTube, Vimeo, Google Maps until consent
* 🛒 WooCommerce integration — suppress pixels until marketing consent
* ⭐ Priority support

[Get CookieClear Pro →](https://cookieclear.com/pricing)

== Installation ==

1. Upload the `cookieclear` folder to `/wp-content/plugins/`, or install directly from the WordPress plugin directory.
2. Activate the plugin through the **Plugins** menu.
3. Go to **CookieClear → General** to configure your banner.
4. Set your Privacy Policy page and enable the banner.

== Frequently Asked Questions ==

= Is this plugin free? =
Yes! All core features are completely free with no limits, no pageview caps, and no watermark.

= Does it work with caching plugins? =
Yes. The consent banner runs entirely in JavaScript and reads consent from localStorage, so it works correctly with all major caching plugins.

= Where is consent data stored? =
Consent is stored in your WordPress database and in the visitor's browser localStorage. No data is sent to external servers.

= Does it block Google Analytics until consent? =
Yes — in the free version, scripts tagged with a `data-cookieclear-category` attribute are blocked until the visitor gives consent. CookieClear Pro adds automatic detection and blocking without manual tagging.

= Is it compatible with Google Consent Mode v2? =
CookieClear Pro includes full Google Consent Mode v2 support. The free version does not include GCM v2.

= Can visitors change their consent choice? =
Yes — a floating "Manage Cookies" button appears after consent is given, letting visitors update their preferences at any time.

= Does it support CCPA? =
Yes. You can enable CCPA mode in General settings, which changes the banner text to a "Do Not Sell My Personal Information" style notice.

== Screenshots ==

1. Frontend cookie consent banner — modern and clean.
2. Manage Preferences modal — category-based consent.
3. General settings — Windows 11-style admin UI.
4. Banner Design settings — colour picker and live preview.
5. License page — upgrade to Pro.

== Changelog ==

= 2.0.4 =
* New: Complete rewrite with modern Windows 11-style admin UI.
* New: Floating Manage Cookies button.
* New: Category-based consent modal with toggle switches.
* New: Consent version tracking for re-consent.
* New: Content embed blocker (Pro).
* New: Cookie Scanner (Pro).
* New: Consent Analytics with CSV export (Pro).
* New: Regional Rules — GDPR/CCPA/LGPD by country (Pro).
* New: Google Consent Mode v2 (Pro).
* New: WooCommerce integration (Pro).
* Improved: Banner animation and accessibility.
* Improved: Script blocking engine.
* Fixed: Modal positioning on mobile.
* Fixed: Float button not responding to clicks.

== Upgrade Notice ==

= 2.0.4 =
Major update with new UI, new features, and improved performance. Please test on a staging site before updating production.
