
.content{
    max-width: 1200px;
    margin: auto;
}
.nsreviews {
    --nsreviews-gap: 1.5rem;
    --nsreviews-card-bg: #fff;
    --nsreviews-border: #e5e7eb;
    --nsreviews-accent: #ff8700;
    font-family: inherit;
}

.nsreviews-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 60%);
    border-radius: 1rem;
    border: 1px solid var(--nsreviews-border);
}

.nsreviews-hero__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.nsreviews-hero__text {
    margin: 0;
    color: #4b5563;
    max-width: 48rem;
}

.nsreviews-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 48rem;
}

.nsreviews-summary__item {
    padding: 1rem;
    border: 1px solid var(--nsreviews-border);
    border-radius: 0.75rem;
    background: var(--nsreviews-card-bg);
}

.nsreviews-summary__label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

.nsreviews-summary__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.35rem;
}

.nsreviews-summary__value {
    font-size: 1.75rem;
    line-height: 1.2;
}

.nsreviews-stars--summary {
    font-size: 1.125rem;
}

.nsreviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.nsreviews-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;

    li{
        padding: 0;
        margin: 0;
    }
}

.nsreviews-tabs__item a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--nsreviews-border);
    text-decoration: none;
    color: inherit;
}

.nsreviews-tabs__item.is-active a {
    background: var(--nsreviews-accent);
    border-color: var(--nsreviews-accent);
    color: #fff;
}

.nsreviews-product-filter__select {
    min-width: 14rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--nsreviews-border);
}

.nsreviews-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--nsreviews-gap);
}

@media (min-width: 768px) {
    .nsreviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nsreviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nsreviews-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--nsreviews-border);
    border-radius: 0.75rem;
    background: var(--nsreviews-card-bg);
    height: 100%;
}

.nsreviews-card__header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.nsreviews-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nsreviews-card__name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.nsreviews-card__meta {
    flex: 1 1 auto;
    min-width: 0;
}

.nsreviews-stars__item {
    color: #d1d5db;
}

.nsreviews-stars__item.is-active {
    color: #f59e0b;
}

