/* Custom CSS */

/* Example: Override main section background color. */
/* body .jupiterx-main {
    background-color: gray;
} */


.elementor-custom-embed-play {
    inset-block-start: 80%;
}

.jupiterx-subfooter {
    font-size: 12px;
}

@media (max-width: 1024px) {
    .elementor-custom-embed-play svg {
        fill: #fff;
        filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3));
        height: 50px;
        width: 50px;
    }
}


.produkt-karta1-con {
    display: flex !important;
    align-items: stretch !important;
}

.produkt-karta1 {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    align-self: stretch !important;
}

/* Wypchnij w dół przycisk albo cały blok z przyciskiem i zdjęciem */
.produkt-karta1 > .produkt-karta1-btn,
.produkt-karta1 > .e-con:has(.produkt-karta1-btn) {
    margin-top: auto !important;
}

.produkt-karta1 .produkt-karta1-btn {
    margin-top: 15px !important;
    margin-bottom: auto !important;
}

.produkt-karta1 .produkt-karta1-img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.produkt-karta1 .produkt-karta1-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.home .raven-timeline-list--middle {
    display: none !important;
}

/* Language switcher (header flags) */
.arsmedicum-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
    white-space: nowrap;
}

.arsmedicum-lang-flag {
    display: inline-flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity .2s ease;
}

.arsmedicum-lang-flag.is-active,
.arsmedicum-lang-flag:hover {
    opacity: 1;
}

.arsmedicum-lang-flag img {
    display: block;
    width: 16px;
    height: auto;
}

.arsmedicum-lang-sep {
    margin: 0 6px;
    color: #0F0F0F;
    opacity: 0.45;
    font-size: 12px;
}

/* Classic legal pages (privacy policy, terms) */
.arsmedicum-legal {
    box-sizing: border-box;
    max-width: 760px;
    margin: 56px auto 80px;
    padding: 0 24px;
    color: #4a5560;
    font-size: 16px;
    line-height: 1.7;
}

.arsmedicum-legal h1 {
    margin: 0 0 16px;
    color: #1c242c;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.arsmedicum-legal > p {
    margin: 0 0 28px;
}

.arsmedicum-legal ol {
    margin: 0;
    padding-left: 1.25em;
}

.arsmedicum-legal li {
    margin: 0 0 22px;
}

.arsmedicum-legal li strong {
    display: block;
    margin-bottom: 4px;
    color: #1c242c;
}

.arsmedicum-legal a {
    color: #1c242c;
    text-decoration: underline;
}

/* Header mega menu: plugin uses display:flex without justify, so EN labels look left-shifted */
.tahefobu-mega-menu-container .tahefobu-mega-nav-menu {
    justify-content: center;
}

/* Mobile: center logo; keep burger left and language flags right */
@media (max-width: 767px) {
    .elementor-3474 .elementor-element-570e9e8 > .e-con-inner {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
    }

    .elementor-3474 .elementor-element-27d83be {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: auto;
        max-width: calc(100% - 120px);
        pointer-events: none;
    }

    .elementor-3474 .elementor-element-27d83be a {
        pointer-events: auto;
    }

    .elementor-3474 .elementor-element-27d83be > .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .elementor-3474 .elementor-element-27d83be .tahefobu-site-logo-wrapper {
        text-align: center !important;
    }

    .elementor-3474 .elementor-element-27d83be .tahefobu-site-logo img {
        margin-inline: auto;
    }

    .elementor-3474 .elementor-element-9ac2a47 {
        position: relative;
        z-index: 3;
        order: 1 !important;
        flex: 0 0 auto;
    }

    .elementor-3474 .elementor-element-9ef2a31 {
        position: relative;
        z-index: 3;
        order: 3 !important;
        flex: 0 0 auto;
        margin-left: auto;
    }
}