@font-face {
    font-family: "Isidora";
    src: url("../../../assets/fonts/isidora-light.woff")
        format("woff");

    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;

    background: #f7f3ee;

    font-family: "Isidora", Arial, sans-serif;

    color: #43205f;
}


/* =========================================================
   UPCOMING FILTERS
========================================================= */

.dev1-cbox-past-filters {
    width: calc(100% - 8px);

    margin: 0 4px;

    padding: 0;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.dev1-cbox-past-filters__container {
    width: 100%;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding: 8px 18px;

    border: 1px solid #d1c9c3;

    border-radius: 0;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   FILTER OPTIONS
========================================================= */

.dev1-cbox-past-filters__options {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    flex-wrap: nowrap;
}


/* =========================================================
   FILTER BUTTONS
========================================================= */

.dev1-cbox-past-filters__filter {
    appearance: none;

    border: 1px solid #e1d5e8;

    background: #ffffff;

    color: #5d5270;

    font-family: "Isidora", Arial, sans-serif;

    font-size: 16px;

    font-weight: 300;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    padding: 11px 18px;

    min-height: 44px;

    border-radius: 18px 0 18px 0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.dev1-cbox-past-filters__filter:hover {
    border-color: #71328f;

    color: #71328f;
}


.dev1-cbox-past-filters__filter:focus-visible {
    outline: 2px solid #71328f;

    outline-offset: 2px;
}


.dev1-cbox-past-filters__filter.is-active {
    background: #71328f;

    border-color: #71328f;

    color: #ffffff;

    border-radius: 18px 0 18px 0;
}


/* =========================================================
   VIEW CONTROLS
========================================================= */

.dev1-cbox-past-filters__view {
    display: flex;

    align-items: center;

    flex-shrink: 0;

    min-height: 48px;

    padding: 4px;

    border: 1px solid #e1d5e8;

    background: #ffffff;

    border-radius: 18px 0 18px 0;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.dev1-cbox-past-filters__view-button {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    background: transparent;

    color: #5d5270;

    cursor: pointer;

    border-radius: 14px 0 14px 0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.dev1-cbox-past-filters__view-button:hover {
    color: #71328f;
}


.dev1-cbox-past-filters__view-button.is-active {
    background: #eee4f4;

    color: #71328f;

    border-radius: 14px 0 14px 0;
}


.dev1-cbox-past-filters__view-button:focus-visible {
    outline: 2px solid #71328f;

    outline-offset: -2px;
}


/* =========================================================
   GRID ICON
========================================================= */

.dev1-cbox-past-filters__grid-icon {
    width: 16px;

    height: 16px;

    display: grid;

    grid-template-columns:
        repeat(3, 4px);

    grid-template-rows:
        repeat(3, 4px);

    gap: 2px;
}


.dev1-cbox-past-filters__grid-icon span {
    display: block;

    width: 4px;

    height: 4px;

    border-radius: 1px;

    background: currentColor;
}


/* =========================================================
   LIST ICON
========================================================= */

.dev1-cbox-past-filters__list-icon {
    width: 17px;

    height: 15px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


.dev1-cbox-past-filters__list-icon span {
    display: block;

    width: 17px;

    height: 2px;

    border-radius: 2px;

    background: currentColor;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .dev1-cbox-past-filters {
        width: calc(100% - 8px);

        margin: 0 4px;

        padding: 0;
    }


    .dev1-cbox-past-filters__container {
        min-height: 68px;

        padding:
            8px
            18px;

        gap: 12px;
    }


    .dev1-cbox-past-filters__options {
        gap: 7px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .dev1-cbox-past-filters__options::-webkit-scrollbar {
        display: none;
    }


    .dev1-cbox-past-filters__filter {
        font-size: 15px;

        min-height: 42px;

        padding:
            10px
            15px;

        border-radius: 16px 0 16px 0;
    }


    .dev1-cbox-past-filters__filter.is-active {
        border-radius: 16px 0 16px 0;
    }


    .dev1-cbox-past-filters__view {
        flex-shrink: 0;

        border-radius: 16px 0 16px 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .dev1-cbox-past-filters {
        padding: 0;
    }


    .dev1-cbox-past-filters__container {
        min-height: auto;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        padding:
            10px
            12px
            10px
            18px;

        border-radius: 0;
    }


    .dev1-cbox-past-filters__options {
        width: 100%;

        gap: 7px;

        overflow-x: auto;

        padding-bottom: 2px;

        scrollbar-width: none;
    }


    .dev1-cbox-past-filters__options::-webkit-scrollbar {
        display: none;
    }


    .dev1-cbox-past-filters__filter {
        flex-shrink: 0;

        min-height: 40px;

        padding:
            9px
            14px;

        font-size: 14px;

        border-radius: 15px 0 15px 0;
    }


    .dev1-cbox-past-filters__filter.is-active {
        border-radius: 15px 0 15px 0;
    }


    .dev1-cbox-past-filters__view {
        align-self: flex-end;

        min-height: 44px;

        border-radius: 15px 0 15px 0;
    }


    .dev1-cbox-past-filters__view-button {
        width: 38px;

        height: 38px;

        border-radius: 12px 0 12px 0;
    }


    .dev1-cbox-past-filters__view-button.is-active {
        border-radius: 12px 0 12px 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .dev1-cbox-past-filters__container {
        padding-left: 14px;

        border-radius: 0;
    }


    .dev1-cbox-past-filters__filter {
        font-size: 13px;

        padding:
            8px
            12px;

        border-radius: 14px 0 14px 0;
    }


    .dev1-cbox-past-filters__filter.is-active {
        border-radius: 14px 0 14px 0;
    }

}
