.comments {

    padding: 0 15px;
    font-size: .8125rem;
    line-height: 1.1875rem;
    font-weight: 400;
    /* position: relative;
    overflow: hidden; */
}

.comments-rating-block {
    padding: 40px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, .04);
}

/* .comments-rating-block__image-wrp {
    width: 100px;
    margin-bottom: 10px;
} */
.comments-rating-block__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    width: 100px;
    margin-bottom: 10px;
}

.comments-rating-block__text {
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    margin-bottom: 5px;
}

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

.comments-rating ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 80px;
    margin-right: 5px;
}

.comments-rating li {
    background: url("../images/star_full.svg") no-repeat center / contain;
    width: 20%;
    height: 12px;
    padding: 0;
}

.comments-rating span {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.comments-review-block {
    display: flex;
    gap: 40px;
    padding: 15px 0;
}

.comments-review-block__sidebar {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    text-align: start;
    /* color: #0e7490; */
    background-color: #fff;

}

.comments-review-block__sidebar h2 {
    color: #27272a;
    line-height: 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    /* max-width: 100%; */
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: #262626;
    /* width: 203px; */
    margin-bottom: 8px;
}

.rating-img {
    background-image: url("../images/amazon-icons.png");
    background-position: -2px -296px;
    height: 20px;
    width: 95px;
}

@media(max-width: 768px) {
    .comments-review-block {
        flex-wrap: wrap;
    }
}


.rating-text {

    align-self: flex-start;
}


.rating-general {
    margin-bottom: 16px;
}

.rating-general span {
    color: #565959;

    font-size: 14px;
    line-height: 20px;
}

.rating-scale {
    display: flex;
    align-self: flex-start;
    gap: 0.625rem;
    max-width: 300px;
    width: 100%;
    margin-top: 1.25rem;
    margin-top: 20px;
}

.rating-scale div {
    transition-duration: 300ms;
    line-height: 1.25rem;
    font-size: 0.875rem;
}


#histogramTable {
    width: 280px;
}

table:last-child {
    margin-bottom: 0;
}

.a-align-center,
.aok-align-center {
    vertical-align: middle;
}



table {
    border-collapse: collapse;
    width: 100%;
}

.a-meter-with-txt.a-disabled .a-meter-progress-txt,
.a-meter-with-txt.a-inactive .a-meter-progress-txt,
tr.a-histogram-row,
tr.a-histogram-row.a-disabled,
tr.a-histogram-row.a-disabled a,
tr.a-histogram-row.a-inactive,
tr.a-histogram-row.a-inactive a {
    color: #565959;
}

.a-align-center,
.aok-align-center {
    vertical-align: middle;
}

tr.a-histogram-row:first-child td {
    padding-top: 0;
}

tr.a-histogram-row td:first-child {
    padding-left: 0;
}

tr:first-child td,
tr:first-child th {
    padding-top: 0;
}

table.a-align-center td,
table.a-align-center th {
    vertical-align: middle;
}

tr.a-histogram-row td {
    padding: 7px 3px;
}

td:first-child,
th:first-child {
    padding-left: 0;
}

.a-nowrap,
.aok-nowrap {
    white-space: nowrap;
}

tr.a-histogram-row.a-active a,
tr.a-histogram-row:active a,
tr.a-histogram-row:hover a {
    color: #c7511f;
    text-decoration: underline;
}

tr.a-histogram-row .a-link-normal {
    color: #FFFFFF;
}

a,
a:link,
a:visited {
    text-decoration: none;
    color: #FFFFFF;
}


.a-size-base {
    font-size: 14px;
    line-height: 20px;
}

.a-letter-space {
    display: inline-block;
    width: .385em;
}

tr.a-histogram-row:first-child td {
    padding-top: 0;
}

tr:first-child td,
tr:first-child th {
    padding-top: 0;
}

table.a-align-center td,
table.a-align-center th {
    vertical-align: middle;
}

tr.a-histogram-row td {
    padding: 7px 3px;
}

td.a-span10,
th.a-span10 {
    width: 87.43%;
    float: none;
}

td.a-span1,
td.a-span10,
td.a-span11,
td.a-span12,
td.a-span2,
td.a-span3,
td.a-span4,
td.a-span5,
td.a-span6,
td.a-span7,
td.a-span8,
td.a-span9,
th.a-span1,
th.a-span10,
th.a-span11,
th.a-span12,
th.a-span2,
th.a-span3,
th.a-span4,
th.a-span5,
th.a-span6,
th.a-span7,
th.a-span8,
th.a-span9 {
    float: none;
    margin-right: 0;
}

tr.a-histogram-row.a-active a,
tr.a-histogram-row:active a,
tr.a-histogram-row:hover a {
    color: #c7511f;
    text-decoration: underline;
}

