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

.reviews-customer-cards.page-section {
    padding: 50px 20px;
    background: #fff;
}

.reviews-customer-cards .page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-customer-cards .reviews-section-title {
    margin: 0 0 1rem;
    text-align: center;
    color: #333;
    font-size: 30px;
}

.reviews-customer-cards .reviews-card-grid {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-customer-cards .reviews-card-grid::-webkit-scrollbar {
    display: none;
}

.reviews-customer-cards .reviews-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.reviews-customer-cards .reviews-carousel-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #d9dde3;
    border-radius: 50%;
    background: #fff;
    color: #1088cc;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.reviews-customer-cards .reviews-carousel-arrow:hover:not(:disabled) {
    border-color: #1088cc;
    background: #1088cc;
    color: #fff;
}

.reviews-customer-cards .reviews-carousel-arrow:disabled {
    cursor: default;
    opacity: .35;
}

.reviews-customer-cards .reviews-card {
    flex: 0 0 calc((100% - 52px) / 3);
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.reviews-customer-cards .reviews-card-image-wrap {
    position: relative;
}

.reviews-customer-cards .reviews-card-image {
    display: none;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.reviews-customer-cards .reviews-card-image.is-active {
    display: block;
}

.reviews-customer-cards .reviews-card-image-nav {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    cursor: pointer;
    transform: translateY(-50%);
}

.reviews-customer-cards .reviews-card-image-nav.is-prev {
    left: 10px;
}

.reviews-customer-cards .reviews-card-image-nav.is-next {
    right: 10px;
}

.reviews-customer-cards .reviews-card-content {
    padding: 26px 30px 28px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.reviews-customer-cards .reviews-card-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.reviews-customer-cards .reviews-card-stars {
    color: #ffb400;
    letter-spacing: 1px;
}

.reviews-customer-cards .reviews-quote {
    margin-top: -6px;
    color: #e5f3fb;
    font-size: 62px;
    line-height: 1;
    font-weight: 700;
}

.reviews-customer-cards .reviews-card-text-wrap {
    min-height: calc(10.2em + 38px);
    margin-bottom: 1rem;
}

.reviews-customer-cards .reviews-card p {
    height: 10.2em;
    margin: 0;
    overflow: hidden;
    color: #333;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.reviews-customer-cards .reviews-card-read-more {
    display: block;
    margin-top: .5rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: #1088cc;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reviews-customer-cards .reviews-card-read-more[hidden] {
    display: none;
}

.reviews-customer-cards .reviews-card-read-more:hover {
    color: #086ba2;
}

.reviews-customer-cards .reviews-card-order-date {
    display: block;
    min-height: 17px;
    line-height: 17px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
}

.reviews-customer-cards .reviews-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reviews-customer-cards .reviews-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #005ca8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.reviews-customer-cards .reviews-card-author strong,
.reviews-customer-cards .reviews-card-author span {
    display: block;
}

.reviews-customer-cards .reviews-card-author strong {
    color: #333;
}

.reviews-customer-cards .reviews-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

.reviews-customer-cards .reviews-note strong {
    color: #333;
}

.reviews-customer-cards .reviews-dialog {
    position: fixed;
    inset: 0;
    width: min(620px, calc(100% - 32px));
    max-height: min(80vh, 720px);
    margin: auto;
    overflow: auto;
    border: 0;
    border-radius: 14px;
    padding: 32px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.reviews-customer-cards .reviews-dialog::backdrop {
    background: rgba(20, 28, 36, .62);
}

.reviews-customer-cards .reviews-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.reviews-customer-cards .reviews-dialog-header h3 {
    margin: 4px 0 0;
    color: #333;
    font-size: 24px;
}

.reviews-customer-cards .reviews-dialog-stars {
    min-height: 24px;
    color: #ffb400;
    font-size: 20px;
    letter-spacing: 2px;
}

.reviews-customer-cards .reviews-dialog-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    color: #333;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.reviews-customer-cards .reviews-dialog-quote {
    position: relative;
    margin-bottom: 22px;
    border-left: 4px solid #1088cc;
    border-radius: 0 10px 10px 0;
    padding: 22px 24px;
    background: #f6f9fb;
}

.reviews-customer-cards .reviews-dialog-quote > span {
    position: absolute;
    top: 8px;
    right: 18px;
    color: #d9edf8;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.reviews-customer-cards .reviews-dialog-quote p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #333;
    line-height: 1.7;
    white-space: pre-line;
}

.reviews-customer-cards .reviews-dialog-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.reviews-customer-cards .reviews-dialog-author strong,
.reviews-customer-cards .reviews-dialog-author span {
    display: block;
}

.reviews-customer-cards .reviews-dialog-author strong {
    color: #333;
}

.reviews-customer-cards .reviews-dialog-author span {
    margin-top: 3px;
    color: #999;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.reviews-customer-cards .reviews-dialog-author span:empty {
    display: none;
}

@media (max-width: 900px) {
    .reviews-customer-cards .reviews-card {
        flex-basis: calc((100% - 26px) / 2);
    }
}

@media (max-width: 520px) {
    .reviews-customer-cards .reviews-card {
        flex-basis: 100%;
    }

    .reviews-customer-cards .reviews-dialog {
        padding: 24px 20px;
    }

    .reviews-customer-cards .reviews-dialog-header h3 {
        font-size: 21px;
    }

    .reviews-customer-cards .reviews-dialog-quote {
        padding: 18px;
    }
}
