.asw-customer-reviews {
    --asw-reviews-primary: #315c49;
    --asw-reviews-text: #242824;
    --asw-reviews-muted: #747b75;
    --asw-reviews-surface: #ffffff;
    --asw-reviews-soft: #e9ece4;
    --asw-reviews-border: rgba(49, 92, 73, 0.12);
    position: relative;
    width: 100%;
    padding: 72px 20px;
    direction: rtl;
    color: var(--asw-reviews-text);
    background: var(--asw-reviews-soft);
    overflow: hidden;
    isolation: isolate;
}

.asw-customer-reviews,
.asw-customer-reviews *,
.asw-customer-reviews *::before,
.asw-customer-reviews *::after {
    box-sizing: border-box;
}

.asw-customer-reviews__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}

.asw-customer-reviews__header {
    width: min(100%, 760px);
    margin-inline: auto;
    margin-bottom: 40px;
    text-align: center;
}

.asw-customer-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--asw-reviews-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.asw-customer-reviews__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 10%, transparent);
}

.asw-customer-reviews__title {
    margin: 0;
    color: var(--asw-reviews-text);
    font-family: inherit;
    font-size: clamp(28px, 3.3vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.asw-customer-reviews__subtitle {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--asw-reviews-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.asw-customer-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.asw-customer-reviews--horizontal .asw-customer-reviews__grid {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding-block: 8px 18px;
    padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--asw-reviews-primary) 32%, transparent) transparent;
}

.asw-customer-reviews--horizontal .asw-customer-reviews__card {
    width: 360px;
    max-width: min(90vw, 560px);
    scroll-snap-align: start;
}

.asw-customer-reviews__card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: var(--asw-reviews-text);
    background: var(--asw-reviews-surface);
    border: 1px solid var(--asw-reviews-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(31, 54, 42, 0.055);
    transform: translateZ(0);
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 280ms ease;
}

.asw-customer-reviews--equal-height .asw-customer-reviews__card {
    height: 100%;
}

.asw-customer-reviews__card:hover {
    border-color: color-mix(in srgb, var(--asw-reviews-primary) 28%, transparent);
    box-shadow: 0 18px 44px rgba(31, 54, 42, 0.1);
    transform: translateY(-4px);
}

.asw-customer-reviews--preset-clean {
    background: #ffffff;
}

.asw-customer-reviews--preset-clean .asw-customer-reviews__card {
    border-radius: 4px;
    box-shadow: none;
}

.asw-customer-reviews--preset-clean .asw-customer-reviews__card:hover {
    box-shadow: none;
}

.asw-customer-reviews--preset-glass {
    background:
        radial-gradient(circle at 12% 10%, rgba(192, 215, 196, 0.35), transparent 35%),
        linear-gradient(135deg, #edf1ea, #f8faf7);
}

.asw-customer-reviews--preset-glass .asw-customer-reviews__card {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 42px rgba(31, 54, 42, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.asw-customer-reviews__body {
    min-width: 0;
}

.asw-customer-reviews__rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 14px;
    direction: ltr;
}

.asw-customer-reviews__star {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.asw-customer-reviews__star--filled {
    color: #c9a646;
}

.asw-customer-reviews__star--empty {
    color: #d8ddd6;
}

.asw-customer-reviews__text {
    margin: 0 0 24px;
    color: #555d57;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.asw-customer-reviews__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(49, 92, 73, 0.09);
}

.asw-customer-reviews__identity {
    min-width: 0;
    flex: 1 1 auto;
}

.asw-customer-reviews__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.asw-customer-reviews__name {
    color: #222622;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.asw-customer-reviews__product {
    margin-top: 2px;
    color: #878e88;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.asw-customer-reviews__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    color: var(--asw-reviews-primary);
    background: color-mix(in srgb, var(--asw-reviews-primary) 8%, transparent);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.asw-customer-reviews__verified svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.asw-customer-reviews__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #37433c;
    background: #eef1eb;
    border: 1px solid #d5dbd1;
    border-radius: 50%;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.asw-customer-reviews__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.asw-customer-reviews__avatar svg {
    width: 45%;
    height: 45%;
}

.asw-customer-reviews__empty {
    padding: 24px;
    color: #626862;
    background: #f5f7f4;
    border: 1px dashed #cfd6cc;
    border-radius: 14px;
    text-align: center;
}

@media (max-width: 1024px) {
    .asw-customer-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .asw-customer-reviews {
        padding: 56px 14px;
    }

    .asw-customer-reviews__header {
        margin-bottom: 30px;
    }

    .asw-customer-reviews__title {
        font-size: clamp(27px, 9vw, 38px);
    }

    .asw-customer-reviews__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .asw-customer-reviews__card {
        padding: 20px;
    }

    .asw-customer-reviews__card:hover {
        transform: none;
    }

    .asw-customer-reviews--horizontal .asw-customer-reviews__card {
        width: 84vw;
    }
}

@media (hover: none), (pointer: coarse) {
    .asw-customer-reviews__card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asw-customer-reviews__grid {
        scroll-behavior: auto;
    }

    .asw-customer-reviews__card {
        transition: none;
    }
}
