/* Tabele */
#subscription-table table {
    border-collapse: separate;
    border-spacing: 8px 0;
}

#subscription-table table th.sticky-top {
    min-width: 150px !important;
    width: 150px !important;
    max-width: 150px !important;
}

#subscription-table table tbody,
#subscription-table table td,
#subscription-table table tfoot,
#subscription-table table th,
#subscription-table table thead,
#subscription-table table tr {
    border-color: #dee2e6;
}

/*#subscription-table table tbody tr:nth-child(odd) {*/
/*    background-color: #f5f5f5;*/
/*}*/

#subscription-table table tbody tr.odd {
    background-color: #f5f5f5;
}

#subscription-table table tbody tr.even {
    background-color: #ffffff;
}

#subscription-table table thead tr:first-child {
    height: 30px;
    background-color: #fff;
    top: 96px;
}

#subscription-table table tfoot tr:last-child {
    height: 10px;
    background-color: #fff;
}

#subscription-table table tfoot tr:last-child th {
    padding: 0 !important;
    margin: 0 !important;
}

#subscription-table table thead tr:last-child {
    top: 126px;
}

#subscription-table table tfoot tr:first-child {
    bottom: 10px;
}

#subscription-table table thead tr:first-child th {
    border: none;
}

#subscription-table table thead tr:not(:first-child) th {
    border-color: #dee2e6;
    border-width: 1px;
    background-color: #fff;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-width: 1px;
}

#subscription-table table tfoot tr td:not(:first-child) {
    border-color: #dee2e6;
    border-width: 1px;
    background-color: #f5f5f5;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}



#subscription-table table {
    vertical-align: middle;
}

#subscription-table table tr td:not(:first-child) {
    text-align: center;
}

#subscription-table table h1 {
    font-weight: bold;
    color: #505050;
    margin: 0;
}

#subscription-table table span:last-child {
    font-weight: normal;
    padding-top: 3px;
    display: block;
    font-size: 12px;
    padding: 0;
}

#subscription-table table span:first-child {
    font-weight: bolder;
    font-size: 16px;
    color: #505050;
}

#subscription-table table thead tr th.recommend h1,
#subscription-table table thead tr th.recommend span {
    color: #32b049;
}

#subscription-table table thead tr th.recommend {
    position: relative;
}

#subscription-table table thead tr th.recommend img {
    position: absolute;
}

#subscription-table table thead tr th.recommend img.ribbon {
    width: 75px;
    height: 75px;
    overflow: hidden;
    position: absolute;
    left: -17px;
    top: -15px;
}

#subscription-table table thead tr th.recommend {
    border-color: #6ea93e !important;
}

#subscription-table table tbody tr td.recommend {
    border-left-color: #6ea93e !important;
    border-right-color: #6ea93e !important;
}

#subscription-table table tbody tr:last-child td.recommend {
    border-bottom-color: #6ea93e !important;
}

#subscription-table table tbody tr td svg {
    color: #6ea93e;
    width: 34px;
}

#subscription-table table tbody tr td {
    color: #3d3d3d;
    font-size: 14px;
}

#subscription-table table tfoot tr td button {
    background: #fff;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    border: none;
    color: #6ea93e !important;
    font-weight: bold !important;
    font-size: 12px !important;
    border-color: #6ea93e !important;
    border-style: solid;
    border-width: 1px;
}

#subscription-table table tfoot tr td button:hover {
    background: #6ea93e !important;
    color: #FFF !important;
}

#subscription-table table tfoot tr td.recommend button {
    color: #FFF !important;
    background: #6ea93e;
    font-weight: bold !important;
    font-size: 12px !important;
}

#subscription-table table tfoot tr td.recommend button:hover {
    background: #FFF !important;
    color: #6ea93e !important;
}

#subscription-table table tfoot form {
    padding: 0 !important;
}

#subscription-table table tfoot tr td.recommend {
    border-color: #6ea93e;
}

#subscription-table table thead tr th .variant-name {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: .5rem;
    font-weight: normal;
}

#subscription-table table thead tr th .price-box h2 {
    font-size: 1rem;
    flex-flow: nowrap;
    display: flex;
    align-items: baseline;
    font-weight: normal;
    margin: 0 !important;
    padding: 3px !important;
    margin-bottom: 5px !important;
    color: #00ac35;
    background: #f6fafd;

}

