/* =========================================================================
   EZ-Updater — frontend widget styles
   Modern, bold defaults. All visual values are CSS custom properties so
   themes and the plugin's per-widget Style panel can override cleanly.
   ========================================================================= */

.sez-widget {
    --sez-color: #16a34a;
    --sez-bg: #ffffff;
    --sez-fg: #0f172a;
    --sez-muted: #64748b;
    --sez-border: rgba(15, 23, 42, 0.08);
    --sez-radius: 16px;
    --sez-padding: 32px;
    --sez-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -6px rgba(15, 23, 42, 0.12);
    --sez-align: left;

    /* Title typography */
    --sez-title-color: var(--sez-fg);
    --sez-title-size: 13px;
    --sez-title-weight: 700;
    --sez-title-transform: uppercase;
    --sez-title-tracking: 0.1em;

    /* List item label typography */
    --sez-label-color: var(--sez-fg);
    --sez-label-size: 19px;
    --sez-label-weight: 600;
    --sez-label-tracking: -0.005em;

    /* Status badge (colors are per-status, set inline on each badge) */
    --sez-badge-radius: 999px;
    --sez-badge-pad-y: 9px;
    --sez-badge-pad-x: 18px;
    --sez-badge-size: 12px;
    --sez-badge-weight: 700;
    --sez-badge-transform: uppercase;
    --sez-badge-tracking: 0.06em;
    --sez-badge-min-width: 110px;

    /* Single-type badge (the big one) */
    --sez-badge-lg-pad-y: 16px;
    --sez-badge-lg-pad-x: 36px;
    --sez-badge-lg-size: 20px;

    /* Value display (today's hours / free text) */
    --sez-value-color: var(--sez-fg);
    --sez-value-size: 48px;
    --sez-value-weight: 800;
    --sez-value-tracking: -0.03em;

    /* Last-updated meta line */
    --sez-meta-color: var(--sez-muted);
    --sez-meta-size: 11px;
    --sez-meta-weight: 600;
    --sez-meta-transform: uppercase;
    --sez-meta-tracking: 0.08em;

    /* font-family intentionally unset — inherits naturally from the page.
       Override per-element via Elementor's Typography group controls. */
    background: var(--sez-bg);
    color: var(--sez-fg);
    border: 1px solid var(--sez-border);
    border-radius: var(--sez-radius);
    padding: var(--sez-padding);
    box-shadow: var(--sez-shadow);
    text-align: var(--sez-align);
    max-width: 600px;
    margin: 24px auto;
    box-sizing: border-box;
    line-height: 1.4;
    transition: box-shadow 0.2s ease;
}

.sez-widget:hover {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -8px rgba(15, 23, 42, 0.18);
}

.sez-widget.sez-bg-transparent:hover {
    box-shadow: none;
}

.sez-widget *,
.sez-widget *::before,
.sez-widget *::after {
    box-sizing: border-box;
}

.sez-widget.sez-bg-transparent {
    border-color: transparent;
    box-shadow: none;
}

/* ---------- Header / title ---------- */

.sez-widget-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sez-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.sez-align-center .sez-widget-header { justify-content: center; }
.sez-align-right  .sez-widget-header { justify-content: flex-end; }

.sez-widget-title {
    font-size: var(--sez-title-size);
    font-weight: var(--sez-title-weight);
    color: var(--sez-title-color);
    text-transform: var(--sez-title-transform);
    letter-spacing: var(--sez-title-tracking);
}

/* ---------- Status badge (shared) ---------- */

