.constructor .add-block {
    border: 3px dashed #3490dc;
    min-height: 500px;
}
.add-block {
    background: url(/vendor/whitewill/blocks_constructor/images/add-outline.svg) center 150px no-repeat;
    background-size: 90px;
    cursor: pointer;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1.5px dashed grey;
    position: relative;
}
.add-block:empty {
    background-position: center !important;
}
.ww-block-root {
    position: relative !important;
}
.ww-action-block {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: none !important;
    z-index: 500 !important;
}
.ww-block-root:not(.no-additional-btns):hover .ww-action-block {
    display: block !important;
}
.ww_block_types {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.ww_block_types input[type=radio] {
    display: none;
}
.ww_block_types img {
    max-width: 100%;
}
.ww_block_types > div {
    width: 48%;
    border: 1px solid gray;
    border-radius: 10px;
}
.ww_label_checkbox {
    padding: 10px;
}
.ww_block_types input[type=radio]:checked + label {
    border: 3px solid blue;
}
.ww_block_type{
    position: relative
}
.ww_block_type_fogging{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    pointer-events: none;
    border-radius: 9px;
    opacity: 0.5;
}
.ww_block_type input:checked + .ww_block_type_fogging{
    opacity: 0;
}

[data-file-name] {
    cursor: pointer;
    pointer-events: unset !important;
}
.ww-constructor-content .text-editor .ww-btn,
.ww-constructor-content .text-editor .ww-btn:hover {
    all: revert !important;
    cursor: pointer !important;
    color: #000;
}
.ww-constructor-content .text-editor .ww-btn svg {
    fill: #000;
}
.ww-constructor-content .text-editor {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}
.ww-constructor-content .editor-block,
.ww-constructor-content .editor-block:hover {
    display: inline-flex !important;
}

.ww-constructor-content .editor-block button svg {
    width: 15px !important;
    height: 15px !important;
}
.ww-constructor-content [data-name] {
    min-width: 100px;
    cursor: url("/vendor/whitewill/blocks_constructor/images/cursors/text.svg"), text;
}
button.ww-btn {
    padding: 0 7px;
    color: black;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}
button.ww-btn-primary {
    background: #1f6fb2;
    color: white;
}
button.ww-btn-danger {
    background: #a71d2a;
    color: white;
}
button.ww-btn-secondary {
    background: #6c757d;
    color: white;
}
button.ww-add-before-block__btn {
    background: darkgrey;
    color: white;
    border-radius: 100%;
    display: inline-block;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 20px;
    line-height: 26px;
}
button.ww-block-constructor__list-sort-btn, button.ww-block-constructor__list-add-btn {
    background: #efefef !important;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 10px !important;
    cursor: all-scroll;
    color: #555 !important;
}
button.ww-block-constructor__list-sort-btn:hover, button.ww-block-constructor__list-add-btn {
    background: #e5e5e5 !important;
    color: #555 !important;
}
button.ww-block-constructor__list-add-btn{
    position: relative;
    display: block;
    top: 0;
    left: 0;
}
button.ww-add-before-block__btn.ww-sort-btn {
    cursor: grab;
    left: 50px;
    font-size: 14px;
}
.ww-add-before-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: 1px darkgrey solid;
    display: none;
}
.ww-block-root:not(.no-additional-btns):hover .ww-add-before-block {
    display: block !important;
}
.ww-block-constructor__help {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
}

.ww-block-constructor__help-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.ww-block-constructor__list-item-section-title {
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: -moz-flex;
    display: -o-flex;
    align-items: center;
    -webkit-align-items: center;
}

.ww-block-constructor__list-item-section-content:not(.opened_section) {
    display: none;
}

.ww-block-constructor__list-item-section-content .ww_block_extra_type {
    padding: 0 10px;
}

