=== Cookie Rocket - Cookie Consent & Privacy Compliance ===
Contributors: templatesrocketwp
Tags: cookies, gdpr, lgpd, consent, privacy
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookie consent banner with native compliance for LFPDPPP (Mexico), LGPD (Brazil) and GDPR. Zero external dependencies. Lightweight and fast.

== Description ==

**Cookie Rocket** is a cookie consent plugin built from the ground up for Latin American privacy laws, with full GDPR compatibility.

* Zero external scripts and zero CDN dependencies — everything is served from your own site.
* Native compliance for LFPDPPP (Mexico) and LGPD (Brazil).
* GDPR compatible out of the box.
* 100% local — no consent data is sent to third-party servers.
* WooCommerce aware: respects shop pages and checkout.
* Fully customizable colors, fonts sizes, copy and banner position.
* WCAG 2.1 AA accessible: keyboard navigation, focus states, ARIA labels.
* Multisite compatible.
* Five banner layouts: bottom bar, top bar, floating card, modal and drawer.

= Shortcodes =

* `[cookie-rocket-preferences]` — renders a button that re-opens the cookie preferences modal.
* `[cookie-rocket-withdraw]` — renders a link that withdraws consent and clears stored preferences.

= Cookie Rocket Pro =

A commercial Pro version with automatic geo-routing, cookie scanner, full audit log, REST API and Google Tag Manager integration is available at [templatesrocket.com](https://templatesrocket.com/cookie-rocket-pro). The free version published here is fully functional and does not require the Pro plugin to work.

== Installation ==

1. Upload the `cookie-rocket` folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Cookie Rocket** in the admin menu to configure the banner copy, colors and behavior.
4. Optionally, place the `[cookie-rocket-preferences]` shortcode in your privacy policy page to let visitors update their choices at any time.

== Frequently Asked Questions ==

= Does this plugin send any data to external services? =

No. Cookie Rocket stores consent entirely in the visitor's browser (cookie + localStorage) and logs events to your own WordPress database. No third-party requests are made.

= Is it compatible with caching plugins? =

Yes. The banner state is read from a first-party cookie, so caching (page cache, object cache, CDN) does not interfere with consent storage or display.

= Does it block third-party scripts automatically? =

The free version provides the consent UI, storage and audit log. Automatic script blocking based on category is available in the Pro version. You can manually gate scripts in your theme by reading the `cr_consent` cookie before enqueuing them.

= Is it translation-ready? =

Yes. Text domain is `cookie-rocket` and a `.pot` file is included under `/languages/`. The default UI strings ship in Spanish and English-friendly placeholders; translations are loaded via `load_plugin_textdomain`.

= Does it work on WordPress Multisite? =

Yes. Each site stores its own settings. Activate per-site or network-activate from the network admin.

== Screenshots ==

1. Banner displayed at the bottom of the page on first visit.
2. Preferences modal with toggles per cookie category.
3. Plugin settings screen with banner variant, copy and consent duration.
4. Banner design screen with color picker, border radius and dark mode controls.

== Changelog ==

= 1.0.4 =
* Changed: the post-consent floating preferences button now defaults to OFF (was ON in 1.0.3) for a cleaner out-of-the-box experience. Visitors can still re-open preferences via the `[cookie-rocket-preferences]` shortcode placed wherever you want (footer, menu, etc.). Existing installations that had it enabled keep it enabled.
* Added: the Pro features panel now lists "Customizable floating button" — Cookie Rocket Pro adds position (left/right/center), color, icon and label customization for the floating button.

= 1.0.3 =
* Fix: the preferences modal close button (X) and Escape key now work correctly after the visitor has already consented. Previously, event handlers were only bound while the banner was visible, so re-opening the modal via the floating button left the X non-functional.
* Fix: the modal title typography is now forced to a clean sans-serif system stack and no longer inherits the theme's heading font (some themes were applying script/serif fonts to the modal headline).
* New setting: "Show Floating Button" (Settings page) lets administrators hide the bottom-left circular button that appears after consent. Defaults to ON for backwards compatibility.

= 1.0.2 =
* Added a Pro features showcase panel at the bottom of the Settings page so users can discover what is included in Cookie Rocket Pro (geo-detection, cookie scanner, Google Consent Mode v2, WooCommerce mode, audit log + CSV export). No popups, no admin notices, single discreet CTA — fully compliant with WordPress.org plugin guidelines.

= 1.0.1 =
* Visual refresh: preferences modal now uses the Templates Rocket brand palette (lime green #80e040 + near-black #0a0f1a) for visual consistency with the brand. No functional changes.

= 1.0.0 =
* Initial release on WordPress.org.

== Upgrade Notice ==

= 1.0.4 =
Post-consent floating button now defaults to OFF for a cleaner site. Installs that explicitly enabled it keep it enabled; re-enable any time in Settings. The [cookie-rocket-preferences] shortcode is always available as alternative.

= 1.0.3 =
Important fix: the preferences modal can now be closed (X button) after consent, the title typography no longer inherits the theme's heading font, and the floating button can be hidden via a new setting. Recommended update.

= 1.0.2 =
Adds a Pro features showcase panel at the bottom of the Settings page. Safe to update — no functional changes to the cookie banner itself.

= 1.0.1 =
Visual refresh only. Brand-aligned colors in the preferences modal. Safe to update.

= 1.0.0 =
First public release.
