/* BahyGroup Theme Bridge
 * Bridges WMC/SBC/SAC/SBS plugin variables to WP theme.json values.
 * Theme authors can override any of these by declaring a rule on :root or body.
 *
 * Plugin CSS uses these CSS variables:
 *   SBS: --sbs-primary, --sbs-text, --sbs-bg, --sbs-border, --sbs-font
 *   WMC: --wmc-primary, --wmc-text, --wmc-bg, --wmc-border
 *   SBC: --sbc-primary
 *   SAC: --sac-primary
 */

:root {
    --sbs-primary: var(--wp--preset--color--primary, #c8a882);
    --sbs-text: var(--wp--preset--color--foreground, #1d2327);
    --sbs-bg: var(--wp--preset--color--background, #fff);
    --sbs-border: #dcdcde;
    --sbs-font: var(--wp--preset--font-family--body, "Cairo", "Tajawal", system-ui, sans-serif);

    --wmc-primary: var(--wp--preset--color--primary, #00a32a);
    --wmc-text: var(--wp--preset--color--foreground, #1d2327);
    --wmc-bg: var(--wp--preset--color--background, #f6f7f7);
    --wmc-border: #dcdcde;
    --wmc-font: var(--wp--preset--font-family--body, -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma", "Arial", sans-serif);

    --sbc-primary: var(--wp--preset--color--primary, #2271b1);
    --sac-primary: var(--wp--preset--color--primary, #2271b1);
}

/* Inherit theme fonts and base styles for all plugin wrappers */
.sbs-booking-portal, .sbs-salon-portal, .sbs-services, .sbs-packages,
.wmc-portal, .sbc-portal, .sac-portal {
    font-family: var(--sbs-font);
    color: var(--sbs-text);
}

/* RTL/LTR: direction is set on each wrapper by PHP via get_locale().
   No need to force direction here. */

/* Buttons inherit theme button styles */
.sbs-btn, .wmc-btn, .sbc-btn, .sac-btn {
    font-family: inherit;
    border-radius: var(--sbs-radius, 8px);
    transition: all 0.2s;
}
