#reviews_add_form .redactor_box,#reviews_add_form .tox-tinymce{margin:0 0 1rem 0}.review-answer{background-color:#fafafa;margin-left:2rem;padding:0.5rem;border-left:0.3rem solid #aaa}review-answer-html p:last-child{margin-bottom:0}.reviews-form{border-top:1px solid #ccc}#reviews_list .bad{transition:opacity 0.15s linear}#reviews_list .bad:hover{opacity:1}#reviews_list .bad6{opacity:0.1}#reviews_list .bad5{opacity:0.2}#reviews_list .bad4{opacity:0.35}#reviews_list .bad3{opacity:0.5}#reviews_list .bad2{opacity:0.65}#reviews_list .bad1{opacity:0.8}.review-html>*:last-child{margin-bottom:0}.review-html.is_long_text{height:150px;overflow-y:hidden}.review-html.is_deleted,.reviews-rating.is_deleted{opacity:0.3}.review-html.is_deleted:hover,.reviews-rating.is_deleted:hover{opacity:1}.review-controls .actions-item{display:inline-block}.is-hide-attaches{opacity:0.3}.is-hide-attaches:hover{opacity:1}.hidden-attaches{display:block;color:red}#f_status label:first-child{font-weight:bold}.ireviews-status img{height:2rem;width:auto}.review-status .custom-radio{padding:7px;margin-bottom:7px;border:1px solid #eaeaea;border-radius:5px}.review-status .custom-radio:has(#radio-status){color:#842029;border:1px solid #f5c2c7;background-color:#f8d7da}.review-status .custom-radio.checked{background-color:#eee}.review-status .custom-radio.checked:has(#radio-status){color:#fff;border:1px solid #dc3545;background-color:#dc3545}.review-status .custom-radio .custom-control-label::before,.review-status .custom-radio .custom-control-input:checked~.custom-control-label::before,.review-status .custom-radio .custom-control-label::after,.review-status .custom-radio .custom-control-input:checked~.custom-control-label::after{display:none}.review-phone{background-color:#eff}.review-email{background-color:#efe}.gold{color:gold}

/* Review moderation history modal. */
#icms_modal .modal-dialog:has(.history-review) {
    width: calc(100% - 32px);
    max-width: 720px;
    margin: 32px auto;
}

#icms_modal .modal-dialog:has(.history-review) .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(32, 71, 207, .16), 0 8px 24px rgba(31, 31, 31, .12);
}

#icms_modal .modal-dialog:has(.history-review) .modal-header {
    min-height: 64px;
    padding: 20px 24px 0;
    border: 0;
    background: #fff;
}

#icms_modal .modal-dialog:has(.history-review) .modal-header::before {
    content: "История проверки отзыва";
    color: #333336;
    font-family: Manrope, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

#icms_modal .modal-dialog:has(.history-review) .modal-close {
    width: 32px;
    height: 32px;
    margin: 0 0 0 auto !important;
    padding: 8px !important;
    color: #8f8f8f !important;
    background: #f5f6fa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

#icms_modal .modal-dialog:has(.history-review) .modal-close:hover,
#icms_modal .modal-dialog:has(.history-review) .modal-close:focus-visible {
    color: #2047cf !important;
    background: #edf2ff;
    transform: rotate(90deg);
}

#icms_modal .modal-dialog:has(.history-review) .modal-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#icms_modal .modal-dialog:has(.history-review) .modal-body {
    padding: 8px 32px 32px;
}

#icms_modal .history-review {
    position: relative;
    margin: 0 !important;
    padding: 16px 16px 16px 52px;
    border-radius: 16px;
    background: #fafafc;
}

#icms_modal .history-review + .history-review {
    margin-top: 12px !important;
}

#icms_modal .history-review .media-body > div {
    min-height: 24px;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: wrap;
}

#icms_modal .history-review .date_pub,
#icms_modal .history-review .reason {
    margin: 0 !important;
    color: #333336;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    line-height: 20px;
}

#icms_modal .history-review .date_pub {
    color: #68686c;
    font-weight: 500;
}

#icms_modal .history-review .reason {
    font-weight: 600;
}

#icms_modal .history-review .date_pub > svg {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px!important;
    height: 28px!important;
    padding: 6px;
    color: #2047cf;
    background: #edf2ff;
    border-radius: 50%;
}

@media (max-width: 575.98px) {
    #icms_modal .modal-dialog:has(.history-review) {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    #icms_modal .modal-dialog:has(.history-review) .modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #icms_modal .modal-dialog:has(.history-review) .modal-header {
        min-height: 58px;
        padding: 16px 16px 0 20px;
    }

    #icms_modal .modal-dialog:has(.history-review) .modal-header::before {
        font-size: 17px;
        line-height: 22px;
    }

    #icms_modal .modal-dialog:has(.history-review) .modal-body {
        overflow-y: auto;
        padding: 8px 16px 20px;
    }

    #icms_modal .history-review {
        padding: 14px 14px 14px 48px;
    }

    #icms_modal .history-review .media-body > div {
        align-items: flex-start !important;
        gap: 2px 6px;
    }

    #icms_modal .history-review .date_pub,
    #icms_modal .history-review .reason {
        font-size: 14px;
        line-height: 19px;
    }

    #icms_modal .history-review .date_pub > svg {
        top: 12px;
        left: 12px;
    }
}

