.forum-form-wrapper {
    display: flex;
    background-color: #eeece9;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

.forum-form-buttons {
    display: flex;
    gap: 0.75rem;
}

.forum-button-item {
    display: flex;

    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    cursor: pointer;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 33%, rgba(238, 236, 233, 1) 66%);

}

.textarea-msg {
    margin-bottom: 0 !important;
    height: 100%;
    min-height: 12rem;
}

.forum-button-item svg {
    width: 1.8rem;
    height: 1.8rem;
}

.forum-button-item svg.dark-grey {
    color: #5a5a5c;
}

.forum-button-item svg.bigger {
    width: 2.4rem;
    height: 2.4rem;
}

.forum-form-textarea {
    width: 100%;

}

.forum-form-textarea textarea {
    width: 100%;
    height: 130px;
    outline: none;
    resize: vertical;
}

.forum-form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.forum-form-checkboxes:empty, .forum-form-image-wrapper:empty, .files-list:empty, .files:empty {
    display: none  !important;
}


.forum-form-checkbox-item label > input + span::before {
    order: -2;
    height: 18px;
    width: 18px;
    flex-shrink: 0;
    border-width: 1px;
    content: "";
    border-color: rgb(212 212 212 / 1);
}

.forum-form-checkbox-item label > input[type="checkbox"]:checked + span::after {
    content: "";
    background-color: rgb(137 191 85 / 1);
}

.forum-form-checkbox-item label > input + span::after {
    order: -1;
    margin-left: -15px;
    margin-right: 16px;
    height: 12px;
    width: 12px;
    flex-shrink: 0;
    border-width: 1px;
    content: "";
    border-color: transparent;
}


.forum-form-checkbox-item label > input[type="checkbox"] {
    display: none;
    height: 0;
    width: 0;
    cursor: pointer;
}

.forum-form-checkbox-item label > input + span {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 1.4rem;
    color: #666;
}

.forum-form-buttons {
    display: flex;
    gap: 1rem;
}

