#id_new_comment_form {
    display: flex;
    flex-wrap: wrap;
}
#id_new_comment_form .title {
    text-align: center;
    font-size: 16px;
    text-transform: capitalize;
    color: #000;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    width: 100%;
}
.fancybox-overlay .fancybox-skin {
    background-color: #fff;
    border-radius: 12px;
    padding: 0 !important;
}
.fancybox-inner {
    border-radius: 12px;
    overflow: hidden !important;
}
.tvproduct-review-box {
    text-align: left;
}
#new_comment_form div.star {
    display: inline-block;
    float: left;
    width: 14px;
    height: 14px;
    margin: 0 2px;
    cursor: pointer;
}
.tvproduct-review-box .tvproduct-name {
    margin-bottom: 15px;
}
.tvproduct-review-box .tvproduct-name .product-title a h6 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0;
}
#criterions_list {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
#criterions_list label {
    margin: 0;
    color: #000000;
}
#criterions_list .star_content {
    margin: 0 20px 0 20px;
    display: flex;
    align-items: center;
    position: relative;
}
#criterions_list li {
    display: flex;
    align-items: center;
}
.tvcustom-review-box {
    text-align: left;
    margin-bottom: 15px;
}
#criterions_list li .cancel {
    order: 2;
    position: absolute;
    right: -50px;
    background: none;
}
#criterions_list li .cancel a:after {
    content: 'clear';
    text-transform: capitalize;
    font-size: 11px;
    letter-spacing: .5px;
}
.tvcustom-review-box label {
    display: block;
    text-align: left;
    font-size: 14px;
    text-transform: capitalize;
    margin-bottom: 5px;
    color: #000;
}
.tvcustom-review-box input {
    border: 1px solid #e0e0e0;
    height: 38px;
    width: 100%;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.tvcustom-review-box input:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.tvcustom-review-box #review_content {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    width: 100%;
    height: 80px;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    resize: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.tvcustom-review-box #review_content:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.tvproduct-review-box sup,
.fl.required {
    color: #c0392b;
}
#new_comment_form_error li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #e74c3c;
}
.tvall-product-star-icon .star {
    display: inline-block;
    vertical-align: middle;
    line-height: 1
}

#new_comment_form .star,
#new_comment_form .star.star_on {
    background: url(../../../../modules/tvcmsproductcomments/views/img/star-no.png) no-repeat scroll 0 0 transparent;
}
#new_comment_form .star.star_hover,
#new_comment_form .star.star_on {
    background: url(../../../../modules/tvcmsproductcomments/views/img/star.png) no-repeat scroll 0 0 transparent;
}
#new_comment_form .star a,
#tvcmsproductCommentsBlock .star a {
    display: none;
}

.lang-rtl .tvproduct-review-box {
    text-align: right;
}
.lang-rtl #criterions_list li .cancel {
    left: -50px;
    right: auto;
}

/* ── улучшения внешнего вида ── */

/* fancybox — скруглённые углы и тень */
.fancybox-overlay .fancybox-skin {
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* заголовок модалки */
#id_new_comment_form .title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #111;
    padding: 18px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #efefef;
}

/* картинка товара — центрирование и отступы */
.tvcmsproduct-image-comment {
    padding: 20px 16px !important;
    background: #f8f8f6;
    border-right: 1px solid #efefef;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tvcmsproduct-image-comment img {
    border-radius: 8px;
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* правая колонка */
.tvproduct-review-box.new_comment_form_content {
    padding: 20px 24px !important;
}

/* название товара */
.tvproduct-review-box .tvproduct-name {
    padding-bottom: 14px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 14px;
}

/* кнопки в футере */
#new_comment_form_footer {
    border-top: 1px solid #efefef;
    padding-top: 14px;
    margin-top: 4px;
}
.fl.required {
    font-size: 12px;
    color: #999 !important;
}
.fl.required sup {
    color: #c0392b;
}
.tvreviews-popup-send-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tvreviews-popup-send-btn .tvall-inner-btn,
button.tvall-inner-btn#submitNewMessage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1px solid #222;
    background: #111;
    color: #fff !important;
}
.tvreviews-popup-send-btn .tvall-inner-btn:hover,
button.tvall-inner-btn#submitNewMessage:hover {
    background: #333;
    text-decoration: none;
}
/* кнопка отмены — вторичная */
.tvreviews-popup-send-btn a.tvall-inner-btn {
    background: #222;
    color: #fff !important;
    border: 1px solid #ddd;
}
.tvreviews-popup-send-btn a.tvall-inner-btn:hover {
    background: #f5f5f5;
}
/* кнопка отмены — видимая */
.tvreviews-popup-send-btn a.tvall-inner-btn {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #aaa !important;
}
.tvreviews-popup-send-btn a.tvall-inner-btn:hover {
    background: #333 !important;
}

/* фото товара побольше */
.tvcmsproduct-image-comment img {
    max-width: 260px !important;
    width: 100% !important;
}
.tvcmsproduct-image-comment {
    min-width: 280px !important;
}
.fancybox-inner{
    overflow-y: scroll !important;
}