.phone-rating-form {
	margin-bottom: 22px;
	padding: 20px;
	border: 1px solid #e5e7ee;
	border-radius: 10px;
	background: #fafbfc;
}

.phone-rating-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.phone-rating-header h4 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
}

.phone-rating-header p {
	margin: 0;
	color: #777;
	font-size: 13px;
}

.phone-rating-total {
	width: 68px;
	height: 68px;
	display: flex;
	align-items: baseline;
	justify-content: center;
	padding-top: 17px;
	border-radius: 50%;
	font-weight: 700;
}

.phone-rating-total span {
	font-size: 22px;
}

.phone-rating-total small {
	font-size: 11px;
}

.phone-rating-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 20px;
}

.phone-rating-field label {
	display: block;
	min-height: 20px;
	margin-bottom: 6px;
	font-size: 13px;
}

.phone-rating-select {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 38px;
	gap: 8px;
}

.phone-rating-select > span {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-weight: 700;
}

.rating-none {
	background: #eceff3;
	color: #888;
}

.rating-red {
	background: #ffe5e5;
	color: #d83b3b;
}

.rating-orange {
	background: #fff0d8;
	color: #d97900;
}

.rating-green {
	background: #e1f5e7;
	color: #258b45;
}

.rating-purple {
	background: #eee8ff;
	color: #6f42ff;
}

@media (max-width: 600px) {
	.phone-rating-grid {
		grid-template-columns: 1fr;
	}

	.phone-rating-form {
		padding: 16px 13px;
	}
}
}
.phone-rating-field {
    margin-bottom: 24px;
}

.phone-rating-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.phone-rating-label label {
    margin: 0;
}

.phone-rating-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.phone-rating-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
    accent-color: #7047ff;
}
.comment-text {
    margin-bottom: 16px;
    line-height: 1.6;
}

.comment-rating {
    padding: 16px;
    border: 1px solid #e7e8ef;
    border-radius: 10px;
    background: #f8f9fc;
}

.comment-rating-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 16px;
}

.comment-rating-overall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    font-weight: 700;
}

.comment-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.comment-rating-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e5ec;
}

.comment-rating-grid span {
    color: #666;
}

.comment-rating-grid strong {
    padding: 4px 8px;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .comment-rating-grid {
        grid-template-columns: 1fr;
    }
}
.comment-rating-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-details-toggle {
    padding: 7px 12px;
    border: 1px solid #dcdde5;
    border-radius: 18px;
    color: #625b6a;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rating-details-toggle:hover {
    color: #7047ff;
    border-color: #7047ff;
    background: #f7f4ff;
}

.rating-details-toggle i {
    margin-right: 5px;
}

.comment-rating-details {
    padding-top: 14px;
    border-top: 1px solid #e5e6ec;
}

@media (max-width: 600px) {
    .comment-rating-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .comment-rating-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .rating-details-toggle {
        font-size: 12px;
    }
}
.all-comments-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 18px;
    border-top: 1px solid #dedfe5;
    background: #f4f4f5;
}

.read-all-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 17px;
    border: 1px solid #c9cad1;
    color: #3e3a43;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.read-all-comments-btn:hover,
.read-all-comments-btn:focus {
    color: #fff;
    border-color: #7047ff;
    background: #7047ff;
    text-decoration: none;
}

.total-comments-count {
    color: #55515a;
    font-size: 14px;
}

@media (max-width: 600px) {
    .all-comments-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .read-all-comments-btn {
        justify-content: center;
    }

    .total-comments-count {
        text-align: center;
    }
}
/* Full comments page */

.all-comments-page {
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e4e5eb;
    border-radius: 16px;
    background: #fff;
}

.all-comments-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 28px;
    border-bottom: 1px solid #e4e5eb;
    background: #f8f9fc;
}

.all-comments-page-header h1 {
    margin: 12px 0 5px;
    color: #27232d;
    font-size: 30px;
    font-weight: 700;
}

.all-comments-page-header p {
    margin: 0;
    color: #77727e;
    font-size: 17px;
}

.back-to-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7047ff;
    font-size: 14px;
    font-weight: 600;
}

.back-to-phone:hover {
    color: #5330d7;
    text-decoration: none;
}

.comments-phone-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    border: 1px solid #e1e2e8;
    border-radius: 12px;
    background: #fff;
}

.comments-phone-image img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.comments-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 28px;
    border-bottom: 1px solid #e4e5eb;
    background: #fff;
}

.comments-summary span {
    color: #55515c;
}

.comments-summary strong {
    color: #27232d;
}

.comments-summary a,
.no-comments-message a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 6px;
    color: #fff;
    background: #729fca;
    font-weight: 700;
    text-decoration: none;
}

.comments-summary a:hover,
.no-comments-message a:hover {
    color: #fff;
    background: #5d8fbd;
    text-decoration: none;
}

.all-comments-list {
    padding: 24px 28px;
}

.full-comment-card {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #dedfe6;
    border-radius: 10px;
    background: #fff;
}

.full-comment-card:last-child {
    margin-bottom: 0;
}

.full-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e3e8;
    background: #f5f5f6;
}

.full-comment-header > div {
    display: flex;
    flex-direction: column;
}

.full-comment-header strong {
    color: #29252e;
    font-size: 16px;
}

.full-comment-header time {
    margin-top: 3px;
    color: #85808a;
    font-size: 12px;
}

