/**
 * Comments with Ratings Styles for Companies Post Type
 * Based on insiders-new theme styles
 */

/* Main Rating Tab Container */
.company__rating-tab {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 813px;
    height: 271px;
    z-index: 1;
    padding: 32px 15px 30px 42px;
    box-shadow: 0 0 50px 0 rgba(112, 112, 112, 0.1);
    margin: 0 auto 58px auto;
    border-radius: 25px 0 0 0;
}

.company__rating-text-wrap {
    display: flex;
    align-items: center;
}

.company-rating-number {
    display: flex;
    flex-direction: column;
    width: 70%;
}

.company-rating-tab button {
    font-family: Heebo;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
    display: block;
    margin: 64px auto 0 auto;
    border-radius: 8px;
    background-color: #0081F2;
    box-shadow: 0 0 15px 0 #f6faff;
    color: #ffffff;
    padding: 14px 34px;
    border: none;
    cursor: pointer;
}

.company-rating-btn[aria-expanded=true] {
    margin-left: auto;
    margin-right: 0;
    border-radius: 15px 0 0 0;
}

.company-collapse {
    background-color: #FFFFFF;
    box-shadow: 0 0 50px 0 rgba(112, 112, 112, 0.1);
    border-radius: 25px 0 0 0;
    width: 100%;
    padding: 50px;
}

.company-collapse-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 31px;
}

.company-textarea {
    width: 100%;
}

