@import url("../cabinet/reviews.css");
@import url("../profile/review.css");

:root {
    --reviews-bg: #4d4d55;
    --reviews-bg2: #44444c;
}

.chatReview {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "GothamPro";
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: var(--lang-color);
    margin: 5px 0px 40px;
}

@media screen and (max-width: 960px) {
    .chatReview {
        line-height: 20px;
        margin: 9px 10px 34px;
        width: auto;
    }
}

.chatReview__card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    align-items: center;
    max-width: 661px;
    width: 100%;
}

.chatReview__card__infoBox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* max-width: 440px; */
    text-align: center;
}

.chatReview__card__reviewBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.chatReview__starsBox {
    display: flex;
    gap: 4px;
    margin-top: 20px;
}

.chatReview__star,
.chatReview__starLabel {
    color: var(--historyMob-title);
    opacity: 0.8;
    cursor: pointer;
}

.chatReview__starInput {
    display: none;
}

.chatReview__star_active {
    color: var(--main-color);
}

.chatReview__starsBox:has(.chatReview__starInput:checked)
    .chatReview__starLabel {
    color: var(--main-color);
}
/* Перекрашивает звёзды после выбранной */
.chatReview__starLabel:has(.chatReview__starInput:checked)
    ~ .chatReview__starLabel {
    opacity: 0.8;
    color: var(--historyMob-title);
}

.chatReview__textBox {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 18px;
}

.chatReview__text {
    padding: 14px 16px;
    background-color: var(--modal-sel-num);
    border-radius: 8px;
    word-break: break-word;
    white-space: pre-wrap;
}

.chatReview__textInputBox {
    padding: 14px 8px 14px 16px;
    background-color: var(--modal-sel-num);
    border-radius: 8px;
    width: 100%;
    border: 1px solid transparent;
    position: relative;
}

.chatReview__textInputBox:has(.chatReview__textInput:focus) {
    border: 1px solid var(--main-color);
}

.chatReview__textInput {
    padding: 0;
    border: none;
    min-height: 36px;
    max-height: 72px;
    font-size: 14px;
    line-height: 18px;
    width: 100%;
    overflow: auto;
}

textarea.chatReview__textInput::-webkit-scrollbar-track,
textarea.chatReview__textInput::-webkit-scrollbar-thumb,
textarea.chatReview__textInput::-webkit-scrollbar {
    border-radius: 8px;
    width: 4px;
}

textarea.chatReview__textInput::-webkit-scrollbar-thumb {
    border-radius: 8px;
    width: 4px;
}

textarea.chatReview__textInput:-webkit-input-placeholder,
textarea.chatReview__textInput::-moz-placeholder,
textarea.chatReview__textInput:-ms-input-placeholder,
textarea.chatReview__textInput::-ms-input-placeholder,
textarea.chatReview__textInput::placeholder {
    line-height: 14px;
    font-size: 18px;
}

.chatReview__textInputDigits {
    position: absolute;
    right: 0;
    bottom: -20px;
    opacity: 0;
    line-height: 12px;
    font-size: 12px;
    color: var(--main-color);
}

.chatReview__textInput:focus + .chatReview__textInputDigits {
    opacity: 1;
}

.chatReview__alertLinkBox {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.chatReview__alertLink {
    color: var(--main-color);
}

.chatReview__statusBox {
    display: inline-flex;
    gap: 12px;
    margin-top: 40px;
    align-items: center;
}
@media screen and (max-width: 960px) {
    .chatReview__statusBox {
        margin-top: 44px;
    }
}

.chatReview__status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 16px;
}

.chatReview__status_color-green {
    background-color: #34c7591a;
    color: #34c759;
}

.chatReview__status_color-yellow {
    background-color: #ffb9431a;
    color: #ffb943;
}
.chatReview__status_color-red {
    background-color: #ff5e611a;
    color: #ff5e61;
}

.chatReview__supportLink {
    color: inherit;
    text-decoration: underline;
    text-align: center;
    margin-top: 24px;
}

.chatReview__card__reviewResponseBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

@media screen and (max-width: 960px) {
    .chatReview__card__reviewResponseBox {
        margin-top: 24px;
    }
}

.chatReview__button {
    text-transform: uppercase;
    padding: 12px;

    border-radius: 8px;
    background: none;
    margin-top: 20px;
    color: inherit;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.02em;
    opacity: 0.64;
    cursor: pointer;
}

.chatReview__card:has(input:checked) .chatReview__button,
.chatReview__card:not(:has(textarea:placeholder-shown)):not(
        :has(input[type="radio"])
    )
    .chatReview__buttonResponse {
    opacity: 1;
}

.chatReview__button span {
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 960px) {
    .chatReview__card__infoBox {
        line-height: 20px;
    }
}

.chatReview__card > span {
    font-family: "GothamPro";
    margin-top: 12px;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: var(--main-color);
}

.chatReview__card:has(input:checked) > span,
.chatReview__card:not(:has(textarea:placeholder-shown)):not(
        :has(input[type="radio"])
    )
    > span {
    display: none;
}
