/* ── Weave Testimonial — Public Styles ───────────────────────────────────── */

.wt-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--wt-font-size, 14px);
    color: var(--wt-font-color, #444);
    background: var(--wt-wrapper-bg, transparent);
    width: 100%;
    margin: 0 auto;
    padding: 24px 8px 32px;
    box-sizing: border-box;
}

.wt-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--wt-font-color, #222);
    margin: 0 0 16px;
}

.wt-google-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85em;
    color: #666;
    margin-bottom: 16px;
}

/* ── Carousel ─────────────────────────────────────────────────────────────── */
.wt-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.wt-track-wrapper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.wt-track {
    display: flex;
    align-items: stretch;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Slides ───────────────────────────────────────────────────────────────── */
.wt-slide {
    flex: 0 0 calc(50% - 10px);
    margin-right: 20px;
    box-sizing: border-box;
    display: flex;
}

.wt-per-1 .wt-slide { flex: 0 0 calc(100%); margin-right: 0; }
.wt-per-3 .wt-slide { flex: 0 0 calc(33.333% - 14px); margin-right: 20px; }
.wt-per-4 .wt-slide { flex: 0 0 calc(25% - 15px); margin-right: 20px; }

/* ── Avatar-top layout ────────────────────────────────────────────────────── */
.wt-layout-avatar-top .wt-slide {
    padding-top: 32px;
}

.wt-card-avatar-top {
    position: relative;
    text-align: center;
    align-items: center;
    padding-top: 40px;
    gap: 6px;
}

.wt-avatar-float {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    background: #fff;
}
.wt-avatar-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.wt-avatar-float .wt-initials {
    width: 64px;
    height: 64px;
    font-size: 22px;
}
.wt-g-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.wt-g-badge svg { width: 14px; height: 14px; }

.wt-name-center {
    display: block;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--wt-font-color, #111);
    margin-top: 30px;
}
.wt-date-center {
    display: block;
    font-size: .82em;
    color: #999;
}
.wt-stars-center {
    justify-content: center;
    align-items: center;
    margin: 6px 0 4px;
}
.wt-verified {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}
.wt-review-body-center {
    text-align: center;
    align-items: center;
}
.wt-review-body-center .wt-read-more {
    align-self: center;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.wt-card {
    background: var(--wt-bg-color, #fff);
    border-radius: 10px;
    border: 1px solid #ececec;
    padding: 20px 20px 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: none;
    transition: box-shadow .2s;
}
.wt-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }

/* ── Card top row (default layout) ───────────────────────────────────────── */
.wt-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wt-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}
.wt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wt-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.5px;
}

.wt-meta {
    flex: 1;
    min-width: 0;
}
.wt-name {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: var(--wt-font-color, #111);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.wt-date {
    font-size: .82em;
    color: #999;
    display: block;
    margin-top: 2px;
}

.wt-g-icon {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* ── Stars ────────────────────────────────────────────────────────────────── */
.wt-stars {
    display: flex;
    gap: 2px;
    line-height: 1;
}
.wt-star { font-size: 1.3em; }
.wt-star.on  { color: var(--wt-star-color, #f9a825); }
.wt-star.off { color: #ddd; }

/* ── Review text ──────────────────────────────────────────────────────────── */
.wt-review-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wt-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--wt-font-color, #444);
    margin: 0;
}

.wt-read-more {
    background: none;
    border: none;
    padding: 0;
    font-size: .9em;
    color: #888;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
    align-self: flex-start;
}
.wt-read-more:hover { color: #555; }

/* ── Nav arrows ───────────────────────────────────────────────────────────── */
.wt-nav {
    flex-shrink: 0;
    align-self: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: background .15s, color .15s;
    padding: 0;
    line-height: 1;
}
.wt-nav:hover    { background: #f3f4f6; color: #333; }
.wt-nav:disabled { opacity: .3; cursor: default; pointer-events: none; }

.wt-layout-avatar-top .wt-prev {
    background: #3a3a3a;
    border-color: #3a3a3a;
    color: #fff;
}
.wt-layout-avatar-top .wt-prev:hover { background: #222; }
.wt-layout-avatar-top .wt-next {
    background: #fff;
    border-color: #d1d5db;
    color: #555;
}

.wt-google-logo { display: block; }

/* ── Popup modal ──────────────────────────────────────────────────────────── */
.wt-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wt-modal[hidden] { display: none; }

.wt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
}

.wt-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px 20px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: wt-modal-in .22s ease;
}
@keyframes wt-modal-in {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.wt-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 20px; color: #aaa;
    cursor: pointer; line-height: 1;
    padding: 4px 6px; border-radius: 4px;
    transition: color .15s, background .15s;
}
.wt-modal-close:hover { color: #333; background: #f5f5f5; }

.wt-modal-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wt-modal-avatar {
    width: 48px; height: 48px;
    border-radius: 50%; overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; color: #fff;
}
.wt-modal-author {
    display: block; font-size: 15px; font-weight: 600; color: #111; line-height: 1.3;
}
.wt-modal-date { font-size: 13px; color: #999; }

.wt-modal-stars .wt-star { font-size: 20px; }

.wt-modal-text {
    font-size: 15px; line-height: 1.7; color: #444; margin: 0;
    white-space: pre-line;
}

.wt-modal-footer {
    display: flex; justify-content: flex-end;
    border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px;
}

/* ── Empty ────────────────────────────────────────────────────────────────── */
.wt-empty { color: #888; font-style: italic; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .wt-slide,
    .wt-per-3 .wt-slide,
    .wt-per-4 .wt-slide { flex: 0 0 100%; margin-right: 0; }
}
@media (max-width: 900px) {
    .wt-per-3 .wt-slide,
    .wt-per-4 .wt-slide { flex: 0 0 calc(50% - 10px); margin-right: 20px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
    .wt-per-4 .wt-slide { flex: 0 0 calc(33.333% - 14px); }
}
