///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

.tabs {
    position: relative;
}

.tabs--fixed {
    .tabs-list {
        justify-content: flex-start;
    }
    .tabs-list-item {
        flex-basis: 165px;
        flex-grow: 0;
    }
}

.tabs-list {
    display: flex;
    justify-content: center;
    list-style: inside none;
    width: 100%;
}

.tabs-list-item {
    flex-basis: 0;
    flex-grow: 1;

    &:first-child {
        .tabs-list-item-header {
            border-left: 1px solid $color-golden;
        }
    }
}

.tabs-list-item.is-active {
    .tabs-list-item-header {
        background-color: #FFFFFF;
        border-bottom-color: #FFFFFF;
        color: #000000;
    }
    .tabs-list-item-content {
        border-bottom: 1px solid $color-golden;
        border-left: 1px solid $color-golden;
        border-right: 1px solid $color-golden;
        max-height: 9999px;
        padding: 80px;
    }
}

.tabs-list-item-header {
    background: #000000;
    border-bottom: 1px solid $color-golden;
    border-right: 1px solid $color-golden;
    border-top: 1px solid $color-golden;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
    width: 100%;
}

.tabs-list-item-header:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.tabs-list-item-content {
    background: #FFFFFF;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    left: 0;
    top: 80px;
    width: 100%;
}

///////////////////////////////////////////////////////////////
// Device: Tablet
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {
    .tabs {
        height: auto;
    }
    .tabs-list {
        display: block;
    }
    .tabs-list-item {
        &:first-child {
            .tabs-list-item-header {
                border-top: 1px solid $color-golden;
            }
        }
    }
    .tabs-list-item.is-active {
        .tabs-list-item-header {
            border-bottom-color: #DDDDDD;
        }
        .tabs-list-item-content {
            padding: 10px;
        }
    }
    .tabs-list-item-header {
        border-top: none;
        border-left: 1px solid $color-golden;
    }
    .tabs-list-item-content {
        position: static;
    }
}