.ostu-rev-summary {
display: grid;
grid-template-columns: 1fr;
gap: 22px;
align-items: center;
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
padding: 22px;
margin: 0 0 26px;
}
@media (min-width: 640px) {
.ostu-rev-summary { grid-template-columns: minmax(150px, 200px) 1fr; gap: 30px; }
}
.ostu-rev-summary__score {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
text-align: left;
}
@media (min-width: 640px) {
.ostu-rev-summary__score {
align-items: center;
text-align: center;
border-right: 1px solid var(--border);
padding-right: 30px;
}
}
.ostu-rev-summary__avg {
font-family: var(--font-display);
font-weight: var(--fw-bold, 700);
font-size: 52px;
line-height: var(--lh-flat, 1);
color: var(--slate-dark);
font-variant-numeric: tabular-nums;
}
.ostu-rev-summary__score .star-rating {
font-size: var(--fs-md, 16px);
margin: 2px 0;
}
.ostu-rev-summary__count {
font-size: var(--fs-xs, 13px);
font-weight: var(--fw-semibold, 600);
color: var(--slate-500);
}
.ostu-rev-summary__bars {
display: flex;
flex-direction: column;
gap: 9px;
margin: 0;
padding: 0;
}
.ostu-rev-summary__row {
display: grid;
grid-template-columns: 38px 1fr 38px;
align-items: center;
gap: var(--space-12, 12px);
}
.ostu-rev-summary__star-label {
font-size: var(--fs-xs, 13px);
font-weight: var(--fw-bold, 700);
color: var(--slate);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.ostu-rev-summary__track {
position: relative;
height: 9px;
border-radius: var(--radius-pill, 999px);
background: var(--muted);
overflow: hidden;
}
.ostu-rev-summary__fill {
position: absolute;
inset: 0 auto 0 0;
height: 100%;
border-radius: var(--radius-pill, 999px);
background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
transition: width .4s ease;
}
.ostu-rev-summary__num {
font-size: var(--fs-xs, 13px);
font-weight: var(--fw-semibold, 600);
color: var(--slate-500);
text-align: right;
font-variant-numeric: tabular-nums;
}
.woocommerce #reviews #comments ol.commentlist { margin: 0; padding: 0; }
.ostu-rev-card {
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
padding: 18px 20px;
transition: box-shadow .2s ease, border-color .2s ease;
}
.ostu-rev-card:hover {
box-shadow: var(--shadow-card-hover);
border-color: rgba(37, 99, 235, .3);
}
.woocommerce #reviews #comments ol.commentlist li {
margin: 0 0 var(--space-16, 16px);
padding: 0;
border: 0;
background: transparent;
}
.woocommerce #reviews #comments ol.commentlist li .comment_container {
display: flex;
gap: 14px;
align-items: flex-start;
background: transparent;
border: 0;
padding: 0;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
position: static;
width: 48px;
height: 48px;
border-radius: var(--radius-circle, 50%);
border: 1px solid var(--border);
background: var(--muted);
padding: 0;
margin: 0;
float: none;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
margin: 0;
border: 0;
padding: 0;
flex: 1;
}
.woocommerce #reviews #comments ol.commentlist li .meta {
font-size: var(--fs-xs, 13px);
color: var(--slate-500);
margin-bottom: var(--space-8, 8px);
}
.woocommerce #reviews #comments ol.commentlist li .meta strong {
color: var(--slate-dark);
font-weight: var(--fw-bold, 700);
font-size: 14.5px;
}
.woocommerce #reviews #comments ol.commentlist li .star-rating { font-size: 14px; margin-bottom: 6px; }
.woocommerce #reviews #comments ol.commentlist li .description p { color: var(--slate-600); line-height: 1.7; }
.ostu-rev-verified {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 10px;
padding: 4px 10px;
border-radius: var(--radius-pill, 999px);
background: rgb(37 99 235 / .1);
color: var(--green-dark);
font-size: var(--fs-2xs, 12px);
font-weight: var(--fw-bold, 700);
letter-spacing: .01em;
vertical-align: middle;
}
.ostu-rev-verified__icon {
flex: none;
display: block;
}
.ostu-rev-photos {
display: flex;
flex-wrap: wrap;
gap: var(--space-8, 8px);
margin-top: var(--space-12, 12px);
}
.ostu-rev-photos__item {
display: block;
width: 72px;
height: 72px;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--border);
background: var(--muted);
transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ostu-rev-photos__item:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-card-hover);
border-color: rgba(37, 99, 235, .4);
}
.ostu-rev-photos__img,
.ostu-rev-photos__item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ostu-rev-upload {
display: flex;
flex-direction: column;
gap: 6px;
margin: 0 0 14px;
}
.ostu-rev-upload__label {
font-weight: var(--fw-semibold, 600);
color: var(--slate);
}
.ostu-rev-upload__hint {
font-size: var(--fs-2xs, 12px);
color: var(--slate-500);
}
.ostu-rev-upload__control {
display: flex;
flex-direction: column;
gap: var(--space-12, 12px);
}
.ostu-rev-upload__input {
font: inherit;
color: var(--slate);
padding: 12px 14px;
border: 1px dashed var(--slate-300);
border-radius: var(--radius);
background: var(--muted);
cursor: pointer;
transition: border-color .2s ease, background .2s ease;
}
.ostu-rev-upload__input:hover { border-color: rgba(37, 99, 235, .5); }
.ostu-rev-upload__input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ostu-rev-upload__input::file-selector-button {
font: inherit;
font-weight: var(--fw-semibold, 600);
margin-right: var(--space-12, 12px);
padding: 8px 14px;
border: 0;
border-radius: var(--radius-8, 8px);
background: var(--slate-dark);
color: #fff;
cursor: pointer;
transition: background .2s ease;
}
.ostu-rev-upload__input::file-selector-button:hover { background: #0f172a; }
.ostu-rev-upload__preview {
display: flex;
flex-wrap: wrap;
gap: var(--space-8, 8px);
}
.ostu-rev-upload__preview:empty { display: none; }
.ostu-rev-thumb {
position: relative;
width: 72px;
height: 72px;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--border);
background: var(--muted);
}
.ostu-rev-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ostu-rev-thumb__remove {
position: absolute;
top: 4px;
right: 4px;
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: var(--radius-circle, 50%);
background: rgba(15, 23, 42, .72);
color: #fff;
font-size: 14px;
line-height: var(--lh-flat, 1);
cursor: pointer;
transition: background .2s ease;
}
.ostu-rev-thumb__remove:hover { background: var(--danger); }
.ostu-rev-upload__error {
color: var(--danger-dark);
font-size: var(--fs-xs, 13px);
font-weight: var(--fw-semibold, 600);
}
.ostu-rev-upload__error:empty { display: none; }
.woocommerce-review__verified { display: none; }
#review_form p.stars a {
width: 44px;
height: 44px;
line-height: 44px;
}
#review_form p.stars a::before {
left: 50%;
transform: translateX(-50%);
line-height: 44px;
}