tr.a-histogram-row .a-link-normal {
    color: black;
}

a,
a:link,
a:visited {
    text-decoration: none;
    color: #FFFFFF;
}

.a-size-base {
    font-size: 14px;
    line-height: 20px;
}

tr.a-histogram-row.a-active .a-meter,
tr.a-histogram-row.a-active .a-meter-with-txt,
tr.a-histogram-row:active .a-meter,
tr.a-histogram-row:active .a-meter-with-txt,
tr.a-histogram-row:hover .a-meter,
tr.a-histogram-row:hover .a-meter-with-txt {
    box-shadow: inset 0 0 0 1px #de7921;
    background-color: #fff6e0;
}

.a-meter,
.a-meter-with-txt {
    border-radius: 4px;
}

.a-meter,
.a-meter-with-txt {
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #bbbfbf;
    background-color: #f0f2f2;
    height: 20px;
}

.a-meter .a-meter-bar,
.a-meter-with-txt .a-meter-bar {
    border-radius: 4px;
    box-shadow: inset -2px 0 0 -1px #F5961D, inset 0 0 0 1px #de7921;
    background-color: #ffa41c;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.a-meter .a-meter-bar,
.a-meter-with-txt .a-meter-bar {
    -webkit-transition: width .5s ease;
    transition: width .5s ease;
    float: left;
    font-size: 0;
    height: 100%;
    width: 0;
}


.divider {
    border-top: 1px solid #CCC;
    width: 100%;
    margin: 24px 0;
}

.write-review-title {
    color: #0c0a09;
    line-height: 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75rem;
    align-self: flex-start;
}

.write-review-subtitle {
    color: #0c0a09;
    line-height: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 1rem;
    margin-top: 16px;
}

.write-review-btn {
    transition-duration: 300ms;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    padding: 12px 64px;
    margin: 20px 0 10px;
}

.write-review-btn:hover {
    background-color: #f7fafa;
    border-color: #d5d9d9;
}


















.comments-review-block__wrp {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comments-review-block__wrp h3 {
    color: #0c0a09;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    margin: 0;
}

.comments-review {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 25px;
}

.comments-review__user {
    display: flex;
    color: #0c0a09;
    gap: 0.625rem;
    margin-bottom: 8px;
}

.ava {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.vicon img {
    border-radius: 50%;
    width: 16px;
    height: 16px;
}

.comments-revriew__use-name {
    margin: auto 0;
}

.comments-review__service {
    width: fit-content;
    display: flex;
    gap: 0.25rem;
}

.comments-review__service div {
    display: flex;
    color: #0f1111;
    font-weight: 700;
    font-size: 12px;
    background-color: #d5f9d5;
    border-radius: 0.5rem;
    padding: 4px 8px;
}

.comments-review__rating {
    margin: 2px 0 7px;
    background-position: -84px -220px;
    height: 18px;
    width: 80px;
}

.com_wrap {
    display: flex;
    gap: 8px;
    margin-top: 7px;
}

.comments-review__date {
    display: flex;
    color: #565959;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
}

.comments-review__user-name {
    font-weight: 600;
    font-size: 14px;
}

.comments-review__date i {
    display: inline-block;
    margin: 4px 5px 0;
    width: 1px;
    background-color: #ddd;
    height: 14px;
    vertical-align: middle;
}

.review-verified {
    color: #4caf50;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
}

.review-verified:hover {
    text-decoration: underline;
    cursor: pointer;
}

.comments-review__text {
    color: #0f1111;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
}

.comments-review__img {
    max-width: 200px;
    /* max-height: 200px; */
    overflow: hidden;
    border-radius: 8px;
}

.comments-review__img img {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.more-reviews {
    width: fit-content;
    position: relative;
    padding-right: 9px;
    text-decoration: none;
    color: black !important;
    font-weight: 700;
}

.more-reviews:after {
    content: '';
    border: solid;
    padding: 1.75px;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
    position: absolute;
    bottom: 6px;
    right: 3px;
}

.more-reviews:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #c7511f;
}



.review-container {
    width: 100%;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
}

.rating {
    font-size: 40px;
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.stars {
    color: var(--color-primary);
    font-size: 20px;
}

.total-reviews {
    font-size: 14px;
    color: gray;
}

.recommendation {
    font-size: 16px;
    font-weight: bold;
}

.average-rating {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
}

.average-rating:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
    width: 100%;
}

.rating-bar .stars {
    margin-left: 2px;
    font-size: 16px;
}

.bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: #ddd;
    /* Сірий фон для недостаючої частини */
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
    position: relative;
}

.bar {
    height: 100%;
    background-color: var(--color-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.write-review-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.write-review {

    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;

}

.write-review:hover {
    background-color: var(--color-primary);
    color: #fff;
}