/*

    Add styles specific to this block IN THE EDITOR

*/
.category-tab-block {
    background-color: white;
    padding-bottom: 3rem;

    .category-tab__tabs {
        background-color: darkgray;
        position: relative;

        &::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(34,42,38, 30%) 0%, rgba(34,42,38, 30%) 100%);
        }
    }

    .automatic {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
        padding-top: 250px;

        @media(min-width: 60rem) {
            padding-top: 450px;
        }

        button {
            text-transform: uppercase;
            text-decoration: none;
            color: white;
        }
    }

    [role="tablist"] {
        min-width: 100%;
    }

    [role="tab"],
    [role="tab"]:focus,
    [role="tab"]:hover {
        display: inline-block;
        position: relative;
        z-index: 2;
        margin: 0;
        outline: none;
        font-weight: bold;
        text-align: center;
        cursor: pointer;
        padding: 0.5rem;
        min-width: 100px;
    }

    [role="tab"][aria-selected="true"] {
        margin-top: 0;
        background: var(--color-green);
        color: white;
        position: relative;

        &::before {
            content: "";
            position: absolute;
            width: 0px;
            height: 0px;
            bottom: -10px;
            border-style: solid;
            border-width: 10px 25px 0 25px;
            border-color: var(--color-green) transparent transparent transparent;
            transform: translateX(-50%);
            left: 50%;
        }
    }

    [role="tab"] span.focus {
        display: inline-block;
        margin: 2px;
        padding: 4px 6px;
    }

    [role="tab"]:hover span.focus,
    [role="tab"]:focus span.focus,
    [role="tab"]:active span.focus {
        padding: 2px 4px;
        border: 2px solid rgb(36 116 214);
        border-radius: 3px;
    }

    [role="tabpanel"] {
        padding: 1rem;
        background: hsl(220deg 43% 99%);
        min-height: 20em;
        width: 100%;
        overflow: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        @media (min-width: 60rem) {
            flex-direction: row;
            padding: 0;

        }

        .parent-category__description {
            width: 100%;

            @media (min-width: 60rem) {
                width: 40%;
                padding: 2rem;
                padding-left: 0;
            }
        }

    }

    [role="tabpanel"].is-hidden {
        display: none;
    }

    [role="tabpanel"] p {
        margin: 0;
    }

    .category-tab__content-description {
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 50px;
        margin-bottom: 0.25em;
        line-height: 1em;
    }

    .children-category__list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        width: 60%;

        a {
            border-left: 4px solid var(--color-green);
            padding-left: 1rem;
            color: black;
            text-decoration: none;
        }
    }

}