.wp-block-cb-tabs {
    margin: 1rem 0
}

.wp-block-cb-tabs .tab-labels {
    margin: 0;
    position: relative;
    background: #eaf0fa;
    border-radius: 1.75rem;
    padding: 8px;
    overflow: hidden;
}

.wp-block-cb-tabs .tab-labels li {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0.5rem 1rem;
    cursor: pointer
}

.wp-block-cb-tabs .tab-labels li:before {
    content: none;
}

.wp-block-cb-tabs .tab-labels img {
    margin-right: 0.25rem;
    max-width: 1rem;
}

.wp-block-cb-tabs.horizontal .tab-labels {
    display: inline-flex;
    margin-bottom: 1rem;
}

.wp-block-cb-tabs.horizontal.center-label {
    text-align: center;
}

.wp-block-cb-tabs.horizontal.center-label .tab-content {
    text-align: left;
}

.wp-block-cb-tabs .tab-labels li.active {
    background-color: #fff;
    z-index: 2;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
    border-radius: 2rem;
}

.wp-block-cb-tabs .tab-content {
    border-radius: 1rem;
    background: #f5f5f5;
    position: relative;
    transition: all ease-in-out 0.3s;
}

.wp-block-cb-tabs .tab-panel {
    width: 100%;
    padding: 2rem;
    display: none
}

.wp-block-cb-tabs .tab-panel:first-of-type {
    display: block
}

.wp-block-cb-tabs.vertical {
    display: flex;
    align-items: self-start;
}

.wp-block-cb-tabs.vertical .tab-labels {
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: 1rem;
    z-index: 2;
}

.wp-block-cb-tabs.vertical .tab-content {
    flex-grow: 1;
}

.wp-block-cb-tabs.vertical .tab-labels li {
    width: 100%;
}

.wp-block-cb-tabs.vertical .tab-labels li.active {
    border-right: none;
}

.wp-block-cb-tabs.vertical.center-label {
    align-items: center;
}

@media only screen and (max-width: 768px) {

    .tab-labels,
    .wp-block-cb-tabs.horizontal .tab-labels,
    .wp-block-cb-tabs.vertical {
        display: block
    }

    .wp-block-cb-tabs.vertical .tab-labels,
    .wp-block-cb-tabs.vertical .tab-content {
        width: 100%;
    }

    .wp-block-cb-tabs.vertical .tab-labels {
        margin-bottom: 1rem;
    }
}