/* REVIEW PHOTOS */

.comment_photo_container {
    display: flex;
    margin: .5em 0em;
}

.comment_photo_more {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #DCD1D2;
    flex: 1 1 100px;
    cursor: pointer;
}

.comment_photo {
    margin-right: .25em;
    cursor: pointer;
}

#review_modal_back {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.review_photos_modal {
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  background-color: white;
}

.close_review_photos_modal {
  color: #aaa;
  font-size: 22px;
  font-weight: bold;
}
.close_review_photos_modal:hover,
.close_review_photos_modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.review_photos_modal_top {
    display: flex;
}

.review_photos_content {
    width: 92%;
    display: flex;
}

.review_photos_modal_img {
    width: 60%;
    aspect-ratio: 1 / 1;
    background-color: lightgrey;
}

.review_photos_modal_img img {
    transition: all 0.5s ease;
}

.review_photos_modal_img_viewer {
    width: 100%;
    height: 100%!important;
    object-fit: contain;
}

.review_photos_modal_header {
    display: flex;
    justify-content: space-between;
}

.review_photos_modal_text {
    overflow-y: hidden;
}

.review_photos_info {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.modal_h2 {
    float: left;
    font-weight: 700;
    font-size: 1.2em;
}

.review_photos_modal_img_info {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    width: 38%;
    margin: 0% 2%;
}

.review_photos_modal_author {
    font-weight: 600;
}

.review_photos_modal_date {
    margin-bottom: .5em;
}

.lds-dual-ring {
  color: #1A728F;
}
.lds-dual-ring,
.lds-dual-ring:after {
  box-sizing: border-box;
}
.lds-dual-ring {
  display: none;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6.4px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.review_photos_modal_bottom .comment_photo_container {
    width: calc(100% - 156px);
    overflow-x: auto;
    -ms-overflow-x: scroll;
    overflow-y: auto;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
}

.review_photos_modal_bottom .comment_photo_container::-webkit-scrollbar {
  display: none;
}

.review_photos_modal_bottom {
    display: flex;
}

.comment_photo_arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 6px;
}

.comment_photo_left, .comment_photo_right {
    width: 72px;
    height: 72px;
    font-size: 48px;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 64px;
}

.modal_preview {
    flex: 0 0 100px;
}

.modal-chosen {
    border: 3px solid #1A728F;
}

.review_photo_arrow {
    width: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.review_photos_left, .review_photos_right {
    font-size: 48px;
    width: 100%;
    text-align: center;
}

.spoil_text {
    display: none;
    color: #22c2ff;
}

.input_file_error {
    color: red;
}

.progress_upload_photo {
    width: 50%;
    border-radius: .5lh;
    height: 1lh;
    position:relative;
    background: #ddd;
}

.progress_upload_photo_into {
    height: 100%;
    border-radius: .5lh;
    background-color: #b20014;
}

.company_review_admin_line {
    border: 1px solid #ddd;
    border-radius: 10px;
}

.c_review_admin_line {
    width: 95%;
    display: grid;
    grid-template-columns: 120px 180px 120px 1fr 180px;
    padding: 5px;
    margin-bottom: 10px;
    column-gap: 10px;
}


.c_review_name {
    text-overflow: ellipsis;
    text-align: center;
}

.c_review_edit_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.edit_c_review_button {
    padding: 10px;
    font-size: 18px;
    border: 1px solid;
    border-radius: 50%;
    text-decoration: none;
    height: 1em;
    width: 1em;
    aspect-ratio: 1/1;
    text-align: center;
    cursor: pointer;
}


.flex-button-c-review {
    display: flex;
    justify-content: center;
    align-items: center;
}

.c_review_edit {
    border-color: orange;
    color: orange;
}

.c_review_approve {
    border-color: green;
    color: green;
}

.c_review_delete {
    border-color: maroon;
    color: maroon;
}

.c_review_answer {
    border-color: black;
    color: black;
}

.no-border-button {
    border: 0;
}

.edit_c_review_button: hover {
    filter: brightness(110%);
}

.c_review_paginator {
    font-size: 16px;
    padding: 0px 8px;
}

.c_review_tabs {
    margin: 1em 0em;
}

.c_review_tab {
    padding: .5em 1em;
    border: 2px solid #ddd;
    border-radius: .25em .25em 0em 0em;
    text-decoration: none;
}

.c_review_tab_chosen {
    border-bottom: none;
    padding: .75em 1em;
    font-weight: 600;
}

.otzyv-div {
    margin-bottom: .5em;
}

.c_review_block_container {
    margin-bottom: 1.5em;
}

.c_review_child {
    margin-left: 1.5em;
}

.otzyv-answer {
    margin-top: .5em;
    text-decoration: underline 1px solid;
    color: #4DA9C7;
    cursor: pointer;
}

.custom_review_input {
    margin-bottom: .5em;
}

#cancel_answer {
    display: none;
    cursor: pointer;
    margin-left: 1em;
}

.h3_c_review_container {
    display: flex;
    align-items: center;
}

.c_review_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.c_review_pag {
    padding: 0em .3em;
    font-size: 24px;
    font-weight: 400;
    color: black;
    text-decoration: none;
}

.c_review_pag.disabled {
    cursor: default;
    color: #bbb;
}

.c_review_pag_num {
    border-radius: 50%;
    font-size: 18px;
    margin: 0em .3em;
    color: white;
    background-color: #4DA9C7;
    width: 30px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
}

.review_tab_f {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 15px;
    padding: .5em;
    border-radius: .25em .25em 0em 0em;
    border: 1px solid #ddd;
}

.review_tab_f.active {
    border-bottom: none;
}

.review_tab_f.active {
    color: black;
}

.review_tab_f:not(.active) img {
    filter: grayscale(1);
}

.review_tab_f:not(.active) {
    background-color: #eee;
}

.review_tabs_front {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.otzyv-div {
    width:100%;
    border-radius:.5em;
    border:1px solid rgba(0,0,0,0.1);
    background: #e8f0f3;
    padding:.75em;
}

.otzyv-date , .otzyv-name {
    padding-right:1.5em;
}

.otzyv-name {
    font-weight:500;
}

.otvyz-first-line {
    margin-bottom:.75em;
}

.otzyv-machine {
    font-weight:500;
}




@media (max-width: 800px) {

.comment_photo_container {
    flex-wrap: wrap;
}

.comment_photo {
    margin: 1%;
    width: 18%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#review_modal_back {
    width: 100vw;
}

.review_photos_content {
    flex-direction: column;
}

.review_photos_modal {
    margin: 0% 5%;
    width: 92%;
}

.review_photos_modal_img, .review_photos_modal_img_info {
    width: 100%;
}

.comment_photo_left, .comment_photo_right {
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 32px;
}

.review_photos_modal_bottom .comment_photo_container {
    width: calc(100% - 84px);
}

.review_photos_modal {
    padding: 5px;
}

.review_photos_modal_text {
    max-height: 8lh;
    overflow-y: hidden;
}

.review_photo_arrow {
    width: 8%;
}

.review_photos_content {
    width: 84%;
}

.progress_upload_photo {
    width: 100%;
}

.review_tabs_front {
    grid-template-columns: auto;
}

.review_tab_f div {
    font-size: 16px;
}

}