/*
Theme Name: Supply Child Theme
Theme URI: https://supply.ancorathemes.com/
Description: Supply is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AncoraThemes
Author URI: https://ancorathemes.com/
Version: 1.10.0
Tested up to: 6.8
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: supply
Template: supply
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

.page_content_wrap {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/** CF7 */ 
.cf7-wrapper .cf7-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}
.cf7-wrapper .cf7-col-50 {
    flex: 1 1 calc(50% - 10px);
}
.cf7-wrapper .cf7-col-100 {
    flex: 1 1 100%;
}
.cf7-wrapper label {
    display: block;
    width: 100%;
}
.cf7-wrapper input[type="text"],
.cf7-wrapper input[type="tel"],
.cf7-wrapper input[type="email"],
.cf7-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .cf7-wrapper .cf7-col-50 {
        flex: 1 1 100%;
    }
}

.wpcf7-acceptance label {
    display: inline-flex;
    gap: 5px;
    align-items: flex-start;
}

.wpcf7-acceptance span {
    font-size: 12px;
    line-height: 120%;
}

.cf7-row label {
    color: #000;
    font-family: "Figtree";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%; /* 22.4px */
    text-transform: uppercase;
}

.cf7-title {
    color: var(--BLACK, #231F20);
    font-size: 23px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 27.6px */
}

.wpcf7-acceptance a:hover {
    text-decoration: underline;
    color: var(--BLACK, #231F20);
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    text-transform: none;
}

/** Podstrona autora - dane Person (stanowisko, firma, kompetencje, linki) */
.author_page .author_avatar_image,
.author_info .author_avatar_image {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.author_page .author_role {
    margin-bottom: 0.6rem;
    color: var(--theme-color-text-2, #767676);
    font-size: 0.95em;
}

.author_page .author_organization {
    font-weight: 600;
}

.author_page .author_knows_about {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.author_page .author_knows_about_item {
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--theme-color-border, #e2e2e2);
    border-radius: 999px;
    font-size: 0.8em;
    color: var(--theme-color-title);
}

.author_page .author_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.author_page .author_links_item {
    color: var(--theme-color-link);
    text-decoration: underline;
    font-size: 0.9em;
}

/* Ikony social - wygląd 1:1 jak w stopce (widget Elementor "Media społecznościowe") */
.author_page .author_social_icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0.8rem;
}

.author_page .author_social_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.author_page .author_social_icon svg {
    height: 14px;
    width: auto;
    display: block;
    fill: #000;
    transition: fill 0.3s ease;
}

.author_page .author_social_icon:hover {
    background-color: var(--e-global-color-primary, #23A0DA);
}

.author_page .author_social_icon:hover svg {
    fill: #fff;
}

.author_publications_heading {
    margin-bottom: 1.5rem;
}

/** Sekcja FAQ pod wpisem (schema.org FAQPage, dane z ACF) */
.post_faq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--theme-color-border, #e2e2e2);
}

.post_faq_heading {
    margin-bottom: 1.2rem;
}

.post_faq_list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.post_faq_item {
    border: 1px solid var(--theme-color-border, #e2e2e2);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
}

.post_faq_item[open] {
    border-color: var(--theme-color-link, #23A0DA);
}

.post_faq_question {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: var(--theme-color-title);
}

/* Pytanie jako H3 wewnątrz <summary> - wygląd jak dotychczasowy tekst pytania */
.post_faq_question_title {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: inherit;
}

.post_faq_question::-webkit-details-marker {
    display: none;
}

.post_faq_question::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.3em;
    line-height: 1;
    color: var(--theme-color-link, #23A0DA);
    transition: transform 0.2s ease;
}

.post_faq_item[open] .post_faq_question::after {
    transform: rotate(45deg);
}

.post_faq_answer {
    margin-top: 0.7rem;
    color: var(--theme-color-text-2, #767676);
}

.post_faq_answer p {
    margin: 0;
}

.post_faq_answer p + p {
    margin-top: 0.6rem;
}

/** Belka z datą, autorem i czasem czytania pod tytułem wpisu */
.post_info_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    background-color: var(--theme-color-bg_2, #F2F4F5);
    border-radius: 999px;
    color: var(--BLACK, #231F20);
    font-weight: 400;
    line-height: 160%; 
    font-size: 14px;
}

.post_info_bar_item {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

a.post_info_bar_item:hover {
    color: var(--theme-color-link, #23A0DA);
}

.post_info_bar_item:not(:last-child)::after {
    content: '\2022';
    margin-left: 0.6rem;
    color: var(--theme-color-link, #23A0DA);
    font-weight: 700;
}

/** Dynamiczny spis treści (przed 1. nagłówkiem H2 w treści) */
.post_toc {
    margin: 0 0 2rem;
    padding: 1.2rem 1.4rem;
    background-color: var(--theme-color-bg_2, #F2F4F5);
    border-radius: 10px;
    border: 1px solid var(--theme-color-border, #e2e2e2);
}

.post_toc_title {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%; /* 22.4px */
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post_toc_list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post_toc_list a {
    color: var(--theme-color-link, #23A0DA);
    text-decoration: none;
}

/** Przywrócenie stylu H6 dla .author_title po zmianie znacznika na <span> (author-bio.php) */
.author_info .author_title {
    display: block;
    color: var(--theme-color-title);
    font-family: var(--theme-font-h6_font-family);
    font-size: var(--theme-font-h6_font-size);
    font-weight: var(--theme-font-h6_font-weight);
    font-style: var(--theme-font-h6_font-style);
    line-height: var(--theme-font-h6_line-height);
    text-decoration: var(--theme-font-h6_text-decoration);
    text-transform: var(--theme-font-h6_text-transform);
    letter-spacing: var(--theme-font-h6_letter-spacing);
}

.author_info .author_title > a {
    display: block;
    color: inherit;
}

.author_info .author_title > a:hover {
    color: var(--theme-color-link);
}

/** Przywrócenie stylu H6 dla .post_title w powiązanych wpisach po zmianie znacznika na <span> (related-posts.php) */
.related_wrap .post_title {
    display: block;
    font-family: var(--theme-font-h6_font-family);
    font-size: var(--theme-font-h6_font-size);
    font-weight: var(--theme-font-h6_font-weight);
    font-style: var(--theme-font-h6_font-style);
    line-height: var(--theme-font-h6_line-height);
    text-decoration: var(--theme-font-h6_text-decoration);
    text-transform: var(--theme-font-h6_text-transform);
    letter-spacing: var(--theme-font-h6_letter-spacing);
}

.related_wrap .post_title > a {
    display: block;
}

/** Przywrócenie stylu H6 dla .post-title w nawigacji poprzedni/następny wpis po zmianie znacznika na <span> */
.nav-links-single .nav-links .post-title {
    display: block;
    color: var(--theme-color-title);
    font-family: var(--theme-font-h6_font-family);
    font-size: var(--theme-font-h6_font-size);
    font-weight: var(--theme-font-h6_font-weight);
    font-style: var(--theme-font-h6_font-style);
    line-height: var(--theme-font-h6_line-height);
    text-decoration: var(--theme-font-h6_text-decoration);
    text-transform: var(--theme-font-h6_text-transform);
    letter-spacing: var(--theme-font-h6_letter-spacing);
}

/** Boks "O autorze" pod wpisem - stanowisko, zajawka bio, link do publikacji */
.author_info .author_job_title {
    margin-top: 0.3em;
    font-size: 0.9em;
    color: var(--theme-color-text-2, #767676);
}

.author_info .author_label {
    margin-top: 0.6em;
}

.author_info .author_bio_excerpt {
    margin-top: 0.8em;
    color: var(--theme-color-text-2, #767676);
}

.author_info .author_more_link {
    display: inline-block;
    margin-top: 0.6em;
    color: var(--theme-color-link, #23A0DA);
    text-decoration: underline;
    font-size: 0.9em;
}

.author_info .author_more_link:hover {
    color: #231F20;
}

.post_footer .nav-links a:hover * {
    color: var(--theme-color-link, #23A0DA);
}

.author_info .author_bio {
    margin-top: 0.8em;
}

.author_info {
        background-color: #F2F4F5;
}

.post_toc_list a:hover {
    text-decoration: underline;
}

.nav-links .page-numbers {
    color: var(--theme-color-title);
    border-color: #ddd;
    background-color: var(--theme-color-bg_color_2);
    border-radius: 30px;
}

/** Nagłówek strony bloga - okruszki + H1, wyśrodkowane */
.blog_page_header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog_page_header .md-realizacja__breadcrumb {
    display: flex;
    justify-content: center;
}

.blog_page_description {
    /* max-width: 700px; */
    margin: 0 auto;
    color: var(--theme-color-text-2, #767676);
}

.blog_page_description p {
    margin: 0;
}

.blog_page_description p + p {
    margin-top: 0.6rem;
}

.blog_page_title {
    color: #23A0DA;
    padding-top: 0;
    margin-top: 0;
}

.blog_page_description span.h2{
    font-size: 28px;
    color: #231f20;
    font-weight: 500;
}

.single-post h2 {
    font-size: 28px;
    color: #23A0DA;
}

.single-post h3 {
    font-size: 23px;
}

/** CTA na końcu wpisu, przed boksem autora */
.post_cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.6rem 2rem;
    background-color: #23A0DA;
    border-radius: 10px;
}

.post_cta_text {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

.post_cta_button {
    flex: 0 0 auto;
    padding: 0.7rem 1.6rem;
    background-color: #fff;
    color: #23A0DA;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.post_cta_button:hover {
    opacity: 0.85;
    color: #23A0DA;
}

@media (max-width: 600px) {
    .post_cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.elementor-slideshow__footer {
    display: none;
}

.single-post a:hover {
    color: #0c0d0e;
}

ol, ul {
    padding-left: 2.2em;
}

.single-post .wp-block-image {
    border-radius: 15px;
}
/** Tabele w treści wpisu (blok "Tabela" i tabele z edytora klasycznego) */
.single-post .post_content .wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-post .post_content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--theme-color-border, #e2e2e2);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
    line-height: 150%;
}

.single-post .post_content .wp-block-table table {
    margin: 0;
}

.single-post .post_content .wp-block-table thead,
.single-post .post_content .wp-block-table tfoot {
    border: none;
}

.single-post .post_content table th,
.single-post .post_content table td {
    padding: 0.8rem 1.1rem;
    border: none;
    border-bottom: 1px solid var(--theme-color-border, #e2e2e2);
    text-align: left;
    vertical-align: top;
}

.single-post .post_content table tr:last-child > td,
.single-post .post_content table tr:last-child > th {
    border-bottom: none;
}

.single-post .post_content table thead th,
.single-post .post_content table thead td {
    background-color: #23A0DA;
    color: #fff;
    font-weight: 600;
    border-bottom: none;
}

.single-post .post_content table thead th *,
.single-post .post_content table thead td * {
    color: #fff;
}

.single-post .post_content table > tbody > tr:nth-child(2n+1) > td {
    background-color: #fff;
}

.single-post .post_content table > tbody > tr:nth-child(2n) > td {
    background-color: var(--theme-color-bg_2, #F2F4F5);
}

.single-post .post_content table tbody th {
    color: var(--BLACK, #231F20);
    background-color: var(--theme-color-bg_2, #F2F4F5);
    font-weight: 600;
}

.single-post .post_content table tfoot td,
.single-post .post_content table tfoot th {
    background-color: var(--theme-color-bg_2, #F2F4F5);
    color: var(--BLACK, #231F20);
    font-weight: 600;
    border-top: 1px solid var(--theme-color-border, #e2e2e2);
}

.single-post .post_content .wp-block-table figcaption,
.single-post .post_content table caption {
    margin-top: 0.6rem;
    font-size: 13px;
    color: var(--theme-color-text-2, #767676);
    text-align: left;
}

@media (max-width: 600px) {
    .single-post .post_content table {
        font-size: 14px;
    }

    .single-post .post_content table th,
    .single-post .post_content table td {
        padding: 0.6rem 0.8rem;
    }

    .single-post .post_content .wp-block-table table {
        min-width: 520px;
    }
}

.kontakt-box .trx-addons-info-box-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.kontakt-box .trx-addons-info-box {
    width: 100%;
}

.bridge::before, .bridge::after {
    content: "";
    flex: 1 1 60px;
    height: 1px;
    background: #dfe5ec;
}

.bridge {
        display: flex;
    align-items: center;
}

/** Tabela do wklejania w treść (<div class="md-table-wrap"><table class="md-table">)
 *  Na telefonie wiersze zamieniają się w karty - etykiety kolumn z data-label w <td>. */
.md-table-wrap {
    margin: 2rem 0;
}

.md-table-wrap table.md-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--theme-color-border, #e2e2e2);
    border-radius: 15px;
    overflow: hidden;
    table-layout: fixed;
    color: var(--BLACK, #231F20);
    font-size: 15px;
    line-height: 160%;
}

/* 1. kolumna stała, pozostałe (2 lub więcej) dzielą resztę po równo */
.md-table-wrap table.md-table > thead > tr > th:first-child {
    width: 25%;
}

/* Wariant: długie opisy w 1. kolumnie, krótkie odpowiedzi w 2. (np. "Tak") */
.md-table-wrap table.md-table.md-table--half > thead > tr > th:first-child {
    width: 50%;
}

.md-table-wrap table.md-table > thead > tr > th,
.md-table-wrap table.md-table > tbody > tr > th,
.md-table-wrap table.md-table > tbody > tr > td {
    padding: 1rem 1.2rem;
    border: none;
    border-bottom: 1px solid var(--theme-color-border, #e2e2e2);
    text-align: left;
    vertical-align: top;
}

.md-table-wrap table.md-table > thead > tr > th {
    background-color: #23A0DA;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
    border-bottom: none;
}

.md-table-wrap table.md-table > tbody > tr > th {
    background-color: var(--theme-color-bg_2, #F2F4F5);
    color: var(--BLACK, #231F20);
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    border-right: 1px solid var(--theme-color-border, #e2e2e2);
}

.md-table-wrap table.md-table > tbody > tr > td {
    background-color: #fff;
}

.md-table-wrap table.md-table > tbody > tr > td + td {
    border-left: 1px solid var(--theme-color-border, #e2e2e2);
}

.md-table-wrap table.md-table > tbody > tr:last-child > th,
.md-table-wrap table.md-table > tbody > tr:last-child > td {
    border-bottom: none;
}

@media (max-width: 767px) {
    .md-table-wrap table.md-table,
    .md-table-wrap table.md-table > tbody,
    .md-table-wrap table.md-table > tbody > tr,
    .md-table-wrap table.md-table > tbody > tr > th,
    .md-table-wrap table.md-table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .md-table-wrap table.md-table {
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .md-table-wrap table.md-table > thead {
        display: none;
    }

    .md-table-wrap table.md-table > tbody > tr {
        margin-bottom: 1rem;
        border: 1px solid var(--theme-color-border, #e2e2e2);
        border-radius: 15px;
        overflow: hidden;
    }

    .md-table-wrap table.md-table > tbody > tr > th {
        background-color: #23A0DA;
        color: #fff;
        border-right: none;
        border-bottom: none;
    }

    .md-table-wrap table.md-table > tbody > tr > td + td {
        border-left: none;
    }

    .md-table-wrap table.md-table > tbody > tr:last-child > th {
        border-bottom: none;
    }

    .md-table-wrap table.md-table > tbody > tr > td:not(:last-child) {
        border-bottom: 1px solid var(--theme-color-border, #e2e2e2);
    }

    .md-table-wrap table.md-table > tbody > tr > td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        color: #23A0DA;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
}

body .trx_addons_scroll_to_top.show {
	bottom: 8em;
}