.tp-reviews__summary {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.tp-reviews__item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.tp-reviews__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tp-reviews__name {
    font-weight: 600;
}

.tp-reviews__text {
    margin: 8px 0;
}

.tp-reviews__ratings {
    display: grid;
    gap: 4px;
    font-size: 14px;
    color: #444;
}

.tp-reviews__add-btn {
    display: inline-block;
    margin-bottom: 16px;
}

.tp-reviews__form {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #eee;
}

.tp-reviews__errors {
    margin-bottom: 12px;
    color: #b10000;
}

.tp-reviews__error-item {
    margin-bottom: 6px;
}

.tp-reviews__success {
    margin-bottom: 12px;
    color: #0b7a0b;
}

.tp-reviews__input,
.tp-reviews__textarea {
    margin-bottom: 12px;
}

.tp-reviews__textarea textarea {
    width: 100%;
    min-height: 120px;
}

.tp-reviews__rating-block {
    margin-bottom: 10px;
}

.tp-reviews__rating-stars {
    display: inline-flex;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.tp-reviews__rating-star {
    font-size: 22px;
    color: #c9c9c9;
}

.tp-reviews__rating-star.is-active {
    color: #f7b500;
}

.tp-reviews__checkbox {
    margin: 12px 0;
}

.tp-reviews__actions {
    margin-top: 12px;
}

.tp-reviews__add-btn {
    margin-bottom: 20px;
}

.tp-reviews__modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.tp-reviews__modal.is-open {
    display: flex;
}

.tp-reviews__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.tp-reviews__modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 20px;
    max-width: 460px;
    width: 90%;
    border-radius: 6px;
    text-align: center;
}

.tp-reviews__modal-text {
    margin-bottom: 16px;
}

.tp-reviews__rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-reviews__rating-label {
    min-width: 170px;
}

.tp-reviews__stars {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 16px;
    background: linear-gradient(90deg, #f2b01e calc(var(--rating) * 20%), #e0e0e0 0);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='16' viewBox='0 0 90 16'><g fill='black'><path d='M8 0l2.2 4.6L15 5.2l-3.5 3.5.9 5.1L8 11.5 3.6 13.8l.9-5.1L1 5.2l4.8-.6L8 0z'/><path d='M26 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L26 11.5l-4.4 2.3.9-5.1L19 5.2l4.8-.6L26 0z'/><path d='M44 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L44 11.5l-4.4 2.3.9-5.1L37 5.2l4.8-.6L44 0z'/><path d='M62 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L62 11.5l-4.4 2.3.9-5.1L55 5.2l4.8-.6L62 0z'/><path d='M80 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L80 11.5l-4.4 2.3.9-5.1L73 5.2l4.8-.6L80 0z'/></g></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='16' viewBox='0 0 90 16'><g fill='black'><path d='M8 0l2.2 4.6L15 5.2l-3.5 3.5.9 5.1L8 11.5 3.6 13.8l.9-5.1L1 5.2l4.8-.6L8 0z'/><path d='M26 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L26 11.5l-4.4 2.3.9-5.1L19 5.2l4.8-.6L26 0z'/><path d='M44 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L44 11.5l-4.4 2.3.9-5.1L37 5.2l4.8-.6L44 0z'/><path d='M62 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L62 11.5l-4.4 2.3.9-5.1L55 5.2l4.8-.6L62 0z'/><path d='M80 0l2.2 4.6 4.8.6-3.5 3.5.9 5.1L80 11.5l-4.4 2.3.9-5.1L73 5.2l4.8-.6L80 0z'/></g></svg>") no-repeat center / contain;
}

.tp-reviews__stars::before {
    content: attr(data-stars);
    position: absolute;
    inset: 0;
    opacity: 0;
}

.tp-reviews__pager {
    margin-top: 20px;
}
