/* =====================================================
   AIOTA MEMBERSHIP — VISIBILITY UTILITY CLASSES
   Loaded on EVERY front-end page (not just pages with an
   AIOTA shortcode), so these classes work on header/menu
   buttons, footer widgets, or anything built in a page
   builder like Elementor — no shortcode needed.

   How it works: the plugin adds a state class to <body>
   (aiota-ms-logged-in / aiota-ms-logged-out, and, for logged
   in visitors, aiota-ms-status-{status} and
   aiota-ms-plan-{plan_key}). Add one of the classes below to
   ANY element (a button, a menu item, a whole section) and it
   is hidden automatically unless that state matches.
   By default an element is visible; these rules only ever
   HIDE it, so nothing here can accidentally show something
   that was hidden by your own theme.
===================================================== */

/* Show only to visitors who are NOT logged in — e.g. header "Login" / "Register" buttons. */
body.aiota-ms-logged-in .aiota-ms-guest-only { display: none !important; }

/* Show only to logged-in members — e.g. an "Account" / "Logout" header link. */
body.aiota-ms-logged-out .aiota-ms-member-only { display: none !important; }

/* Show only to members with an ACTIVE subscription. */
body.aiota-ms-logged-out .aiota-ms-active-only,
body.aiota-ms-logged-in:not(.aiota-ms-status-active) .aiota-ms-active-only { display: none !important; }

/* Show only to members currently on a TRIAL. */
body.aiota-ms-logged-out .aiota-ms-trialing-only,
body.aiota-ms-logged-in:not(.aiota-ms-status-trialing) .aiota-ms-trialing-only { display: none !important; }

/* Show only to members whose plan has EXPIRED — e.g. a "renew now" banner. */
body.aiota-ms-logged-out .aiota-ms-expired-only,
body.aiota-ms-logged-in:not(.aiota-ms-status-expired) .aiota-ms-expired-only { display: none !important; }

/* Show only to members whose subscription was CANCELLED. */
body.aiota-ms-logged-out .aiota-ms-cancelled-only,
body.aiota-ms-logged-in:not(.aiota-ms-status-cancelled) .aiota-ms-cancelled-only { display: none !important; }