.sez-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--sez-badge-pad-y) var(--sez-badge-pad-x);
    border-radius: var(--sez-badge-radius);
    background: var(--sez-color);
    color: var(--sez-badge-fg, #ffffff);
    font-size: var(--sez-badge-size);
    font-weight: var(--sez-badge-weight);
    text-transform: var(--sez-badge-transform);
    letter-spacing: var(--sez-badge-tracking);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sez-status-emoji {
    font-size: var(--sez-badge-emoji-size, 1em);
    line-height: 1;
}

.sez-status-label {
    font-size: var(--sez-badge-label-size, 1em);
    line-height: 1;
}

/* ---------- Updated meta ---------- */

.sez-widget-meta {
    margin-top: 20px;
    font-size: var(--sez-meta-size);
    color: var(--sez-meta-color);
    font-weight: var(--sez-meta-weight);
    letter-spacing: var(--sez-meta-tracking);
    text-transform: var(--sez-meta-transform);
}

/* ---------- Single widget (Open / Closed) ---------- */

.sez-widget-single .sez-widget-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sez-align-center .sez-widget-single .sez-widget-status { justify-content: center; }
.sez-align-right  .sez-widget-single .sez-widget-status { justify-content: flex-end; }

.sez-widget-single .sez-status-badge {
    padding: var(--sez-badge-lg-pad-y) var(--sez-badge-lg-pad-x);
    font-size: var(--sez-badge-lg-size);
    letter-spacing: 0.08em;
    gap: 12px;
}

/* ---------- List widget (item availability) ---------- */

.sez-widget-list {
    max-width: 640px;
}

.sez-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sez-list-label,
.sez-list .sez-list-badge {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sez-border);
    box-sizing: border-box;
}