#subscription-table table thead tr th .price-box h1 {
    font-size: 2rem;
    flex-flow: nowrap;
    display: flex;
    align-items: baseline;
    font-weight: normal;
    margin: 0 !important;
    padding: 0 !important;
}

#subscription-table table thead tr th .price-box h1:not(:last-child) {
    padding-bottom: 5px !important;
}

#subscription-table table thead tr th.recommend .price-box h1 {
    font-weight: bold;
}

#subscription-table table thead tr th .price-box h1:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: .5rem;
}

#subscription-table table thead tr th .price-box span {
    font-size: 0.75rem;
    padding-left: 3px;
    font-weight: normal;
}

#subscription-table table thead .variant-container {
    width: 150px;
    padding: .5rem;
    float: right;
    border-color: #dee2e6;
    border-width: 1px;
    border-style: solid;
    background-color: #f5f5f5;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

#subscription-table table thead .variant-container .row {
    width: 100%;
    margin: 0;
}

#subscription-table table thead tr:nth-child(2) th:nth-child(2) .price-box h1 {
    display: flex;
    justify-content: space-between;
    padding-top: .4rem;
}

#subscription-table table thead tr:nth-child(2) th:nth-child(2) .price-box {
    max-width: 85px;
    margin: 0 auto;
}

#subscription-table table thead tr:nth-child(2) th:nth-child(2) .price-box img {
    height: 30px;
    width: auto;
}

#subscription-table table tbody tr td:first-child {
    border-color: #dee2e6;
    border-width: 1px;
    border-style: solid;
}

#subscription-table table tbody tr:not(:last-child) td:first-child {
    border-bottom: none;
}

#subscription-table table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}

#subscription-table table tbody tr:first-child td:first-child {
    border-top-left-radius: 5px;
}

#subscription-table table thead tr:last-child th.type_of_facility {
    border-bottom: none;
}

#subscription-table table tbody tr td:not(:first-child) {
    border-bottom: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

#subscription-table table tbody tr:last-child td:not(:first-child) {
    border-bottom: none;
}

#subscription-table table thead tr th:nth-child(2) .price-box h1 {
    align-items: baseline;
}



#subscription-table table th.sticky-top {
    top: 125px;
    position: -webkit-sticky !important;
    position: sticky !important;
}

#subscription-table table thead tr th:nth-child(2) .price-box h1 span.age {
    bottom: 4px;
    position: relative;
}

/* Klasa dla kolumny zajmującej 1/2 szerokości */
#subscription-table table th.col-1-2,
#subscription-table table td.col-1-2 {
    width: 50% !important;
    min-width: 50% !important;
}

/* Klasa dla kolumny zajmującej 1/3 szerokości */
#subscription-table table th.col-1-3,
#subscription-table table td.col-1-3 {
    width: 33.33333333333333% !important;
    min-width: 33.33333333333333% !important;
}

/* Klasa dla kolumny zajmującej 1/4 szerokości */
#subscription-table table th.col-1-4,
#subscription-table table td.col-1-4 {
    width: 25% !important;
    min-width: 25% !important;
}

/* Klasa dla kolumny zajmującej 1/5 szerokości */
#subscription-table table th.col-1-5,
#subscription-table table td.col-1-5 {
    width: 20% !important;
    min-width: 20% !important;
}

/* Klasa dla kolumny zajmującej 1/6 szerokości */
#subscription-table table th.col-1-6,
#subscription-table table td.col-1-6 {
    width: 16.66666666666667% !important;
    min-width: 16.66666666666667% !important;
}

/* Domyślnie ukrywa wiersze z `data-parent` */
#subscription-table table tbody tr.risk-row[data-parent][data-visible="false"]:not([data-parent=""]) {
    display: none;
}

#subscription-table table tbody tr.risk-row td button {
    all: unset; /* Resetuje wszystkie domyślne style */
    width: 20px; /* Ustawia dokładny rozmiar */
    height: 21px;
    display: inline-flex; /* Aby obrazek był w środku */
    align-items: center; /* Wyrównanie pionowe */
    justify-content: center; /* Wyrównanie poziome */
    cursor: pointer;
}

#subscription-table table tbody tr.risk-row td button[aria-expanded="true"] img {
    transform: rotate(180deg); /* Obrót o 180 stopni */
}

#subscription-table table tbody tr.risk-row td button:focus {
    outline: none; /* Usuwa obramowanie pojawiające się przy focus */
    box-shadow: none; /* Usuwa cień focus */
}

