/* GPAT — Statut ouvert/fermé d'un calendrier (shortcode [gpat-calendar-status])
 *
 * Même design que le module Maneige ([gpat-station-snow]) : une ligne de texte
 * Barlow 16px / 600 précédée d'une pastille colorée (verte = ouvert, rouge =
 * fermé). S'intègre directement dans une carte Elementor (icône + titre +
 * bouton « Horaire complet » fournis par l'admin autour du shortcode).
 *
 * Scopé sous `.gpat-cal-status` pour ne pas leaker dans le thème.
 */

.gpat-cal-status {
    --gpat-cal-status-text: #1a2433;
    --gpat-cal-status-open: #16a34a;
    --gpat-cal-status-closed: #dc2626;

    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gpat-cal-status-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gpat-cal-status *,
.gpat-cal-status *::before,
.gpat-cal-status *::after {
    box-sizing: inherit;
}

/* Pastille SVG (fill="currentColor", couleur pilotée par is-open/is-closed). */
.gpat-cal-status__dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
}

.gpat-cal-status__dot.is-open    { color: var(--gpat-cal-status-open); }
.gpat-cal-status__dot.is-closed  { color: var(--gpat-cal-status-closed); }

.gpat-cal-status__label {
    color: inherit;
}
