/**
 * File: pricing-table-style.css
 * Created At: 16.07.25 | 16:06
 * Author: niklasmeyer
 * Description: [Kurze Beschreibung der Datei]
 * Version: [Version]
 * Last Updated: [Datum]
 * Project: sdbcheck.DEV
 */

.pricing-table-wrapper {
    overflow-x: auto;

    tr > :first-child {
        position: sticky;
        left: 0;
    }

    table tbody > tr:nth-child(odd) > td, table tbody > tr:nth-child(odd) > th {
        background-color: var(--e-global-color-a000823);
    }

    table tbody > tr:nth-child(even) > td, table tbody > tr:nth-child(even) > th, table thead > tr:first-child {
        background-color: white;
    }
}


#pricing-table {
    th {
        border: none;
        padding: 0;
        color: var(--e-global-color-text);

    }

    thead {

        th:first-child {
            background: white;
        }

        th:not(:first-child) {

            background-color: white;

            min-width: 240px;

            .wrapper {

                display: flex;
                flex-direction: column;
                justify-content: space-between;
                height: 486px;
                width: 100%;
                padding: 16px;

                @media (max-width: 768px) {
                    height: 376px;
                    padding: 24px;
                }

                .title-description {

                    .description {
                        @media (max-width: 768px) {
                            display: none;
                        }
                    }
                }

                .price-container {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    align-items: center;
                    gap: 16px;
                    margin-bottom: 8px;
                    height: 142px;

                    a {
                        @media (max-width: 768px) {
                            font-size: 0.875rem;
                        }
                    }


                }

                .mobile-number {
                    display: none;
                    align-items: center;
                    justify-content: center;

                    @media (max-width: 768px) {
                        display: flex;
                    }

                    > div {
                        width: 56px;
                        height: 56px;
                        background-image: linear-gradient(90deg, var(--e-global-color-ced2702) 0%, var(--e-global-color-e50ece9) 100%);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 50%;
                        color: white;
                        font-size: 20px;
                    }
                }
            }
        }

        .promotion {

            .wrapper {

                --_border-width: 2px;
                border-top: var(--_border-width) solid var(--e-global-color-primary);
                border-left: var(--_border-width) solid var(--e-global-color-primary);
                border-right: var(--_border-width) solid var(--e-global-color-primary);
                border-radius: 20px 20px 0 0;
            }

            a {
                background-image: linear-gradient(90deg, var(--e-global-color-ced2702) 0%, var(--e-global-color-e50ece9) 100%);
            }
        }

        .title {
            font-family: var(--e-global-typography-sk_type_6-font-family), Sans-serif;
            font-size: var(--e-global-typography-sk_type_6-font-size);
            font-weight: var(--e-global-typography-sk_type_6-font-weight);
            line-height: var(--e-global-typography-sk_type_6-line-height);

            color: var(--e-global-color-text);

            @media (max-width: 768px) {
                font-size: 1.25rem;
            }
        }

        .description {
            font-size: 0.875rem;
            line-height: var(--e-global-typography-text-line-height);
            color: var(--e-global-color-text);
            font-weight: 400;
        }

        .price {
            display: flex;
            flex-direction: column;
            color: var(--e-global-color-text);
            min-height: 80px;


            font-family: var(--e-global-typography-sk_type_4-font-family), Sans-serif;
            font-size: var(--e-global-typography-sk_type_4-font-size);
            font-weight: var(--e-global-typography-sk_type_4-font-weight);
            font-style: var(--e-global-typography-sk_type_4-font-style);
            text-decoration: var(--e-global-typography-sk_type_4-text-decoration);
            line-height: var(--e-global-typography-sk_type_4-line-height);

            span {
                font-family: var(--e-global-typography-sk_type_4-font-family), Sans-serif;
                font-size: 0.7rem;
                font-weight: 300;
                line-height: 1.1rem;
            }

            @media (max-width: 768px) {
                font-size: 1rem;
            }
        }


        a {
            background-color: var(--e-global-color-accent);
            font-family: var(--e-global-typography-sk_type_14-font-family), Sans-serif;
            font-size: var(--e-global-typography-sk_type_14-font-size);
            font-weight: var(--e-global-typography-sk_type_14-font-weight);
            line-height: var(--e-global-typography-sk_type_14-line-height);
            border-style: none;
            border-radius: 100px 100px 100px 100px;
            padding: 10px 18px 09px 18px;
            color: white;
            text-transform: uppercase;
        }


    }

    tbody {
        tr {
            th {
                text-align: left;
                min-width: 160px;

                @media (max-width: 768px) {
                    min-width: 160px;
                }

                .wrapper {
                    padding: 24px;

                    @media (max-width: 768px) {
                        padding: 12px;
                        font-size: 0.75rem;
                    }
                }
            }

            td {
                border: none;
                padding: 0 !important;
                min-height: 92px;

                @media (max-width: 768px) {
                    padding: 16px;
                    min-height: 104px;
                }

                .pricing-icon {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    padding: 24px;
                    gap: 4px;
                    min-height: 112px;
                    text-align: center;

                    i {
                        font-size: 24px;

                        &.fa-check {
                            color: var(--e-global-color-a7eeb0e);
                        }

                        &.fa-times {
                            color: var(--e-global-color-0bbae28);
                        }

                        @media (max-width: 768px) {
                            font-size: 18px;
                        }
                    }

                    .description {
                        color: var(--e-global-color-text);

                        @media (max-width: 768px) {
                            font-size: 0.75rem;
                        }
                    }

                    @media (max-width: 768px) {
                        padding: 16px;
                        min-height: 80px;
                    }
                }
            }

            :nth-child(4) {
                div {
                    border-left-style: solid;
                    border-right-style: solid;
                    border-color: var(--e-global-color-primary);
                    border-width: 2px;

                }
            }

            &:last-child {
                :nth-child(4) {
                    div {
                        border-left-style: solid;
                        border-right-style: solid;
                        border-bottom-style: solid;
                        border-color: var(--e-global-color-primary);
                        border-width: 2px;
                        border-radius: 0 0 20px 20px;

                    }
                }
            }
        }
    }
}