.forum-form-button-item {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

/*кнопка отправить*/
.svg-form-button-fly {
    width: 20px;
    height: 20px;
    color: #fff;
    position: relative;
    top: 0;
    left: -5px;
}

.forum-form-button-wrapper {
    display: flex;
    background-color: #87bd53;
    height: 32px;
    padding: 6px 12px 2px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
}

.forum-form-button-wrapper-small{
    display: flex;
    background-color: #87bd53;
    height: 26px;
    padding: 4px 12px 0px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
}

.forum-form-user-block {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.forum-form-link {
    display: flex;
    flex-direction: column;
}

.forum-form-link-input {
    display: flex;
    width: 100%;
}

.forum-form-link-input input {
    width: 100%;
}

.forum-form-link-close, .forum-form-smile-close {
    display: flex;
    width: 100%;
    flex-direction: row-reverse
}

.forum-form-link-close svg, .forum-form-smile-close svg {
    width: 2rem;
    height: 2rem;
    color: #777777;
    cursor: pointer;
}

.visibleNone {
    display: none !important;
}

.forum-form-smile-wrapper {
    display: flex;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center
}

.forum-form-smile-wrapper div.sm-gif {
    cursor: pointer;
}

span.sm-gif {
    display: inline-block;
}
.mirror {
    transform: scaleX(-1);
}


/* multiuploader */

.files-list {
    width: 100%;
}

.files-list .files {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap:1rem;
}
/*бейджи формы*/
.forum-info-badge-wrapper {
    width: 100% !important;
    margin: auto;
    display: flex;
    justify-items: center;
    justify-content: center;
}
.forum-info-badge {
    padding: 0.9rem 1.4rem;
    border-radius: 5px;
    font-size: 1.4rem;
    font-weight: 500;
    width: fit-content;
}

.forum-form-response {
    padding: 0.9rem 1.4rem;
    border-radius: 5px;
    font-size: 1.4rem;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 0;
}

.forum-form-response:empty {
    display: none !important;
}

.forum-info-badge.alert {
    background: #f7d6d3;
    color: #d93025;
}

.forum-form-response.alert {
    background: #f7d6d3;
    color: #d93025;
}

.forum-info-badge.info {
    background: #ebf3db;
    color: #479100;
}
.forum-info-badge.info a {
    color: #479100;
    text-decoration: underline;
    font-weight: 700;
}
.forum-info-badge.info a:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    .forum-form-wrapper, .forum-info-badge {
        margin-left: -15px;
        margin-right: -15px;
    }
    .forum-info-badge {
        border-radius: 0px;
    }
}



.files-list .files .uploaded-entry {
    display: flex;
    width: calc((100% - 3rem) /4);
    flex-direction: column;
    align-items: stretch;
    border:1px solid #ccc;
}



@media (max-width: 768px) {
    .files-list .files .uploaded-entry {
        width: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 425px) {
    .files-list .files .uploaded-entry {
        width: calc((100% - 1rem )/ 2);
        flex-direction: column;
    }
}

.files-list .files .uploaded-entry .uploaded-entry-preview {
    display: flex;
    aspect-ratio: 1 / 1;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.files-list .files .uploaded-entry.active .uploaded-entry-preview {
    --tw-bg-opacity: 1;
    background-color: rgb(235 243 219 / var(--tw-bg-opacity));
}

.files-list .files .uploaded-entry .uploaded-entry-preview .progress {
    height: 100%;
    width: 100%;
    border-width: 1px;
}

.files-list .files .uploaded-entry .uploaded-entry-preview .progress .progress-bar {
    display: flex;
    max-height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(235 243 219 / var(--tw-bg-opacity));
}

.files-list .files .uploaded-entry .uploaded-entry-preview .img-block {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.files-list .files .uploaded-entry .uploaded-entry-preview img {
    margin: auto;
    max-height: 100%;
}
.uploaded-entry-buttons  button, .uploaded-entry-buttons  button:focus, .uploaded-entry-buttons  button:active , .uploaded-entry-buttons  button:hover {
    background-color: transparent;
    outline: none !important;
    outline-offset: unset !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.files-list .files .uploaded-entry .uploaded-entry-buttons {
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    border-width: 1px;
}

.files-list .files .uploaded-entry .uploaded-entry-preview .progress .progress-bar {
    display: flex;
    max-height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(235 243 219 / var(--tw-bg-opacity));
}

blockquote {
    font-size: 1.4rem;
    line-height: 127%;
    border-left: 4px solid #c5e2a8;
    color: #333;
    padding: 0.75rem;
    background: #fff;
    margin: 1rem 0 0.5rem 0;
    position: relative;
}
.comment-text blockquote  > p {
    padding-right: 1.8rem !important;
}
/*для ссылок в цитатах*/
.b-linked {
    background: #fff url('https://cdn.u-mama.ru/assets/images/svg/quote.svg') no-repeat top right;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.b-linked:hover {
    background: #fff url('https://cdn.u-mama.ru/assets/images/svg/quoteg.svg') no-repeat top right;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.comment-text h1, .comment-text h2, .comment-text h3   {
    color: #2B8D02;
    border-top: none !important;
    font-weight: 600;
    padding-bottom: 1rem !important;;
    padding-top: 0.5rem !important;
}
.comment-text h1 {
    font-size: 1.8rem;
}

.comment-text h2 {
    font-size: 1.7rem;
}

.comment-text h3 {
    font-size: 1.6rem;
}
.comment-text h4, .comment-text h5,  .comment-text h6 {
    font-size: 1.5rem;
}





.comment-text p:not(:first-child), .textarea-preview p:not(:first-child)  {
    padding: 1rem 0 0 !important;
}

.comment-text ol, .textarea-preview ol  {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 2rem;

}
.comment-text ul, .textarea-preview ul {
    display: block;
    list-style-type: none;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;

}
.textarea-preview ul {
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}

.comment-text ol li, .textarea-preview ol li {
    display: list-item;
    line-height: 1.9rem;
    list-style-type: decimal;
}

.comment-text ul li, .textarea-preview ul li {
    display: list-item;
    line-height: 1.9rem;
    list-style-type: none;
    padding-left: 1.5rem;
    background: url(/assets/images/png/ul-mh.png) no-repeat 0 7px;
}
.textarea-preview ul li {
    background: url(/assets/images/png/ul-mh.png) no-repeat 0 12px;

}
pre code {
    border: none;
}

code {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem !important;
    border: 1px solid #ccc;
}
.files-list .files .uploaded-entry .uploaded-entry-buttons svg {
    height: 2rem;
    width: 2rem;
}

/*блок preview*/
.textarea-preview {
    display: none;
    height: 100%;
    min-height: 12rem;
    background: #EBF3DB;
    padding: 1rem;
    font-size: 1.4rem;

}
.textarea-preview p {
    padding-top: 0.5rem
}
.textarea-preview img {
    width: 100%;
}

@media (min-width: 640px) {
    .files-list .files .uploaded-entry .uploaded-entry-buttons svg {
        height: 2rem;
        width: 2rem;
    }
}

/*адаптивка*/
@media screen and (min-width: 500px) {
    .forum-form-image-item {
        width: calc((100% - 2rem) / 3 );
    }
}

@media screen and (min-width: 768px) {
    .forum-form-image-item {
        width: calc((100% - 3rem) / 4 );
    }

}
@media screen and (max-width: 768px) {
    .ctrl-enter {
        display: none;
    }

}