.full-comment-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.full-comment-text {
    padding: 18px;
    color: #39353e;
    font-size: 15px;
    line-height: 1.7;
}

.full-rating-details {
    margin: 0 18px 18px;
    border: 1px solid #e2e3e9;
    border-radius: 8px;
    background: #f8f9fc;
}

.full-rating-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    color: #625b6a;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.full-rating-details summary::-webkit-details-marker {
    display: none;
}

.full-rating-details summary i {
    transition: transform 0.2s ease;
}

.full-rating-details[open] summary i {
    transform: rotate(180deg);
}

.full-rating-details .hide-label {
    display: none;
}

.full-rating-details[open] .show-label {
    display: none;
}

.full-rating-details[open] .hide-label {
    display: inline;
}

.full-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    padding: 5px 14px 14px;
}

.full-rating-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #e1e2e8;
}

.full-rating-grid span {
    color: #625e67;
}

.full-rating-grid strong {
    padding: 5px 9px;
    border-radius: 14px;
    white-space: nowrap;
}

/* Rating colors */

.full-comment-score.rating-none,
.full-rating-grid .rating-none {
    color: #777;
    background: #ededed;
}

.full-comment-score.rating-red,
.full-rating-grid .rating-red {
    color: #d83b45;
    background: #ffe8ea;
}

.full-comment-score.rating-orange,
.full-rating-grid .rating-orange {
    color: #d77a00;
    background: #fff0d8;
}

.full-comment-score.rating-green,
.full-rating-grid .rating-green {
    color: #178548;
    background: #e5f8ed;
}

.full-comment-score.rating-purple,
.full-rating-grid .rating-purple {
    color: #7047ff;
    background: #eee8ff;
}

/* Pagination */

.comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 22px 28px 28px;
}

.comments-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #d9dae1;
    border-radius: 6px;
    color: #504b55;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
}

.comments-pagination a:hover {
    color: #7047ff;
    border-color: #7047ff;
    text-decoration: none;
}

.comments-pagination a.active {
    color: #fff;
    border-color: #7047ff;
    background: #7047ff;
}

/* No comments */

.no-comments-message {
    padding: 55px 25px;
    color: #827d87;
    text-align: center;
}

.no-comments-message > i {
    display: block;
    margin-bottom: 12px;
    color: #7047ff;
    font-size: 42px;
}

.no-comments-message strong {
    display: block;
    margin-bottom: 6px;
    color: #302c35;
    font-size: 19px;
}

.no-comments-message p {
    margin-bottom: 17px;
}

/* Mobile layout */

@media (max-width: 600px) {
    .all-comments-page-header {
        align-items: flex-start;
        padding: 20px;
    }

    .all-comments-page-header h1 {
        font-size: 24px;
    }

    .comments-phone-image {
        flex-basis: 75px;
        width: 75px;
        height: 75px;
    }

    .comments-summary {
        align-items: stretch;
        flex-direction: column;
        padding: 15px 20px;
    }

    .comments-summary a {
        justify-content: center;
    }

    .all-comments-list {
        padding: 18px;
    }

    .full-rating-grid {
        grid-template-columns: 1fr;
    }

    .comments-pagination {
        padding: 18px;
    }
}
.phone-ratings-summary {
    margin-top: 20px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e4e6e9;
    border-radius: 12px;
}

.ratings-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ratings-summary-header h3 {
    margin: 0 0 5px;
    color: #4b4b4b;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.ratings-summary-header > div > span {
    color: #888;
    font-size: 13px;
}

.ratings-overall {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.ratings-overall strong {
    font-size: 26px;
}

.ratings-overall small {
    color: #777;
    font-size: 13px;
}

.ratings-circles {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.rating-circle-item {
    flex: 1;
    min-width: 110px;
    text-align: center;
}

.rating-summary-circle {
    display: grid;
    width: 45px;
    height: 45px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
}

.rating-summary-circle span {
    color: #333;
    font-size: 19px;
    font-weight: 700;
}

.rating-circle-item p {
    margin: 10px 0 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

/* Rating section — tablet */
@media (max-width: 991px) {
    .ratings-circles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
        width: 100%;
        overflow: visible;
    }

    .rating-circle-item {
        min-width: 0;
        width: 100%;
    }
}

/* Rating section — phone */
@media (max-width: 767px) {
    .phone-ratings-summary {
        width: 100%;
        margin-top: 15px;
        padding: 18px 12px;
        overflow: hidden;
    }

    .ratings-summary-header {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .ratings-summary-header h3 {
        font-size: 19px;
    }

    .ratings-overall {
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .ratings-circles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 10px;
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    .rating-circle-item {
        display: flex;
        align-items: center;
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }

    .rating-summary-circle {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }

    .rating-summary-circle span {
        font-size: 16px;
    }

    .rating-circle-item p {
        max-width: 120px;
        margin: 8px auto 0;
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        text-align: center;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .phone-ratings-summary {
        padding-right: 8px;
        padding-left: 8px;
    }

    .rating-summary-circle {
        width: 66px;
        height: 66px;
    }

    .rating-circle-item p {
        font-size: 12px;
    }
}
.phone-ratings-summary {
    margin-top: 20px;
    margin-bottom: 22px;
    padding: 24px 28px 20px;
}
.ratings-overall {
    padding: 7px 12px;
    background: #fff6e5;
    border-radius: 6px;
}

.ratings-overall strong {
    font-size: 28px;
    line-height: 1;
}

.ratings-overall small {
    margin-left: 3px;
}