#subscription-table table tbody tr.risk-row td button:hover {
    outline: none; /* Usuwa efekty hover */
}

#subscription-table table tbody tr.risk-row td button img {
    width: 20px; /* Rozmiar obrazka */
    height: 21px;
    display: block; /* Usuwa dodatkowy odstęp wokół obrazka */
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

#subscription-table table tfoot input[type="checkbox"],
#subscription-table table tfoot input[type="radio"] {
    display: none;
}

#subscription-table table tfoot input[type="checkbox"] + label,
#subscription-table table tfoot input[type="radio"] + label {
    background: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    border: 1px solid #6ea93e;
    color: #6ea93e;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    width: fit-content;
}

#subscription-table table tfoot input[type="checkbox"]:checked + label,
#subscription-table table tfoot input[type="radio"]:checked + label {
    background: #6ea93e;
    color: #fff;
}

/* Style dla tabeli na urządzeniu mobilnym */
@media only screen and (min-width: 992px) {

    #subscription-table table thead tr:not(:first-child) th:first-child,
    #subscription-table table thead tr:not(:first-child) th:nth-child(2) {
        background: none;
    }

    #subscription-table table tr th:first-child,
    #subscription-table table tr th:nth-child(2),
    #subscription-table table tr td:first-child {
        border: none;
    }

    #subscription-table table thead tr:first-child th:not(:first-child) {
        width: 110px;
    }

    #subscription-table table thead tr:nth-child(2) th:nth-child(2) {
        width: 100%;
    }

}

/* Style dla tabeli na urządzeniu mobilnym */
@media only screen and (max-width: 992px) {

    #subscription-table table.d-block.d-lg-none {
        display: table !important;
    }

    #subscription-table table tbody tr td svg {
        color: #6ea93e;
        width: 21px !important;
    }

    /* .form-content .content .content-container table thead tr:first-child {
        display: none;
    } */

    #subscription-table table thead tr:first-child {
        height: 40px;
        background-color: #fff;
        top: 70px;
    }

    #subscription-table table thead tr:last-child {
        top: 105px;
    }

    #subscription-table table {
        border-spacing: 0;
    }

    #subscription-table table tbody tr td {
        font-size: 12px !important;
    }

    #subscription-table table thead tr th .price-box h1 {
        font-size: 1rem;
        flex-flow: wrap;
    }

    #subscription-table table span:first-child {
        font-size: 10px;
    }

    #subscription-table table thead tr th.recommend img.ribbon {
        width: 45px;
        height: 45px;
        overflow: hidden;
        position: absolute;
        left: -11px;
        top: -9px;
    }

    #subscription-table table thead tr th.recommend {
        border-bottom-color: #dee2e6 !important;
    }

    #subscription-table table thead tr:nth-child(2) th .price-box h1 {
        padding-top: 0.4rem;
    }

    /*#subscription-table table thead tr:first-child th {*/
    /*    width: 25% !important;*/
    /*}*/

    /*#subscription-table table thead tr:nth-child(2) th {*/
    /*    width: 25% !important;*/
    /*}*/

    #subscription-table table thead tr:not(:first-child) th {
        border-color: #dee2e6;
        border-width: 1px;
        background-color: #fff !important;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        border-bottom-width: 1px;
    }

    #subscription-table table thead tr:not(:first-child) th:first-child {
        background: inherit;
    }

    #subscription-table table tr th:first-child {
        border: inherit;
    }

    #subscription-table table thead tr:not(:first-child) th {
        border-bottom: none;
    }

    #subscription-table table tbody tr:first-child td:first-child {
        border-top-left-radius: 0;
    }

    #subscription-table table tbody tr:nth-child(2n+1) td {
        border-top: 1px solid #dee2e6 !important;
    }

    #subscription-table table tbody tr:nth-child(1n+1) td {
        border-top: none;
        border-bottom: none;
    }

    #subscription-table table thead tr th .price-box span {
        font-size: 0.5rem;
    }

    #subscription-table table tfoot tr td {
        border-color: #dee2e6;
        border-width: 1px;
        background-color: #f5f5f5;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
    }

    #subscription-table table tr td {
        text-align: center;
    }

    #subscription-table table tr td:first-child {
        border: inherit;
        border-bottom-right-radius: 0;
        border-left: 1px solid #dee2e6;
    }

    #subscription-table table tbody tr:last-child td:first-child {
        border-radius: 0;
    }

}