/* ── Testimonial Widget ────────────────────────────────────────────────────── */

.dbw-tm {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-sizing: border-box;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ── Quote Icon ── */

.dbw-tm__quote-icon {
    color: #7c3aed;
    opacity: 0.18;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 14px;
}

.dbw-tm__quote-icon svg {
    display: block;
    width: 1em;
    height: auto;
}

/* ── Rating ── */

.dbw-tm__rating--top {
    margin-bottom: 14px;
}

.dbw-tm__rating--bottom {
    margin-top: 14px;
}

.dbw-tm__stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dbw-tm__star--filled {
    color: #f59e0b;
    display: inline-flex;
    font-size: 16px;
}

.dbw-tm__star--empty {
    color: #cbd5e1;
    display: inline-flex;
    font-size: 16px;
}

.dbw-tm__star--filled svg,
.dbw-tm__star--empty svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* ── Quote Text ── */

.dbw-tm__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    flex: 1;
}

/* ── Divider ── */

.dbw-tm__divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* ── Author ── */

.dbw-tm__author {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* row layout: photo + info side by side */
.dbw-tm__author--row {
    flex-direction: row;
    align-items: center;
}

/* column layout: photo above info */
.dbw-tm__author--column {
    flex-direction: column;
    align-items: flex-start;
}

/* alignment variants */
.dbw-tm__author--align-center {
    justify-content: center;
    text-align: center;
}

.dbw-tm__author--align-right {
    justify-content: flex-end;
    text-align: right;
}

.dbw-tm__author--align-center.dbw-tm__author--column {
    align-items: center;
}

.dbw-tm__author--align-right.dbw-tm__author--column {
    align-items: flex-end;
}

/* ── Avatar ── */

.dbw-tm__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* ── Author info ── */

.dbw-tm__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.dbw-tm__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.dbw-tm__role {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}