.nsreviews-card__text {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.nsreviews-card__read-more {
    border: 0;
    background: none;
    color: var(--nsreviews-accent);
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.nsreviews-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.nsreviews-badge {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

.nsreviews-badge a {
    color: inherit;
}

.nsreviews-badge--google { color: #1a73e8; }
.nsreviews-badge--trustpilot { color: #00b67a; }
.nsreviews-badge--community { color: #6b7280; }

.nsreviews-card__date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.nsreviews-load-more-wrap {
    margin-top: 2rem;
    text-align: center;
}

.nsreviews-load-more,
.nsreviews-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 0;
    background: var(--nsreviews-accent);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.nsreviews-list__title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.nsreviews-product__header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.nsreviews-product__header-text {
    flex: 1 1 16rem;
}

.nsreviews-product__title {
    margin: 0 0 0.5rem;
}

.nsreviews-product__subtitle {
    margin: 0;
    color: #6b7280;
}

.nsreviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
}

/* Product reviews section */
.nsreviews-product {
    --nsreviews-product-navy: #0b1c3f;
    --nsreviews-product-blue: #2563eb;
    --nsreviews-product-card-bg: #f8f9fb;
    --nsreviews-product-border: #e4e8ef;
    --nsreviews-product-text: #4b5563;
    --nsreviews-product-muted: #6b7280;
    --nsreviews-product-star: #fbbf24;
}

.nsreviews-product__header {
    align-items: center;
    margin-bottom: 2rem;
}

.nsreviews-product__title {
    color: var(--nsreviews-product-navy);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.nsreviews-product__subtitle {
    color: var(--nsreviews-product-muted);
    font-size: 1rem;
}

.nsreviews-product .nsreviews-btn--header {
    flex-shrink: 0;
    align-self: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    background: var(--nsreviews-product-navy);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nsreviews-product .nsreviews-btn--header:hover,
.nsreviews-product .nsreviews-btn--header:focus {
    background: #091630;
    color: #fff;
}

.nsreviews-product .nsreviews-grid--product {
    gap: 1.25rem;
    align-items: stretch;
}

.nsreviews-product .nsreviews-card--product {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--nsreviews-product-border);
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(15, 28, 63, 0.04);
    box-sizing: border-box;
    background: #fff;
}

.nsreviews-product .nsreviews-card--product:nth-child(odd) {
    background: var(--nsreviews-product-card-bg);
}

.nsreviews-product .nsreviews-card__header--product {
    align-items: flex-start;
    gap: 0.75rem;
}

.nsreviews-product .nsreviews-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--nsreviews-product-blue);
    font-size: 0.8125rem;
    font-weight: 600;
}

.nsreviews-product .nsreviews-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nsreviews-product .nsreviews-card__name {
    margin: 0;
    color: var(--nsreviews-product-navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.nsreviews-product .nsreviews-card__rating {
    margin-top: 0;
}

.nsreviews-product .nsreviews-stars {
    display: flex;
    gap: 0.1875rem;
    line-height: 1;
}

.nsreviews-product .nsreviews-stars__item {
    color: #d1d5db;
    font-size: 1.1875rem;
}

.nsreviews-product .nsreviews-stars__item.is-active {
    color: var(--nsreviews-product-star);
}

.nsreviews-product .nsreviews-card__body--product {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(1.65em * 5);
}

.nsreviews-product .nsreviews-card__text {
    margin: 0;
    color: var(--nsreviews-product-text);
    font-style: italic;
    line-height: 1.65;
}

.nsreviews-product .nsreviews-card__text-clamp {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1.65em * 4);
    max-height: calc(1.65em * 4);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.nsreviews-product .nsreviews-card--product.is-expanded .nsreviews-card__body--product {
    min-height: 0;
}

.nsreviews-product .nsreviews-card__read-more--inline {
    display: inline;
    margin-left: 0.25rem;
    border: 0;
    background: none;
    padding: 0;
    color: var(--nsreviews-product-blue);
    font-size: inherit;
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.nsreviews-product .nsreviews-card__read-more--inline:hover,
.nsreviews-product .nsreviews-card__read-more--inline:focus {
    text-decoration: underline;
}

.nsreviews-product .nsreviews-card__footer--product {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 0.25rem;
}

.nsreviews-product .nsreviews-source-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--nsreviews-product-blue);
    font-weight: 500;
    text-decoration: none;
}

.nsreviews-product .nsreviews-source-link:hover,
.nsreviews-product .nsreviews-source-link:focus {
    text-decoration: none;
}

.nsreviews-product .nsreviews-source-link--static {
    text-decoration: none;
    cursor: default;
}

.nsreviews-product .nsreviews-source-link__logo {
    display: block;
    flex-shrink: 0;
    height: 1.375rem;
    width: auto;
}

.nsreviews-product .nsreviews-source-link__logo--google {
    height: 1.25rem;
    transform: translateY(0.15rem);
    width: auto;
}

.nsreviews-product .nsreviews-source-link__logo--trustpilot {
    height: 1.25rem;
}

.nsreviews-product .nsreviews-source-link__arrow {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nsreviews-product .nsreviews-source-link:hover .nsreviews-source-link__arrow,
.nsreviews-product .nsreviews-source-link:focus .nsreviews-source-link__arrow {
    transform: translateX(0.25rem);
}

.nsreviews-product .nsreviews-badge--community-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: #eef1f5;
    color: #5b6472;
    font-size: 0.8125rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .nsreviews-product__header {
        align-items: flex-start;
    }

    .nsreviews-product .nsreviews-btn--header {
        align-self: flex-start;
    }
}

/* Listing reviews page */
.nsreviews-list {
    --nsreviews-list-navy: #0b1c3f;
    --nsreviews-list-blue: #2563eb;
    --nsreviews-list-card-bg: #f8f9fb;
    --nsreviews-list-border: #e4e8ef;
    --nsreviews-list-text: #4b5563;
    --nsreviews-list-muted: #6b7280;
    --nsreviews-list-star: #fbbf24;
    --nsreviews-list-tab-bg: #eef1f5;
    max-width: 75rem;
    margin-inline: auto;
    padding: 2rem 1rem;
}

.nsreviews-list.is-filter-loading [data-nsreviews-grid] {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nsreviews-list.is-filter-loading .nsreviews-product-filter__select {
    cursor: wait;
}

.nsreviews-list .nsreviews-list__toolbar.is-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.nsreviews-list__header {
    margin-bottom: 1.75rem;
}

.nsreviews-list .nsreviews-list__title {
    margin: 0 0 2.5rem;
    color: var(--nsreviews-list-navy);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.nsreviews-list .nsreviews-list__subtitle {
    margin: -0.5rem 0 1.25rem;
    color: var(--nsreviews-list-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.nsreviews-list .nsreviews-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.nsreviews-list .nsreviews-tabs__item a {
    padding: 6px 16px;
    border: 1px solid #d7dde6;
    background: var(--nsreviews-list-tab-bg);
    color: var(--nsreviews-list-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.nsreviews-list .nsreviews-tabs__item a:hover,
.nsreviews-list .nsreviews-tabs__item a:focus {
    background: #e4e9f0;
    color: var(--nsreviews-list-muted);
}

.nsreviews-list .nsreviews-tabs__item.is-active a {
    background: var(--nsreviews-list-navy);
    color: #fff;
}

.nsreviews-list .nsreviews-product-filter__select {
    min-width: 12rem;
    padding: 0.5rem 2rem 0.5rem 1.75rem;
    border: 1px solid var(--nsreviews-list-border);
    border-radius: 0.375rem;
    background: #f8f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    color: var(--nsreviews-list-navy);
    font-size: 0.875rem;
}

/* Masonry grid — positioned by reviews-frontend.js (shortest-column packing) */
.nsreviews-list .nsreviews-grid--list {
    position: relative;
    display: block;
    --nsreviews-list-masonry-gap: 1.25rem;
}

.nsreviews-list .nsreviews-grid--list.is-masonry-ready .nsreviews-card--list {
    margin-bottom: 0;
}

.nsreviews-list .nsreviews-card--list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    height: auto;
    margin-bottom: var(--nsreviews-list-masonry-gap);
    padding: 1.5rem;
    border: 1px solid var(--nsreviews-list-border);
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(15, 28, 63, 0.04);
    box-sizing: border-box;
    background: #fff;
}

.nsreviews-list .nsreviews-card--list[data-source="community"] {
    background: var(--nsreviews-list-card-bg);
}

.nsreviews-list .nsreviews-card__header--list {
    align-items: flex-start;
    gap: 0.75rem;
}

.nsreviews-list .nsreviews-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--nsreviews-list-blue);
    font-size: 0.8125rem;
    font-weight: 600;
}

.nsreviews-list .nsreviews-card__meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.nsreviews-list .nsreviews-card__name {
    margin: 0;
    color: var(--nsreviews-list-navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.nsreviews-list .nsreviews-card__rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nsreviews-list .nsreviews-card__rating {
    flex: 0 1 auto;
    min-width: 0;
}

.nsreviews-list .nsreviews-stars {
    display: flex;
    gap: 0.1875rem;
    line-height: 1;
}

.nsreviews-list .nsreviews-stars__item {
    color: #d1d5db;
    font-size: 1.1875rem;
}

.nsreviews-list .nsreviews-stars__item.is-active {
    color: var(--nsreviews-list-star);
}

.nsreviews-list .nsreviews-card__date {
    flex-shrink: 0;
    color: var(--nsreviews-list-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.nsreviews-list .nsreviews-card__text {
    margin: 0;
    color: var(--nsreviews-list-text);
    font-style: italic;
    line-height: 1.65;
}

.nsreviews-list .nsreviews-card__footer--list {
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.nsreviews-list .nsreviews-source-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--nsreviews-list-blue);
    font-weight: 500;
    text-decoration: none;
}

.nsreviews-list .nsreviews-source-link:hover,
.nsreviews-list .nsreviews-source-link:focus {
    text-decoration: none;
}

.nsreviews-list .nsreviews-source-link--static {
    text-decoration: none;
    cursor: default;
}

.nsreviews-list .nsreviews-source-link__logo {
    display: block;
    flex-shrink: 0;
    height: 1.375rem;
    width: auto;
}

.nsreviews-list .nsreviews-source-link__logo--google {
    height: 1.25rem;
    transform: translateY(0.1rem);
    width: auto;
}

.nsreviews-list .nsreviews-source-link__logo--trustpilot {
    height: 1.25rem;
    transform: translateY(0.05rem);
}

.nsreviews-list .nsreviews-source-link__arrow {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nsreviews-list .nsreviews-source-link:hover .nsreviews-source-link__arrow,
.nsreviews-list .nsreviews-source-link:focus .nsreviews-source-link__arrow {
    transform: translateX(0.25rem);
}

.nsreviews-list .nsreviews-badge--community-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 12px;
    border-radius: 50px;
    background: #eef1f5;
    color: #5b6472;
    font-size: 0.8125rem;
    font-weight: 500;
}

.nsreviews-list .nsreviews-load-more-wrap {
    margin-top: 1.25rem;
    text-align: center;
}

.nsreviews-list .nsreviews-load-more {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    min-width: 18rem;
    padding: 0.875rem 2rem;
    border: 1px solid #000000;
    border-radius: 0;
    background: #fff;
    color: var(--nsreviews-list-navy);
    font-weight: 600;
    cursor: pointer;
}

.nsreviews-list .nsreviews-load-more::before {
    content: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlLXdpZHRoPSIwIi8+PGcgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMiAzYTEgMSAwIDAgMSAxIDF2MTMuNTg2bDUuMjkzLTUuMjkzYTEgMSAwIDAgMSAxLjQxNCAxLjQxNGwtNyA3YTEgMSAwIDAgMS0xLjQxNCAwbC03LTdhMSAxIDAgMSAxIDEuNDE0LTEuNDE0TDExIDE3LjU4NlY0YTEgMSAwIDAgMSAxLTEiIGZpbGw9IiMwMDAiLz48L3N2Zz4=");
    font-size: 1rem;
    line-height: 1;
    width: 24px;
    height: 24px;
}

.nsreviews-list .nsreviews-load-more:hover,
.nsreviews-list .nsreviews-load-more:focus {
    border-color: var(--nsreviews-list-navy);
    background: #f9fafb;
}

@media (max-width: 767px) {
    .nsreviews-list .nsreviews-list__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nsreviews-list .nsreviews-product-filter__select {
        width: 100%;
    }

    .nsreviews-list .nsreviews-card__rating-row {
        flex-wrap: wrap;
    }
}

/* Hide TYPO3 default CE header for product reviews plugin to avoid duplicate title block. */
.frame-type-nsreviews_productreviews > h2,
.frame-type-nsreviews_productreviews > h3,
.frame-type-nsreviews_reviewslist > h2,
.frame-type-nsreviews_reviewslist > h3 {
    display: none;
}