.ww-block-constructor__switcher-label {
    display: inline-block;
    height: 28px;
    line-height: 28px;
    margin: 0 15px;
    position: relative;
    vertical-align: middle;
    font-size: 14px;
    user-select: none;
}
.ww-block-constructor__switcher-label .ww-block-constructor__switcher-switch {
    display: inline-block;
    width: 36px;
    height: 14px;
    border-radius: 20px;
    position: relative;
    top: 6px;
    vertical-align: top;
    background: #9f9f9f;
    transition: .2s;
}
.ww-block-constructor__switcher-label .ww-block-constructor__switcher-switch:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: -3px;
    left: -1px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    transition: .15s;
}
.ww-block-constructor__switcher-label input[type=checkbox] {
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.ww-block-constructor__switcher-label input[type=checkbox]:checked + .ww-block-constructor__switcher-switch {
    background: #9ABEF7;
}
.ww-block-constructor__switcher-label input[type=checkbox]:checked + .ww-block-constructor__switcher-switch:before {
    background: #1a73e8;
    transform:translateX(18px);
}

/* Hover */
.ww-block-constructor__switcher-label input[type="checkbox"]:not(:disabled) + .ww-block-constructor__switcher-switch {
    cursor: pointer;
    border-color: rgba(0, 0, 0, .3);
}

/* Active/Focus */
.ww-block-constructor__switcher-label input[type="checkbox"]:not(:disabled):active + .ww-block-constructor__switcher-switch:before,
.ww-block-constructor__switcher-label input[type="checkbox"]:not(:disabled):focus + .ww-block-constructor__switcher-switch:before {
    animation: checkbox-active-on 0.5s forwards linear;
}
@keyframes checkbox-active-on {
    0% {
        box-shadow: 0 0 0 0 rgba(212,212,212, 0);
    }
    99% {
        box-shadow: 0 0 0 10px rgba(212,212,212, 0.5);
    }
}

.ww-block-constructor__switcher-label input[type="checkbox"]:not(:disabled):checked:active + .ww-block-constructor__switcher-switch:before,
.ww-block-constructor__switcher-label input[type="checkbox"]:not(:disabled):checked:focus + .ww-block-constructor__switcher-switch:before {
    animation: checkbox-active-off 0.5s forwards linear;
}
@keyframes checkbox-active-off {
    0% {
        box-shadow: 0 0 0 0 rgba(154,190,247, 0);
    }
    99% {
        box-shadow: 0 0 0 10px rgba(154,190,247, 0.5);
    }
}

/* Disabled */
.ww-block-constructor__switcher-label input[type=checkbox]:disabled + .ww-block-constructor__switcher-switch {
    filter: grayscale(60%);
    border-color: rgba(0, 0, 0, .1);
}
.ww-block-constructor__switcher-label input[type=checkbox]:disabled + .ww-block-constructor__switcher-switch:before {
    background: #eee;
}

.ww-block-constructor__img-checkbox-wrapper {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: -moz-flex;
    display: -o-flex;
    align-items: center;
    -webkit-align-items: center;
}

.ww-block-constructor__img-checkbox-wrapper input[type=radio] {
    display: none;
}

.ww-block-constructor__img-checkbox-label {
    max-width: 150px;
    max-height: 150px;
    cursor: pointer;
    border: 2px solid #eeeeee;
    margin-right: 15px;
}

.ww-block-constructor__img-checkbox-label img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    -o-object-fit: cover;
}

.ww-block-constructor__img-checkbox-wrapper input[type=radio]:checked ~ .ww-block-constructor__img-checkbox-label,
.ww-block-constructor__img-checkbox-label:hover {
    border-color: #1a73e8;
}

.ww-block-constructor__list-types {
    padding: 0 10px;
    margin-bottom: 15px;
}

.ww-block-constructor__list-item-wrapper:not(.ww-show-action-edit-block) .ww-action-block .ww-edit-block,
.ww-block-constructor__list-item-wrapper:not(.ww-show-action-delete-block) .ww-action-block .ww-remove-block {
    display: none;
}

.ww-block-constructor__list-item-wrapper{
    overflow: hidden;
    border: 1px solid darkgray;
    border-radius: 10px;
    margin: 0 0 15px 0;
}

.ww-block-constructor__list-item-wrapper .text-editor{

    border-bottom: 1px solid darkgray;
    padding: 10px;
}

.ww-block-constructor__list-item-wrapper .block-http-link {
    margin-left: auto;
}

.block-translate {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    position: relative;
}

.block-translate__input {
    opacity: 0;
    position: absolute;
}

.block-translate__input:checked + .block-translate__label {
    background-color: #3490dc;
}

.block-translate__label {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 5px;
    align-content: center;
    justify-content: center;
    background-color: #e3342f;
}

.block-translate__image {
    filter: invert(1);
}