/* Embed code modal. */
#icms_modal .modal-dialog:has(.ireviews-embed-code) {
    width: calc(100% - 32px);
    max-width: 780px;
    margin: 32px auto;
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(32, 71, 207, .18), 0 8px 24px rgba(31, 31, 31, .12);
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-header {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    min-height: 0;
    padding: 0;
    border: 0;
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-close {
    width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #68686c !important;
    border-radius: 50%;
    background: #f5f6fa;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-close:hover,
#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-close:focus-visible {
    color: #2047cf !important;
    background: #eaf0ff;
    transform: rotate(90deg);
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-body {
    padding: 0;
}

.ireviews-embed-code {
    color: #333336;
    font-family: Manrope, sans-serif;
}

.ireviews-embed-code__heading {
    padding: 28px 72px 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #eceef4;
    background: linear-gradient(135deg, #f7f9ff 0%, #fff 72%);
}

.ireviews-embed-code__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: #2047cf;
    box-shadow: 0 8px 20px rgba(32, 71, 207, .22);
}

.ireviews-embed-code__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ireviews-embed-code h3 {
    margin: 0 0 6px;
    color: #252527;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.ireviews-embed-code__heading p {
    max-width: 610px;
    margin: 0;
    color: #68686c;
    font-size: 14px;
    line-height: 1.55;
}

.ireviews-embed-code__section {
    padding: 22px 28px 0;
}

.ireviews-embed-code__label,
.ireviews-embed-code__preview-label {
    display: block;
    margin-bottom: 10px;
    color: #333336;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.ireviews-embed-code__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ireviews-embed-code__options .btn-group {
    padding: 4px;
    display: flex;
    gap: 3px;
    border-radius: 12px;
    background: #f2f4f8;
}

.ireviews-embed-code__options .btn {
    min-height: 36px;
    padding: 8px 14px;
    color: #5e6068;
    border: 0;
    border-radius: 9px !important;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    box-shadow: none !important;
}

.ireviews-embed-code__options .btn:hover {
    color: #2047cf;
}

.ireviews-embed-code__options .btn.active {
    color: #2047cf;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 31, 31, .08) !important;
}

.ireviews-embed-code__options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ireviews-embed-code__preview {
    position: relative;
    min-height: 190px;
    margin: 20px 28px 0;
    padding: 44px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7eaf2;
    border-radius: 16px;
    background-color: #f8f9fc;
    background-image: linear-gradient(45deg, #eef0f5 25%, transparent 25%), linear-gradient(-45deg, #eef0f5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef0f5 75%), linear-gradient(-45deg, transparent 75%, #eef0f5 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.ireviews-embed-code__preview-label {
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
    color: #767880;
}

.ireviews-embed-code__preview img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(31, 31, 31, .1);
}

.ireviews-embed-code__preview .counter {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    margin: 0;
    color: #68686c;
    font-size: 12px;
}

.ireviews-embed-code__preview .counter input {
    width: 58px;
    height: 30px;
    margin-left: 6px;
    padding: 4px 8px;
    border: 1px solid #d9dce5;
    border-radius: 8px;
    background: #fff;
}

.ireviews-embed-code__code {
    padding-bottom: 28px;
}

.ireviews-embed-code__code textarea {
    min-height: 88px;
    padding: 14px 16px;
    resize: vertical;
    color: #41434a;
    border: 1px solid #dfe2ea;
    border-radius: 12px;
    background: #f8f9fc;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.55;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ireviews-embed-code__code textarea:focus {
    border-color: #2047cf;
    box-shadow: 0 0 0 3px rgba(32, 71, 207, .1);
}

.ireviews-embed-code .copy-code {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: #2047cf;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(32, 71, 207, .2);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ireviews-embed-code .copy-code:hover,
.ireviews-embed-code .copy-code:focus-visible {
    color: #fff;
    background: #183caf;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(32, 71, 207, .26);
}

.ireviews-embed-code .copy-code.is-copied {
    background: #18864b;
    box-shadow: 0 8px 20px rgba(24, 134, 75, .2);
}

.ireviews-embed-code .copy-code svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 575.98px) {
    #icms_modal .modal-dialog:has(.ireviews-embed-code) {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    #icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-content {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        border-radius: 20px;
    }

    #icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-header {
        position: sticky;
        top: 0;
        right: auto;
        height: 0;
    }

    #icms_modal .modal-dialog:has(.ireviews-embed-code) .modal-close {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .ireviews-embed-code__heading {
        padding: 20px 58px 18px 18px;
        gap: 12px;
    }

    .ireviews-embed-code__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .ireviews-embed-code h3 {
        font-size: 18px;
    }

    .ireviews-embed-code__heading p {
        font-size: 13px;
        line-height: 1.45;
    }

    .ireviews-embed-code__section {
        padding: 18px 18px 0;
    }

    .ireviews-embed-code__options {
        display: grid;
    }

    .ireviews-embed-code__options .btn-group {
        width: 100%;
    }

    .ireviews-embed-code__options .btn {
        min-width: 0;
        flex: 1 1 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .ireviews-embed-code__preview {
        min-height: 170px;
        margin: 16px 18px 0;
        padding: 48px 12px 16px;
    }

    .ireviews-embed-code__preview .counter {
        top: 8px;
        right: 10px;
    }

    .ireviews-embed-code__code {
        padding-bottom: 18px;
    }

    .ireviews-embed-code__code textarea {
        min-height: 104px;
    }
}
