:root {
    --brand-yellow: #F7CD0A;
    --brand-blue: #162533;
}

.reviews {
    position: relative;
}

.reviews-card {
    background: radial-gradient(circle at 100% 100%, #162533 0, #162533 8px, transparent 8px) 0% 0% / 10px 10px no-repeat, radial-gradient(circle at 0 100%, #162533 0, #162533 8px, transparent 8px) 100% 0% / 10px 10px no-repeat, radial-gradient(circle at 100% 0, #162533 0, #162533 8px, transparent 8px) 0% 100% / 10px 10px no-repeat, radial-gradient(circle at 0 0, #162533 0, #162533 8px, transparent 8px) 100% 100% / 10px 10px no-repeat, linear-gradient(#162533, #162533) 50% 50% / calc(100% - 4px) calc(100% - 20px) no-repeat, linear-gradient(#162533, #162533) 50% 50% / calc(100% - 20px) calc(100% - 4px) no-repeat, linear-gradient(0deg, transparent 0%, #041525 0%, rgba(255, 255, 255, .4) 100%);
    border-radius: 10px;
}

.reviews__wrapper {
    width: 100%;
}

[data-reviews-horizontal] .reviews__wrapper {
    background-image: url(../images/reviews/shopperapproved-logo-bg.svg);
    background-repeat: no-repeat;
    background-position: -12px 5px;
    background-size: auto 100%;
    padding: 1.5rem;
}

.reviews__row {
    display: flex;
    gap: 3rem;
    min-height: 8rem;
}

.reviews-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.reviews-title span {
    color: var(--brand-yellow);
}

.reviews-list {
    padding: 0;
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.reviews-total {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    color: #fff;
}

.reviews-total__rating {
    padding-top: 30px;
    font-size: 4.5rem;
    font-weight: 600;
}

.reviews-total__description {
    font-size: 14px;
    text-transform: uppercase;
}

.reviews-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-item__text {
    margin-bottom: 1.25rem;
    line-height: 1.2;
    max-width: 18rem;
}

.reviews-spinner-wrapper {
    position: absolute;
    top: 1px;
    left: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 2px);
    height: 100%;
    border-radius: 10px;
    background-color: var(--brand-blue);
    z-index: 2;
}

.rating-container {
    padding-bottom: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-bar {
    flex-grow: 1;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.22);
    position: relative;
    max-width: 112px;
    width: 112px;
    margin: 0 1rem 0 0.5rem;
}

.rating-row strong {
    font-weight: 600;
}

.rating-type {
    width: 3rem;
}

.rating-fill {
    height: 100%;
    background-color: white;
}

.reviews-heading {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.reviews-heading::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    width: 31px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px #07bcfa;
}

.reviews-heading::after {
    content: '';
    position: absolute;
    left: 40px;
    bottom: 0;
    height: 10px;
    width: 117px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 30px 0px #07bcfa;
}


.reviews-heading__counter {
    font-family: 'Death Star';
    font-size: 2rem;
    line-height: 1;
    font-weight: 500;
    color: var(--brand-yellow);
}

.reviews-heading__title {
    font-size: clamp(36px, calc(2.25rem + ((1vw - 4.8px) * 4.186)), 72px);
    font-weight: 400;
    letter-spacing: 0;
    word-spacing: 20px;
}

.reviews-total-procentage {
    color: #fff;
}

.reviews-total-procentage__level {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 600;
}

.reviews-total-procentage__description {
    font-size: 14px;
    text-transform: uppercase;
    max-width: 12rem;
    margin-top: 1rem;
}

.reviews-full-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-full__row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.review-full__image {
    width: 92px;
    height: 104px;
    background-color: #3a4854;
    flex-shrink: 0;
}

.review-full__image img {
    width: 92px;
    height: 104px;
    object-fit: cover;
}

.review-full__content {
    width: 100%;
}

.review-full__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-full__name {
    font-weight: bold;
}

.reviews-content {
    width: 100%;
}

.review-button {
    width: 100%;
    border: 2px solid rgba(7, 188, 250, 1);
    color: #fff;
    background: rgba(1, 14, 25, 0.7);
    border-radius: 23px;
    margin-top: 2rem;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Barlow';
    font-weight: 800;
    padding: 1rem;
    cursor: pointer;
    box-shadow: 0px 0px 5px 0px #07bcfa;
    transition: box-shadow 0.3s;
}

.review-button:hover {
    box-shadow: 0px 0px 15px 0px #07bcfa;
}

.reviews-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: reviews-spin 1s linear infinite;
}

@keyframes reviews-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[data-reviews-vertical].reviews {
    padding-top: 8rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
}

[data-reviews-vertical] .reviews-total {
    align-items: flex-start;
    margin-bottom: 2rem;
}

[data-reviews-vertical] .reviews-spinner-wrapper {
    top: 0;
    left: 0;
}

[data-reviews-vertical] .reviews-total__rating {
    font-size: 5.5rem;
    line-height: 1;
}

@media (max-width: 992px) {
    [data-reviews-horizontal] .reviews__wrapper {
        background-image: none;
    }
}

@media (max-width: 768px) {
    .reviews-list {
        flex-direction: column;
    }

    .review-item__text {
        max-width: 100%;
    }

    .review-full__row {
        gap: 1rem;
    }

    .review-full__heading {
        flex-wrap: wrap;
    }

    .reviews-heading__title {
        font-size: 3.5rem;
    }

    [data-reviews-vertical].reviews {
        padding-top: 2.5rem;
    }

    [data-reviews-horizontal] .reviews__row {
        gap: 2rem;
    }

    [data-reviews-vertical] .reviews__row {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    [data-reviews-horizontal] .reviews__wrapper {
        background-image: url(../images/reviews/shopperapproved-logo-bg.svg);
        background-position-x: calc(50% + 45px);
        background-position-y: -5px;
        background-size: 480px 240px;
    }

    [data-reviews-horizontal] .reviews__row {
        flex-direction: column;
    }

    .reviews-total__rating {
        padding-top: 0;
    }
}