/**
 * Canonical Product Review fallback presentation.
 *
 * Every layout property is namespaced so the card does not depend on legacy
 * theme rules for `.author-hint`, while the legacy classes remain in markup for
 * a seamless UT Finance handoff.
 */
.ut-finance-product-review.author-hint.review {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 70%;
    min-height: 110px;
    margin: 1.5rem 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid #dce5f0;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, .1);
    color: var(--ut-color-primary, #111b44);
    font-family: var(--ut-font-family, inherit);
    font-size: var(--ut-font-size-sm, 14px);
    line-height: 1.6;
}

.ut-finance-product-review.author-hint.review::before {
    position: absolute;
    top: -12px;
    left: 25px;
    border-color: transparent transparent #fff;
    border-style: inset;
    border-width: 0 10.5px 13px;
    content: "";
}

.ut-finance-product-review > .ut-finance-product-review__author-avatar {
    float: left;
    width: 5rem;
    height: 5rem;
    margin: 0 24px 12px 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
}

.ut-finance-product-review__author-avatar img,
.ut-finance-product-review__avatar-placeholder {
    display: grid;
    width: 5rem;
    height: 5rem;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    place-items: center;
}

.ut-finance-product-review__avatar-placeholder {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 800;
}

.ut-finance-product-review > .ut-finance-product-review__author-name {
    margin-top: .5rem;
    padding-top: 10px;
    color: var(--text-primary-color, #050745);
    font-size: 1.25em;
    font-weight: 600;
}

.ut-finance-product-review > .ut-finance-product-review__rating {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: baseline;
    margin: .75rem 0;
}

.ut-finance-product-review__stars {
    display: inline-flex;
    gap: .1rem;
    color: #dba617;
    font-size: 1.25rem;
    line-height: 1;
}

.ut-finance-product-review__star {
    display: inline-block;
    width: 1em;
    overflow: hidden;
    font-style: normal;
}

.ut-finance-product-review__star::before {
    content: "★";
}

.ut-finance-product-review .ut-finance-product-review__star::after {
    content: none;
}

.ut-finance-product-review__star--empty {
    color: #d5d9df;
}

.ut-finance-product-review__star--half {
    background: linear-gradient(90deg, #dba617 50%, #d5d9df 50%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
}

.ut-finance-product-review__rating-value {
    color: #536078;
    font-size: .9rem;
    font-weight: 600;
}

.ut-finance-product-review > .ut-finance-product-review__body {
    min-width: 0;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: var(--ut-font-size-sm, 14px);
    font-style: italic;
    line-height: inherit;
}

.ut-finance-product-review__body > :first-child {
    margin-top: 0;
}

.ut-finance-product-review__body > :last-child {
    margin-bottom: 0;
}

.ut-finance-product-review--editor .ut-finance-product-review__body {
    min-height: 5rem;
    padding: .65rem .75rem;
    border: 1px solid #949494;
    border-radius: .25rem;
    background: #fff;
}

.ut-finance-product-review-editor__counter {
    clear: both;
    color: #646970;
    font-size: 12px;
    text-align: right;
}

@media (max-width: 1024px) {
    .ut-finance-product-review.author-hint.review {
        width: 100%;
    }

    .ut-finance-product-review > .ut-finance-product-review__author-avatar,
    .ut-finance-product-review__author-avatar img,
    .ut-finance-product-review__avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .ut-finance-product-review > .ut-finance-product-review__author-avatar {
        overflow: hidden;
    }

    .ut-finance-product-review > .ut-finance-product-review__author-name {
        padding-top: 16px;
    }

    .ut-finance-product-review > .ut-finance-product-review__body {
        clear: both;
        padding: 0 10px 10px;
    }
}