.sez-list-label {
    font-size: var(--sez-label-size);
    font-weight: var(--sez-label-weight);
    color: var(--sez-label-color);
    letter-spacing: var(--sez-label-tracking);
    line-height: 1.25;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.sez-list .sez-list-badge {
    min-width: var(--sez-badge-min-width);
    justify-content: center;
    padding-left: var(--sez-badge-pad-x);
    padding-right: var(--sez-badge-pad-x);
    white-space: nowrap;
}

.sez-list > *:nth-last-child(-n+2) {
    border-bottom: none;
}

.sez-status-badge-sm {
    /* No-op now that list badges follow the standard size; kept for legacy markup. */
}

.sez-widget-empty {
    padding: 16px 0;
    color: var(--sez-muted);
    font-size: 14px;
    font-style: italic;
}

/* ---------- Value widget (today's hours, free text) ---------- */

.sez-widget-value {
    max-width: 540px;
}

.sez-widget-value .sez-widget-header {
    margin-bottom: 14px;
}

.sez-widget-value-display {
    font-size: var(--sez-value-size);
    font-weight: var(--sez-value-weight);
    color: var(--sez-value-color);
    line-height: 1;
    padding: 8px 0;
    letter-spacing: var(--sez-value-tracking);
}

.sez-widget-value-empty {
    color: var(--sez-muted);
    font-weight: 500;
    font-size: 32px;
    letter-spacing: 0;
}

/* ---------- Alignment helpers ---------- */

.sez-align-left   { text-align: left; }
.sez-align-center { text-align: center; }
.sez-align-right  { text-align: right; }

/* ---------- Error state (admin-only) ---------- */

.sez-error {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .sez-widget {
        padding: max(18px, calc(var(--sez-padding) * 0.65));
        margin: 16px auto;
    }
    .sez-widget-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    .sez-widget-single .sez-status-badge {
        padding: 13px 24px;
        font-size: 16px;
    }
    .sez-list-label {
        font-size: 16px;
    }
    .sez-list {
        column-gap: 14px;
    }
    .sez-list .sez-list-badge {
        min-width: 92px;
        padding: 8px 14px;
        font-size: 11px;
    }
    .sez-list-label,
    .sez-list .sez-list-badge {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .sez-widget-value-display {
        font-size: 38px;
    }
    .sez-widget-value-empty {
        font-size: 26px;
    }
}

/* ===========================================================================
   v0.11 — Banner display style (from UI Kit v1.1)
   Three dynamic vars (--sez-color / --sez-bg / --sez-fg) are written inline
   on the banner element by the template, so any user-defined status color
   produces a coordinated banner without per-widget CSS.
   =========================================================================== */

.sez-banner-single {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--sez-color);
    background-color: var(--sez-bg);
    color: var(--sez-fg);
    box-sizing: border-box;
    max-width: 720px;
    margin: 24px auto;
}

.sez-banner-single__icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.sez-banner-single__message {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.sez-banner-single__cta {
    display: inline-block;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--sez-color);
    background: transparent;
    color: var(--sez-fg);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sez-banner-single__cta:hover {
    background-color: var(--sez-color);
    color: #ffffff;
}

@media (max-width: 600px) {
    .sez-banner-single {
        margin: 16px auto;
        padding: 10px 14px;
        flex-wrap: wrap;
    }
    .sez-banner-single__cta {
        margin-left: auto;
    }
}

/* ===========================================================================
   v1.0.2 — Additional display styles for single + value widgets.
   Pill, Hero, Live (single-type) and Inline (value-type). Each uses the same
   --sez-color custom property contract as the other styles, so per-widget
   accent colors flow through without per-template plumbing.
   =========================================================================== */

/* ---------- Pill (single-type, inline) ---------- */

.sez-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    background: var(--sez-color);
    color: var(--sez-pill-fg, #fff);
    font-size: var(--sez-pill-size, 0.95em);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    vertical-align: baseline;
    box-shadow: 0 0 0 0.18em color-mix(in srgb, var(--sez-color) 18%, transparent);
    transition: box-shadow 0.2s ease;
    white-space: nowrap;
}

.sez-pill:hover {
    box-shadow: 0 0 0 0.28em color-mix(in srgb, var(--sez-color) 22%, transparent);
}

.sez-pill__icon {
    font-size: 1em;
    line-height: 1;
}

.sez-pill__label {
    font-size: 1em;
    line-height: 1;
}

/* ---------- Hero (single-type, XXL halo display) ---------- */

.sez-hero {
    --sez-hero-pad: 56px;
    position: relative;
    isolation: isolate;
    padding: var(--sez-hero-pad);
    border-radius: 24px;
    background: var(--sez-bg, color-mix(in srgb, var(--sez-color) 8%, #ffffff));
    color: var(--sez-fg, #0f172a);
    text-align: center;
    margin: 32px auto;
    max-width: 720px;
    overflow: hidden;
}

.sez-hero__halo {
    position: absolute;
    inset: -40%;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 30%,
        color-mix(in srgb, var(--sez-color) 35%, transparent) 0%,
        transparent 55%
    );
    pointer-events: none;
}

.sez-hero__emoji {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 18px;
}

.sez-hero__label {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    color: var(--sez-color);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.sez-hero__message {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    color: var(--sez-fg, #0f172a);
    margin: 0 0 16px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.sez-hero__meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--sez-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 24px 0 0;
}

@media (max-width: 600px) {
    .sez-hero {
        --sez-hero-pad: 32px;
        margin: 20px auto;
    }
    .sez-hero__emoji {
        font-size: 40px;
        margin-bottom: 12px;
    }
}

/* ---------- Live (single-type, pulsing dot) ---------- */

.sez-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--sez-live-size, 0.95em);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sez-color);
    vertical-align: baseline;
}

.sez-live__dot {
    position: relative;
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background: var(--sez-color);
    flex-shrink: 0;
}

.sez-live__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--sez-color);
    opacity: 0.5;
    animation: sez-live-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sez-live-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sez-live__dot::after { animation: none; }
}

.sez-live__label {
    line-height: 1;
}

/* ---------- Inline (value-type, sentence-friendly) ---------- */

.sez-value-inline {
    display: inline-block;
    padding: 0.05em 0.4em;
    border-radius: 6px;
    background: color-mix(in srgb, var(--sez-color, #1d4ed8) 12%, transparent);
    color: var(--sez-color, #0f172a);
    font-weight: 700;
    font-size: 1em;
    line-height: 1.2;
    vertical-align: baseline;
    letter-spacing: -0.01em;
}

/* Plugin icon for the Elementor category and widget. Rendered as <i class="sez-eicon">
   inside the editor — uses CSS mask so the glyph picks up the panel's currentColor. */
.sez-eicon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTMgMkw1IDE0aDZsLTEgOCA4LTEyaC02bDEtOHoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjxwYXRoIGQ9Ik0yMCA0LjVDMjAgNC4yMjM4NiAxOS43NzYxIDQgMTkuNSA0QzE5LjIyMzkgNCAxOSA0LjIyMzg2IDE5IDQuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PHBhdGggZD0iTTQgMTkuNUM0IDE5Ljc3NjEgNC4yMjM4NiAyMCA0LjUgMjBDNC43NzYxNCAyMCA1IDE5Ljc3NjEgNSAxOS41IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMyAxMkMzIDcuMDI5NDQgNy4wMjk0NCAzIDEyIDMiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxwYXRoIGQ9Ik0yMSAxMkMyMSAxNi45NzA2IDE2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