
ul.contenttabs, .contenttabs ul {
    -moz-display: flex;
    -webkit-display: flex;
    -ms-display: flex;
    display: flex;
    -moz-align-items: stretch;
    -webkit-align-items: stretch;
    -ms-align-items: stretch;
    align-items: stretch;
    -moz-flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -moz-justify-content: flex-start;
    -webkit-justify-content: flex-start;
    -ms-justify-content: flex-start;
    justify-content: flex-start;
    -moz-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    margin: 1em 1em 0 0;
    padding: 0;
    gap: 5px;
}

.is-loading .contenttabs {
}

.contenttabs {
    margin-bottom: -1px;
    z-index: 2;
    position: relative;
}

.contenttabs .wrapper {
    background-color: transparent;
    overflow-y: hidden;
    overflow-x: auto;
    z-index: 2;
    position: relative;
}

.contenttabs li {
    list-style: none;
    margin: 0;
    padding: 10px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 10px 10px 0 0;
    line-height: 1.2em;
    cursor: pointer;
    text-align: center;
    max-width: 220px;

    -moz-display: inline-flex;
    -webkit-display: inline-flex;
    -ms-display: inline-flex;
    display: inline-flex;
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;

    font-weight: normal;
}

.contenttabs li.active {
    background-color: #fff;
    border-color: #ccc;
    color: #333;
    font-weight: normal;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

.contenttabs .contenttabs-container {
    position: relative;
}

.contenttabs ~ .contenttabsdata {
    display: none !important;
    padding: 2em;
    border: 1px solid #ccc;
    border-radius: 0 10px 10px 10px;
    margin-bottom: 2em;
    /*position: relative; - вызывает проблемы*/
    z-index: 1;
    max-width: 100%;
    /**
    когда не visible не работает sticky внутри контейнера
     */
    overflow-x: visible;
}

.contenttabs ~ .contenttabsdata.no-overflow {
    overflow-x: auto;
}

.contenttabsdata .contenttabsdata {
    margin-bottom: 0;
}

.contenttabs.stand-alone:not(.show-stand-alone) {
    display: none;
}

.contenttabsdata.stand-alone:not(.show-stand-alone) {
    border: none;
    padding: 0;
    /*max-width: 1000px;*/
    margin: auto;
}

.contenttabs ~ .contenttabsdata.active {
    display: block !important;
}

.activeeditor ul.contenttabs ~ .contenttabsdata {
    display: block !important;
}

.contenttabs.centered ul {
    text-align: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

.contenttabs.wrap ul {
    white-space: normal;
    -moz-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.contenttabs.style-alt,
.contenttabs.style-alt ul {
    color: #fff;
    background-color: rgb(0, 184, 241);
    margin: 0;
}

.contenttabs.style-alt li {
    color: #fff;
    border-radius: 0;
    border: none;
    background-color: transparent;
    min-height: 4em;
    white-space: normal;
    max-width: 200px;
    position: relative;
    padding: 0 1em;
    letter-spacing: 0em;
    margin: 0;

    -moz-display: inline-flex;
    -webkit-display: inline-flex;
    -ms-display: inline-flex;
    display: inline-flex;
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

.contenttabs.style-alt li.active {
    color: inherit;
    font-weight: inherit;
    background-color: #005ba3;
}

.contenttabs.style-alt.alt1 li.active {
    background-color: #b1b1b1;
}

@media screen and (min-width: 901px) {
    .contenttabs.style-alt ul {
        padding-bottom: 10px; /*для стрелочки*/
    }
}

/*стрелочка*/
.contenttabs.style-alt li.active:before {
    content: '';
    position: absolute;
    bottom: -1em;
    /*margin-left: calc(50% - 1em - 10px); т.к. flex это уже не надо*/
    border: 10px solid transparent;
    border-top: 10px solid #005ba3;
}

.contenttabs.style-alt.alt1 li.active:before {
    border-top-color: #b1b1b1;
}

@media screen and (max-width: 900px) {
    ul.contenttabs.style-alt, .contenttabs.style-alt ul {
        padding: 1em 0;
        -moz-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.5em;
    }

    .contenttabs.style-alt li {
        box-sizing: border-box;
        min-height: auto;
        padding: 0.5em;
        line-height: 1em;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .contenttabs.style-alt li.active:before {
        border: none;
    }

    .contenttabs.style-alt li span {
        background-color: transparent;
    }

    .contenttabs.style-alt li.active span {
        border-bottom: none;
    }

}

@media screen and (max-width: 700px) {
    .contenttabs.style-alt ul {
        text-align: center;
        -moz-justify-content: center;
        -webkit-justify-content: center;
        -ms-justify-content: center;
        justify-content: center;
    }
}

@media screen and (max-width: 500px) {
    .contenttabs.style-alt li {
        max-width: none;
    }
}

.contenttabs.simple li {
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
}

.contenttabs.simple li span {
    border-bottom: 1px dashed;
}

.contenttabs.simple li.active {
    border-bottom: none;
    background-color: #ADD2F2;
    /*color: #0d95e8;*/
}

.contenttabs.simple li.active span {
    border-bottom: none;
}


.contenttabs.style-alt ~ .contenttabsdata {
    padding: 2em 0 2em 0;
}

.contenttabs.simple ~ .contenttabsdata {
    border: none;
    padding: 1em 0;
    margin: 0;
    border-radius: 0;
}

.contenttabs.style-alt ~ .contenttabsdata,
.contenttabs.style-alt1 ~ .contenttabsdata {
    border: none;
    border-radius: 0;
}

.contenttabsdata .texttoedit {
    margin: 0;
    padding: 0;
}

/*
когда contenttabsdata имеет overflow и кнопку редактирования не видно
Поэтому смещаем кнопку внутрь контейнера, и отодвигаем контейнер при редактировании
*/
.contenttabsdata.no-overflow .editable > .texteditbutton {
    margin-top: 0 !important;
    right: 0;
}

.contenttabsdata .editable,
.contenttabsdata .texttoedit {
    min-height: 25px;
    box-sizing: border-box;
}

.contenttabsdata > :first-child .editable.activeeditor > .texttoedit {
    margin-top: 25px;
}

.contenttabsdata .editable.activeeditor > .texteditbutton {
    margin-top: -25px !important;
}

.contenttabsdata > section:first-of-type {
    margin: 0;
}