.nn-etsy-home-replacement {
    width: 100%;
}

.nn-etsy-home-replacement--stats {
    padding: 28px 0;
    background: #fff;
}

.nn-etsy-trust-widget {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 6vw, 92px);
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
    color: #111820;
}

.nn-etsy-trust-widget__brand {
    flex: 0 0 auto;
    color: #f1641e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 700;
    line-height: 0.9;
    text-decoration: none;
}

.nn-etsy-trust-widget__brand:hover,
.nn-etsy-trust-widget__brand:focus {
    color: #d65313;
}

.nn-etsy-trust-widget__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: clamp(24px, 5vw, 92px);
    width: min(760px, 100%);
}

.nn-etsy-trust-widget__metric {
    display: grid;
    gap: 8px;
    text-align: center;
}

.nn-etsy-trust-widget__metric strong {
    color: #111820;
    font-family: inherit;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1;
}

.nn-etsy-trust-widget__metric span {
    color: #111820;
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 700;
    line-height: 1.25;
}

.nn-etsy-review-carousel {
    --nn-review-gap: 16px;
    --nn-review-card-width: 310px;
    width: 100%;
    overflow: hidden;
}

.nn-etsy-review-carousel__viewport {
    overflow: hidden;
    width: 100%;
    padding: 4px 0 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.nn-etsy-review-carousel__track {
    display: flex;
    gap: var(--nn-review-gap);
    width: max-content;
    animation: nn-etsy-reviews-left 44s linear infinite;
}

.nn-etsy-review-carousel:hover .nn-etsy-review-carousel__track,
.nn-etsy-review-carousel:focus-within .nn-etsy-review-carousel__track {
    animation-play-state: paused;
}

.nn-etsy-review-card {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 var(--nn-review-card-width);
    min-height: 188px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(17, 24, 32, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 32, 0.08);
    color: #111820;
}

.nn-etsy-review-card__stars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #f1641e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.nn-etsy-review-card__stars span:last-child {
    color: #4c5560;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nn-etsy-review-card p {
    margin: 0;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.55;
}

.nn-etsy-review-card footer {
    color: #6a737d;
    font-size: 13px;
    font-weight: 700;
}

@keyframes nn-etsy-reviews-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - (var(--nn-review-gap) / 2)));
    }
}

@media (max-width: 767px) {
    .nn-etsy-home-replacement--stats {
        padding: 22px 0;
    }

    .nn-etsy-trust-widget {
        flex-direction: column;
        gap: 18px;
        width: min(100% - 28px, 420px);
    }

    .nn-etsy-trust-widget__metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .nn-etsy-trust-widget__metric strong {
        font-size: 28px;
    }

    .nn-etsy-trust-widget__metric span {
        font-size: 13px;
    }

    .nn-etsy-review-carousel {
        --nn-review-card-width: 272px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nn-etsy-review-carousel__track {
        width: 100%;
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .nn-etsy-review-card {
        scroll-snap-align: start;
    }
}