.company-textarea textarea {
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    resize: none;
    font-family: Heebo;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(112, 112, 112, 0.51);
    width: 600px;
    height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.company-input-name,
.company-input-email {
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 5%);
    padding: 6px 12px;
    resize: none;
    font-family: Heebo;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(112, 112, 112, 0.51);
    width: 600px;
    height: 30px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.company-collapse-btn-wrap .company-collapse-btn {
    background-image: linear-gradient(to left, #dceaf7 100%, #f6faff 0%);
    padding: 9px;
    min-width: 407px;
    border-radius: 15px;
    margin-top: 0;
    border: none;
    cursor: pointer;
    font-family: Heebo;
    font-size: 18px;
    font-weight: 500;
    color: #0081f2;
}

.company-dropdown {
    width: 813px;
    margin: 0 auto;
    margin-top: 58px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.company-btn {
    font-family: Heebo;
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    color: rgba(112, 112, 112, 0.56);
    text-decoration: unset;
}

.company-dropdown-item {
    font-family: Heebo;
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    color: rgba(112, 112, 112, 0.56);
    text-decoration: unset;
    padding: 5px;
}

.company-rating-number-text {
    margin-bottom: 30px;
}

.company-rating-people {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-rating-people svg {
    margin-bottom: 16px;
}

.company-rating-people .company__rating-tab-title {
    font-family: Heebo;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #0081f2;
}

.company__rating-tab-number {
    display: flex;
    align-items: baseline;
}

.company__rating-tab-number .company__rating-tab-number-one {
    font-family: Heebo;
    font-size: 24px;
    line-height: 1.46;
    color: #0081f2;
}

.company__rating-tab-number .company__rating-tab-number-two {
    font-family: Heebo;
    font-size: 110px;
    line-height: 1;
    color: #0081f2;
}

.company__rating-text {
    margin-left: 25px;
}

.company__rating-text p {
    font-family: Heebo;
    font-size: 16px;
    line-height: 1.5;
    color: #707070;
    margin-bottom: 10px;
}

.company-bottom-link {
    display: block;
    text-align: center;
    font-family: Heebo;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.45;
    color: #0081f2;
    text-decoration: unset;
    margin-top: 30px;
}

.company__rating-tab-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-rating-number-text-mobile {
    display: none;
}

/* Rating Links */
.company__rating-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.company-choice-rating.company__rating-links {
    margin-bottom: 0;
}

.company__rating-links ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    flex-direction: row-reverse;
}

.company__rating-links ul li {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Heebo;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #707070;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company__rating-links ul li:hover {
    background-color: #e3f2fd;
    border-color: #0081f2;
    color: #0081f2;
}

.company__rating-links ul li.active {
    background-color: #0081f2;
    border-color: #0081f2;
    color: #ffffff;
}

.company__rating-links ul li input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: Heebo;
    font-size: 14px;
    font-weight: 500;
    color: #707070;
    cursor: pointer;
    pointer-events: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.company__rating-links ul li:hover input {
    color: #0081f2;
}

.company__rating-links ul li.active input {
    color: #ffffff;
}

/* Ratings Wrapper */
.ratings_wrapper {
    width: 813px;
    margin: 0 auto;
}

/* Success Message */
.company-collapse-success {
    display: none;
    background-color: #FFFFFF;
    box-shadow: 0 0 50px 0 rgb(112 112 112 / 10%);
    border-radius: 25px 0 0 0;
    width: 100%;
    height: 302px;
    padding: 116px 50px;
}

.company-collapse-success-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.46;
    text-align: center;
    color: #707070;
    font-family: Heebo;
}

.company-collapse-success-text-sub {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.46;
    text-align: center;
    color: #707070;
    font-family: Heebo;
    margin-top: 15px;
}

/* Error Messages */
#errorText,
#errorTextInput,
#errorEmailInput,
#errorRating {
    color: red;
    font-family: Heebo;
    font-size: 14px;
    margin-top: 5px;
}

/* Avatar */
.company__rating-tab-icon .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.company__rating-tab-icon .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading */
.loadingcom {
    text-align: center;
    margin: 20px 0;
}

.loadingcom img {
    width: 50px;
    height: 50px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .company__rating-tab {
        width: 100%;
        height: 100%;
        flex-wrap: wrap;
        padding: 14px 9px 10px 9px;
        margin-bottom: 34px;
    }

    .company-rating-number {
        width: 100%;
    }

    .company-rating-number-text {
        display: none;
    }

    .company-rating-people {
        width: 100%;
    }

    .company-rating-people .company__rating-tab-title {
        font-size: 14px;
        text-align: center;
    }

    .company-rating-number-text-mobile {
        display: block;
        font-family: Heebo;
        font-size: 14px;
        line-height: 1.5;
        color: #707070;
        margin-top: 10px;
    }

    .company__rating-tab-number .company__rating-tab-number-two {
        font-size: 43px;
    }

    .company__rating-tab-number .company__rating-tab-number-one {
        font-size: 9px;
    }

    .company-dropdown {
        width: 100%;
    }

    .ratings_wrapper {
        width: 100%;
    }

    .company-collapse-wrap {
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .company-input-name,
    .company-input-email {
        width: 100%;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .company-textarea textarea {
        width: 100%;
        font-size: 12px;
    }

    .company-collapse-btn-wrap .company-collapse-btn {
        width: 100%;
        min-width: 100%;
    }

    .company-collapse {
        padding: 18px 10px;
        border-radius: 0;
    }

    .company__rating-links ul li {
        width: 23px;
        height: 22px;
        font-size: 11px;
    }

    .company__rating-links ul li input {
        width: 23px;
        height: 22px;
    }

    .company-rating-btn[aria-expanded=true] {
        padding: 9px;
        border-radius: 0 15px 0 0;
    }

    .company-textarea {
        width: 100%;
    }

    .company__rating-text p {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 350px) {
    .company__rating-links ul li {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* Comment Like/Dislike Styles */
.comment-grade-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.comment-grade-wrapper-like {
    display: flex;
    align-items: center;
    margin-left: 21px;
    width: max-content;
}

.comment-grade-wrapper-dislike {
    width: max-content;
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.comment-grade-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.comment-grade-button:hover:not(.not-touch) {
    opacity: 0.7;
}

.comment-grade-button.not-touch {
    cursor: not-allowed;
    opacity: 0.6;
}

.comment-grade-button svg {
    fill: none;
    stroke: #707070;
    transition: all 0.3s ease;
}

.comment-grade-button.active svg {
    fill: #0081f2;
    stroke: #0081f2;
}

.comment-grade-quantity {
    font-family: Heebo;
    font-size: 14px;
    font-weight: 500;
    color: #707070;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
}
