/*
 * MO - Święta kościelne - Modlitewnik
 * v1.0.2
 *
 * Zasada: wymiar prawego okna ustala istniejący kontener Elementora.
 * Wtyczka nie zwiększa ani nie zmniejsza jego geometrii.
 * Dopasowujemy wyłącznie hierarchię tekstu, odstępy i wielkość tytułu.
 */

.mo-swieta-widget {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #BDB4A7;
    font-family: "Inter", Arial, sans-serif;
}

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

/* Opcjonalny samodzielny panel. Na aktualnej stronie Modlitewnika
   zalecany pozostaje shortcode bez panel="1". */
.mo-swieta-widget--panel {
    min-height: 100%;
    padding: 46px 44px 42px;
    background: #11110F;
    border: 1px solid #45361F;
}

.mo-swieta-widget__kicker {
    margin: 0 0 26px !important;
    color: #A47B2F !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

/* Playfair celowo jest znacznie mniejszy niż H1/H2 artykułów.
   To moduł pomocniczy, nie hero strony. */
.mo-swieta-widget__title {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    color: #F2EBDD !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 31px !important;
    line-height: 1.16 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

/* Automatyczna skala zależna od długości nazwy święta. */
.mo-swieta-widget__title.mo-swieta-widget__title--medium {
    font-size: 30px !important;
}
.mo-swieta-widget__title.mo-swieta-widget__title--long {
    font-size: 28px !important;
    line-height: 1.18 !important;
}
.mo-swieta-widget__title.mo-swieta-widget__title--xlong {
    font-size: 26px !important;
    line-height: 1.2 !important;
}

.mo-swieta-widget__description {
    max-width: 500px;
    margin: 24px 0 0 !important;
    color: #BDB4A7 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 200 !important;
}

.mo-swieta-widget__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 34px;
}

.mo-swieta-widget__primary,
.mo-swieta-widget__secondary {
    text-decoration: none !important;
    transition: color .18s ease, opacity .18s ease;
}

.mo-swieta-widget__primary {
    color: #A47B2F !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

.mo-swieta-widget__secondary {
    color: #BDB4A7 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 300 !important;
}

.mo-swieta-widget__primary:hover,
.mo-swieta-widget__primary:focus-visible,
.mo-swieta-widget__secondary:hover,
.mo-swieta-widget__secondary:focus-visible {
    color: #F2EBDD !important;
}

.mo-swieta-widget__primary:focus-visible,
.mo-swieta-widget__secondary:focus-visible {
    outline: 1px solid #A47B2F;
    outline-offset: 5px;
}

.mo-swieta-widget__secondary[hidden] {
    display: none !important;
}

.mo-swieta-widget__noscript {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
}
.mo-swieta-widget__noscript a {
    color: #BDB4A7;
    text-decoration: none;
}

/* Pomaga shortcode'owi wykorzystać wysokość istniejącego okna,
   ale nie narzuca nowej wysokości panelu. */
.elementor-widget-shortcode:has(.mo-swieta-widget),
.elementor-widget-shortcode:has(.mo-swieta-widget) > .elementor-widget-container {
    height: 100%;
}

@media (max-width: 900px) {
    .mo-swieta-widget--panel { padding: 38px 34px 34px; }

    .mo-swieta-widget__title { font-size: 29px !important; }
    .mo-swieta-widget__title.mo-swieta-widget__title--medium { font-size: 28px !important; }
    .mo-swieta-widget__title.mo-swieta-widget__title--long { font-size: 27px !important; }
    .mo-swieta-widget__title.mo-swieta-widget__title--xlong { font-size: 25px !important; }
}

@media (max-width: 600px) {
    .mo-swieta-widget--panel { padding: 28px 24px 26px; }

    .mo-swieta-widget__kicker {
        margin-bottom: 18px !important;
        font-size: 12px !important;
    }

    .mo-swieta-widget__title,
    .mo-swieta-widget__title.mo-swieta-widget__title--medium {
        font-size: 27px !important;
    }
    .mo-swieta-widget__title.mo-swieta-widget__title--long { font-size: 25px !important; }
    .mo-swieta-widget__title.mo-swieta-widget__title--xlong { font-size: 23px !important; }

    .mo-swieta-widget__description {
        margin-top: 18px !important;
        font-size: 15px !important;
        line-height: 1.68 !important;
    }

    .mo-swieta-widget__actions {
        margin-top: 28px;
    }
}


/* ==========================================================
   v1.0.3 — stały panel jak przed wtyczką
   Zasada: okno ma stały wymiar. Treść dopasowuje się do niego.
   ========================================================== */

/* JS oznacza klasą .mo-swieta-host istniejący panel Elementora. */
.mo-swieta-host {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
    align-self: center !important;
}

/* Nie pozwalamy wewnętrznym elementom Elementora wymuszać wysokości. */
.mo-swieta-host > .e-con-inner,
.mo-swieta-host .elementor-widget-shortcode,
.mo-swieta-host .elementor-widget-shortcode > .elementor-widget-container {
    min-height: 0 !important;
    max-height: 100% !important;
}

.mo-swieta-host .elementor-widget-shortcode,
.mo-swieta-host .elementor-widget-shortcode > .elementor-widget-container {
    height: 100% !important;
}

/* Shortcode wypełnia panel, ale go nie powiększa. */
.mo-swieta-widget {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Gdy używany jest samodzielny tryb panel="1". */
.mo-swieta-widget--panel {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
}

/* Wersja normalna — skala zbliżona do starego „Trwajcie we Mnie…”. */
.mo-swieta-widget__kicker {
    margin: 0 0 16px !important;
}

.mo-swieta-widget__title {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
}

.mo-swieta-widget__description {
    margin: 16px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.mo-swieta-widget__actions {
    margin-top: 22px !important;
    gap: 9px !important;
}

.mo-swieta-widget__primary {
    font-size: 14px !important;
}

.mo-swieta-widget__secondary {
    font-size: 12px !important;
}

/* AUTO-FIT 1 */
.mo-swieta-widget.mo-fit--compact .mo-swieta-widget__kicker {
    margin-bottom: 12px !important;
    font-size: 11px !important;
}
.mo-swieta-widget.mo-fit--compact .mo-swieta-widget__title {
    font-size: 27px !important;
    line-height: 1.10 !important;
}
.mo-swieta-widget.mo-fit--compact .mo-swieta-widget__description {
    margin-top: 12px !important;
    font-size: 13px !important;
    line-height: 1.46 !important;
}
.mo-swieta-widget.mo-fit--compact .mo-swieta-widget__actions {
    margin-top: 17px !important;
    gap: 7px !important;
}

/* AUTO-FIT 2 */
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__kicker {
    margin-bottom: 9px !important;
    font-size: 10px !important;
    line-height: 12px !important;
}
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__title {
    font-size: 23px !important;
    line-height: 1.08 !important;
}
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__description {
    margin-top: 9px !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
}
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__actions {
    margin-top: 13px !important;
    gap: 5px !important;
}
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__primary {
    font-size: 12px !important;
}
.mo-swieta-widget.mo-fit--tight .mo-swieta-widget__secondary {
    font-size: 11px !important;
}

/* AUTO-FIT 3 — awaryjny. Nadal nie wolno powiększyć panelu. */
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
    line-height: 11px !important;
}
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__title {
    font-size: 19px !important;
    line-height: 1.06 !important;
}
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__description {
    margin-top: 7px !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
}
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__actions {
    margin-top: 10px !important;
    gap: 4px !important;
}
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__primary {
    font-size: 11px !important;
}
.mo-swieta-widget.mo-fit--micro .mo-swieta-widget__secondary {
    font-size: 10px !important;
}

/* Wysokość jest stała także na breakpointach — zmienia się tylko raz na layout. */
@media (max-width: 900px) {
    .mo-swieta-host,
    .mo-swieta-widget--panel {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }
}

@media (max-width: 600px) {
    .mo-swieta-host,
    .mo-swieta-widget--panel {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
}


/* ==========================================================
   v1.0.4 — POPRAWKA GEOMETRII
   NIE zgadujemy już struktury Elementora.
   Stały wymiar dotyczy WYŁĄCZNIE elementu oznaczonego klasą:
   mo-swieta-panel
   ========================================================== */

/* Stare automatyczne oznaczenie hosta nie steruje już geometrią. */
.mo-swieta-host {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-self: auto !important;
}

/*
 * TYLKO właściwa brązowa ramka.
 * W Elementorze użytkownik nadaje jej klasę CSS:
 * mo-swieta-panel
 */
.mo-swieta-panel {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Elementor: żadna warstwa wewnątrz panelu nie może wymusić większej wysokości. */
.mo-swieta-panel > .e-con-inner,
.mo-swieta-panel .elementor-widget-shortcode,
.mo-swieta-panel .elementor-widget-shortcode > .elementor-widget-container {
    min-height: 0 !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
}

.mo-swieta-panel .elementor-widget-shortcode,
.mo-swieta-panel .elementor-widget-shortcode > .elementor-widget-container {
    height: 100% !important;
}

/* Shortcode wypełnia wyłącznie dostępne wnętrze panelu. */
.mo-swieta-panel .mo-swieta-widget {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Bez panelu klasy shortcode nie próbuje sterować layoutem strony. */
.mo-swieta-widget:not(.mo-swieta-widget--panel) {
    min-height: 0;
}

/* Samodzielny panel nadal może działać, ale tylko gdy użytkownik użyje panel="1". */
.mo-swieta-widget--panel {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
}

/* Stały panel, treść ma się zmieścić nawet kosztem skali. */
.mo-swieta-panel .mo-swieta-widget__kicker,
.mo-swieta-widget--panel .mo-swieta-widget__kicker {
    margin: 0 0 14px !important;
}

.mo-swieta-panel .mo-swieta-widget__title,
.mo-swieta-widget--panel .mo-swieta-widget__title {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.10 !important;
}

.mo-swieta-panel .mo-swieta-widget__description,
.mo-swieta-widget--panel .mo-swieta-widget__description {
    margin: 14px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
}

.mo-swieta-panel .mo-swieta-widget__actions,
.mo-swieta-widget--panel .mo-swieta-widget__actions {
    margin-top: 20px !important;
    gap: 8px !important;
}

/* AUTO-FIT COMPACT */
.mo-swieta-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__kicker,
.mo-swieta-widget--panel.mo-fit--compact .mo-swieta-widget__kicker {
    margin-bottom: 10px !important;
    font-size: 11px !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__title,
.mo-swieta-widget--panel.mo-fit--compact .mo-swieta-widget__title {
    font-size: 26px !important;
    line-height: 1.08 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__description,
.mo-swieta-widget--panel.mo-fit--compact .mo-swieta-widget__description {
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.40 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__actions,
.mo-swieta-widget--panel.mo-fit--compact .mo-swieta-widget__actions {
    margin-top: 15px !important;
    gap: 6px !important;
}

/* AUTO-FIT TIGHT */
.mo-swieta-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__kicker,
.mo-swieta-widget--panel.mo-fit--tight .mo-swieta-widget__kicker {
    margin-bottom: 8px !important;
    font-size: 10px !important;
    line-height: 12px !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__title,
.mo-swieta-widget--panel.mo-fit--tight .mo-swieta-widget__title {
    font-size: 22px !important;
    line-height: 1.06 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__description,
.mo-swieta-widget--panel.mo-fit--tight .mo-swieta-widget__description {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__actions,
.mo-swieta-widget--panel.mo-fit--tight .mo-swieta-widget__actions {
    margin-top: 11px !important;
    gap: 5px !important;
}

/* AUTO-FIT MICRO — awaryjny. */
.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__kicker,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__kicker {
    margin-bottom: 6px !important;
    font-size: 9px !important;
    line-height: 11px !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__title,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__title {
    font-size: 18px !important;
    line-height: 1.04 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__description,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__description {
    margin-top: 6px !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__actions,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__actions {
    margin-top: 8px !important;
    gap: 4px !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__primary,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__primary {
    font-size: 11px !important;
}

.mo-swieta-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__secondary,
.mo-swieta-widget--panel.mo-fit--micro .mo-swieta-widget__secondary {
    font-size: 10px !important;
}

/*
 * Breakpointy: rozmiar panelu może być inny na tablet/mobile,
 * ale w obrębie danego breakpointu ZAWSZE jest stały.
 */
@media (max-width: 900px) {
    .mo-swieta-panel,
    .mo-swieta-widget--panel {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }
}

@media (max-width: 600px) {
    .mo-swieta-panel,
    .mo-swieta-widget--panel {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
}


/* ==========================================================
   v1.0.5 — RAMKA 1:1 Z WERSJĄ SPRZED WTYCZKI
   Pomiar referencyjny ze screena: ok. 700 × 413 px.
   Widoczną ramkę renderuje teraz SAMA WTYCZKA.
   Elementor nie może wpływać na jej wysokość.
   ========================================================== */

/*
 * Kontener Elementora, w którym dawniej była ramka, staje się wyłącznie
 * pozycjonerem. JS dodaje tę klasę tylko do wykrytego właściwego hosta.
 */
.mo-swieta-layout-host {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-self: center !important;
}

/* Jeśli wcześniej ręcznie nadano klasę mo-swieta-panel, nie tworzy ona ramki. */
.mo-swieta-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*
 * To jest OD TERAZ jedyna widoczna ramka.
 * Wysokość desktop odpowiada staremu panelowi ze screena.
 */
.mo-swieta-widget.mo-swieta-widget--fixed-frame {
    width: 100% !important;
    max-width: 700px !important;

    height: 413px !important;
    min-height: 413px !important;
    max-height: 413px !important;

    margin: 0 auto !important;
    padding: 42px 48px !important;

    background: #12110E !important;
    border: 1px solid #3E3423 !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Resetujemy stare reguły, które próbowały sterować wysokością widgetu. */
.mo-swieta-widget--panel,
.mo-swieta-host .mo-swieta-widget,
.mo-swieta-panel .mo-swieta-widget {
    height: 413px !important;
    min-height: 413px !important;
    max-height: 413px !important;
}

/* TYPOGRAFIA — skala odpowiada niewielkiemu panelowi, nie hero. */
.mo-swieta-widget--fixed-frame .mo-swieta-widget__kicker {
    margin: 0 0 18px !important;
    font-size: 12px !important;
    line-height: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__title {
    margin: 0 !important;
    font-size: 31px !important;
    line-height: 1.12 !important;
    font-weight: 400 !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__description {
    max-width: 520px !important;
    margin: 19px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 200 !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__actions {
    margin-top: 27px !important;
    gap: 9px !important;
}

/* AUTO-FIT — rozmiar RAMKI nigdy się nie zmienia. */
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__kicker {
    margin-bottom: 14px !important;
    font-size: 11px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__title {
    font-size: 27px !important;
    line-height: 1.09 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__description {
    margin-top: 14px !important;
    font-size: 13px !important;
    line-height: 1.43 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__actions {
    margin-top: 19px !important;
    gap: 7px !important;
}

.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__kicker {
    margin-bottom: 10px !important;
    font-size: 10px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__title {
    font-size: 23px !important;
    line-height: 1.07 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__description {
    margin-top: 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__actions {
    margin-top: 14px !important;
    gap: 5px !important;
}

.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__title {
    font-size: 19px !important;
    line-height: 1.04 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__description {
    margin-top: 7px !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__actions {
    margin-top: 9px !important;
    gap: 4px !important;
}

/* Breakpointy zachowują ustalony kształt, ale mieszczą się w węższym ekranie. */
@media (max-width: 900px) {
    .mo-swieta-widget.mo-swieta-widget--fixed-frame,
    .mo-swieta-widget--panel,
    .mo-swieta-host .mo-swieta-widget,
    .mo-swieta-panel .mo-swieta-widget {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }

    .mo-swieta-widget.mo-swieta-widget--fixed-frame {
        padding: 36px 36px !important;
    }
}

@media (max-width: 600px) {
    .mo-swieta-widget.mo-swieta-widget--fixed-frame,
    .mo-swieta-widget--panel,
    .mo-swieta-host .mo-swieta-widget,
    .mo-swieta-panel .mo-swieta-widget {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    .mo-swieta-widget.mo-swieta-widget--fixed-frame {
        padding: 30px 26px !important;
    }
}


/* ==========================================================
   v1.0.6 — OSTATECZNA GEOMETRIA PRAWEGO PANELU
   Referencja ze starego screena:
   szerokość ok. 700 px, wysokość ok. 413–415 px.
   Widocznym panelem pozostaje ISTNIEJĄCY kontener Elementora.
   ========================================================== */

/*
 * JS nadaje tę klasę dokładnie temu obramowanemu kontenerowi,
 * który zawiera shortcode.
 *
 * Wysokość jest dodatkowo ustawiana inline !important w JS,
 * więc reguły min-height Elementora nie mogą jej nadpisać.
 */
.mo-swieta-runtime-panel {
    height: 413px !important;
    min-height: 413px !important;
    max-height: 413px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;

    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

/* Usuwamy skutki wcześniejszych eksperymentów z hostami. */
.mo-swieta-layout-host,
.mo-swieta-host {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/*
 * Sam shortcode NIE tworzy ramki.
 * Wypełnia dokładnie istniejące okno i centruje treść pionowo.
 */
.mo-swieta-runtime-panel .elementor-widget-shortcode,
.mo-swieta-runtime-panel .elementor-widget-shortcode > .elementor-widget-container {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Normalny stan — podobna skala do starego „Trwajcie we Mnie…”. */
.mo-swieta-runtime-panel .mo-swieta-widget__kicker {
    margin: 0 0 17px !important;
    font-size: 12px !important;
    line-height: 15px !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget__title {
    margin: 0 !important;
    font-size: 31px !important;
    line-height: 1.10 !important;
    font-weight: 400 !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget__description {
    max-width: 520px !important;
    margin: 18px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget__actions {
    margin-top: 25px !important;
    gap: 8px !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget__primary {
    font-size: 14px !important;
}

.mo-swieta-runtime-panel .mo-swieta-widget__secondary {
    font-size: 12px !important;
}

/* AUTO-FIT 1 */
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__kicker {
    margin-bottom: 13px !important;
    font-size: 11px !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__title {
    font-size: 27px !important;
    line-height: 1.08 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__description {
    margin-top: 13px !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--compact .mo-swieta-widget__actions {
    margin-top: 18px !important;
    gap: 6px !important;
}

/* AUTO-FIT 2 */
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__kicker {
    margin-bottom: 9px !important;
    font-size: 10px !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__title {
    font-size: 23px !important;
    line-height: 1.06 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__description {
    margin-top: 9px !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--tight .mo-swieta-widget__actions {
    margin-top: 13px !important;
    gap: 5px !important;
}

/* AUTO-FIT 3 — awaryjny, panel nadal pozostaje 413 px. */
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__kicker {
    margin-bottom: 6px !important;
    font-size: 9px !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__title {
    font-size: 18px !important;
    line-height: 1.04 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__description {
    margin-top: 6px !important;
    font-size: 10px !important;
    line-height: 1.26 !important;
}
.mo-swieta-runtime-panel .mo-swieta-widget.mo-fit--micro .mo-swieta-widget__actions {
    margin-top: 8px !important;
    gap: 4px !important;
}

/* Breakpointy: stały rozmiar w obrębie każdego layoutu. */
@media (max-width: 900px) {
    .mo-swieta-runtime-panel {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }
}

@media (max-width: 600px) {
    .mo-swieta-runtime-panel {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
}


/* ==========================================================
   v1.0.7 — PANEL W PROPORCJI REFERENCYJNEGO STAREGO OKNA
   Referencja ze screena: ok. 605 × 358 px = 1.69 : 1
   Zasada: widoczną ramkę tworzy shortcode, NIE Elementor.
   ========================================================== */

/* Stary panel Elementora jest tylko uchwytem pozycjonującym. */
.mo-swieta-panel,
.mo-swieta-runtime-panel,
.mo-swieta-layout-host,
.mo-swieta-host {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    flex-grow: 0 !important;
    flex-shrink: 0 !important;

    --min-height: 0px !important;
}

/* Widget shortcode nie rozciąga rodzica. */
.mo-swieta-panel .elementor-widget-shortcode,
.mo-swieta-panel .elementor-widget-shortcode > .elementor-widget-container,
.mo-swieta-runtime-panel .elementor-widget-shortcode,
.mo-swieta-runtime-panel .elementor-widget-shortcode > .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/*
 * JEDYNA widoczna ramka.
 * Desktop: proporcja dokładnie jak stare okno.
 */
.mo-swieta-widget.mo-swieta-widget--fixed-frame {
    width: 100% !important;
    max-width: 620px !important;

    aspect-ratio: 605 / 358 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 44px 44px !important;

    background: #12110E !important;
    border: 1px solid #3E3423 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Zgrabna typografia referencyjna. */
.mo-swieta-widget--fixed-frame .mo-swieta-widget__kicker {
    margin: 0 0 17px !important;
    font-size: 12px !important;
    line-height: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__title {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.10 !important;
    font-weight: 400 !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__description {
    max-width: 510px !important;
    margin: 18px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.50 !important;
    font-weight: 200 !important;
}

.mo-swieta-widget--fixed-frame .mo-swieta-widget__actions {
    margin-top: 24px !important;
    gap: 8px !important;
}

/* Długie nazwy — ramka NIE zmienia rozmiaru. */
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__kicker {
    margin-bottom: 13px !important;
    font-size: 11px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__title {
    font-size: 26px !important;
    line-height: 1.08 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__description {
    margin-top: 13px !important;
    font-size: 13px !important;
    line-height: 1.40 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--compact .mo-swieta-widget__actions {
    margin-top: 17px !important;
    gap: 6px !important;
}

.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__kicker {
    margin-bottom: 9px !important;
    font-size: 10px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__title {
    font-size: 22px !important;
    line-height: 1.06 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__description {
    margin-top: 9px !important;
    font-size: 12px !important;
    line-height: 1.33 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--tight .mo-swieta-widget__actions {
    margin-top: 12px !important;
    gap: 5px !important;
}

.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__kicker {
    margin-bottom: 6px !important;
    font-size: 9px !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__title {
    font-size: 18px !important;
    line-height: 1.04 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__description {
    margin-top: 6px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}
.mo-swieta-widget--fixed-frame.mo-fit--micro .mo-swieta-widget__actions {
    margin-top: 8px !important;
    gap: 4px !important;
}

/* Mobile: zachowujemy stałą kontrolę, ale nie wymuszamy bardzo szerokiej proporcji. */
@media (max-width: 600px) {
    .mo-swieta-widget.mo-swieta-widget--fixed-frame {
        max-width: 100% !important;
        aspect-ratio: auto !important;
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        padding: 30px 26px !important;
    }
}


/* ==========================================================
   v1.0.8 — USUNIĘCIE PODWÓJNEJ RAMKI
   Zostaje tylko jedna widoczna ramka generowana przez shortcode.
   ========================================================== */

/*
 * JS oznacza wszystkie pośrednie kontenery Elementora pomiędzy
 * shortcode a dużą sekcją strony klasą .mo-swieta-shell-reset.
 */
.mo-swieta-shell-reset {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    --min-height: 0px !important;

    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    overflow: visible !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    align-self: auto !important;
}

/* Widget shortcode i jego bezpośredni wrapper też nie tworzą wysokości. */
.mo-swieta-shell-reset.elementor-widget-shortcode,
.mo-swieta-shell-reset.elementor-widget-shortcode > .elementor-widget-container,
.mo-swieta-shell-reset .elementor-widget-shortcode,
.mo-swieta-shell-reset .elementor-widget-shortcode > .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
}

/*
 * Jedyna widoczna ramka.
 * Po usunięciu paddingu zewnętrznego może wykorzystać pełną szerokość kolumny.
 */
.mo-swieta-widget.mo-swieta-widget--fixed-frame {
    width: 100% !important;
    max-width: 620px !important;
    aspect-ratio: 605 / 358 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 42px 44px !important;

    background: #12110E !important;
    border: 1px solid #3E3423 !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Desktop: nie pozwól, by odziedziczone reguły v1.0.6/1.0.7 zrobiły drugi panel. */
.mo-swieta-runtime-panel,
.mo-swieta-layout-host,
.mo-swieta-host,
.mo-swieta-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    --min-height: 0px !important;
}

/* Mobile */
@media (max-width: 600px) {
    .mo-swieta-widget.mo-swieta-widget--fixed-frame {
        aspect-ratio: auto !important;
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        padding: 28px 24px !important;
    }
}
