.amx-reviews-widget,
.amx-reviews-widget * {
    box-sizing: border-box;
}

.amx-reviews-widget {
    --amx-gap: 22px;
    --amx-green: #159662;
    --amx-red: #EA2F14;
    --amx-yellow: #f6b800;
    --amx-dark: #101828;
    --amx-muted: #667085;
    --amx-card: #ffffff;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 12px 4px 18px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--amx-dark);
    background: transparent !important;
}

.amx-reviews-header,
.amx-carousel-shell,
.amx-carousel-viewport,
.amx-carousel-track,
.amx-dots {
    background: transparent !important;
}

.amx-reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.amx-reviews-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amx-red);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.amx-reviews-kicker span {
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background: var(--amx-red);
    position: relative;
    display: inline-block;
    box-shadow: none;
}

.amx-reviews-kicker span:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 7px;
    height: 11px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.amx-reviews-header h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.025em;
    color: var(--amx-dark);
}

.amx-reviews-header p {
    max-width: 690px;
    margin: 7px 0 0;
    color: var(--amx-muted);
    font-size: 13px;
    line-height: 1.5;
}

.amx-score-box {
    min-width: 116px;
    padding: 9px 11px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: none;
    text-align: center;
}

.amx-score-box strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: var(--amx-dark);
    font-weight: 900;
}

.amx-score-box .amx-stars {
    justify-content: center;
    margin-top: 6px;
}

.amx-carousel-shell {
    position: relative;
}

.amx-carousel-viewport {
    overflow: hidden;
    padding: 4px 2px 10px;
    width: 100%;
}

.amx-carousel-track {
    display: flex;
    gap: var(--amx-gap);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.amx-review-card {
    flex: 0 0 calc((100% - (var(--amx-visible, 3) - 1) * var(--amx-gap)) / var(--amx-visible, 3));
    min-height: 250px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(16, 24, 40, .09);
    border-radius: 22px;
    background: #ffffff !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.amx-review-card:before {
    content: none;
}

.amx-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.amx-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .10);
}

.amx-avatar-initials {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    background: linear-gradient(135deg, #008a72, #0d614f);
}

.amx-review-card:nth-child(3n+2) .amx-avatar-initials {
    background: linear-gradient(135deg, #235b16, #4f9f29);
}

.amx-review-card:nth-child(3n+3) .amx-avatar-initials {
    background: linear-gradient(135deg, #0e7490, #22b8cf);
}

.amx-review-top h3 {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--amx-dark);
}

.amx-review-top time {
    color: var(--amx-muted);
    font-size: 13px;
    line-height: 1.3;
}

.amx-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.amx-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.amx-stars svg {
    width: 19px;
    height: 19px;
    fill: #d0d5dd;
}

.amx-stars svg.is-filled {
    fill: var(--amx-yellow);
    filter: none;
}

.amx-verified {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f80ed;
    box-shadow: none;
}

.amx-verified svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.amx-review-text {
    margin: 16px 0 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* Butoane slider - fortate ca sa nu fie suprascrise de tema/Elementor */
.amx-reviews-widget .amx-nav,
.amx-reviews-widget button.amx-nav,
.elementor .amx-reviews-widget button.amx-nav {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    top: 50% !important;
    z-index: 9 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: -14px 0 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px !important;
    background: #EA2F14 !important;
    background-color: #EA2F14 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
    transition: background-color .2s ease, transform .2s ease !important;
}

.amx-reviews-widget .amx-nav:hover,
.amx-reviews-widget .amx-nav:focus,
.amx-reviews-widget button.amx-nav:hover,
.amx-reviews-widget button.amx-nav:focus,
.elementor .amx-reviews-widget button.amx-nav:hover,
.elementor .amx-reviews-widget button.amx-nav:focus {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.amx-reviews-widget .amx-nav svg,
.amx-reviews-widget button.amx-nav svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    display: block !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    stroke: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.amx-reviews-widget .amx-nav svg path,
.amx-reviews-widget button.amx-nav svg path {
    fill: #ffffff !important;
}

.amx-reviews-widget .amx-prev,
.amx-reviews-widget button.amx-prev {
    left: 8px !important;
}

.amx-reviews-widget .amx-next,
.amx-reviews-widget button.amx-next {
    right: 8px !important;
}

.amx-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 10px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.amx-reviews-widget .amx-dot,
.amx-reviews-widget button.amx-dot,
.elementor .amx-reviews-widget button.amx-dot {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    max-width: 7px !important;
    min-height: 7px !important;
    max-height: 7px !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(234, 47, 20, .32) !important;
    background-color: rgba(234, 47, 20, .32) !important;
    color: transparent !important;
    cursor: pointer !important;
    display: inline-block !important;
    box-shadow: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    transition: background-color .2s ease, transform .2s ease !important;
}

.amx-reviews-widget .amx-dot.is-active,
.amx-reviews-widget button.amx-dot.is-active,
.elementor .amx-reviews-widget button.amx-dot.is-active {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    background: #EA2F14 !important;
    background-color: #EA2F14 !important;
}

.amx-reviews-widget .amx-dot:hover,
.amx-reviews-widget button.amx-dot:hover,
.elementor .amx-reviews-widget button.amx-dot:hover {
    background: #000000 !important;
    background-color: #000000 !important;
}

@media (max-width: 1024px) {
    .amx-reviews-widget {
        --amx-gap: 16px;
    }

    .amx-reviews-header {
        align-items: flex-start;
    }

    .amx-review-card {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .amx-reviews-widget {
        --amx-gap: 12px;
        padding: 10px 0 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .amx-reviews-header {
        display: block;
        padding: 0 8px;
        margin-bottom: 12px;
    }

    .amx-reviews-header h2 {
        font-size: 20px;
        line-height: 1.18;
    }

    .amx-reviews-header p {
        font-size: 12.5px;
        margin-top: 5px;
    }

    .amx-score-box {
        margin-top: 10px;
        width: auto;
        max-width: 130px;
        padding: 8px 10px;
    }

    .amx-score-box strong {
        font-size: 22px;
    }

    .amx-carousel-viewport {
        padding-left: 4px;
        padding-right: 4px;
    }

    .amx-carousel-track {
        gap: var(--amx-gap);
    }

    .amx-review-card {
        flex-basis: 100% !important;
        max-width: 100%;
        min-height: auto;
        padding: 18px 16px;
        border-radius: 18px;
    }

    .amx-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .amx-avatar-initials {
        font-size: 15px;
    }

    .amx-review-top h3 {
        font-size: 16px;
    }

    .amx-stars svg {
        width: 17px;
        height: 17px;
    }

    .amx-review-text {
        font-size: 14px;
        line-height: 1.48;
    }

    .amx-reviews-widget .amx-nav,
    .amx-reviews-widget button.amx-nav,
    .elementor .amx-reviews-widget button.amx-nav {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        margin-top: -12px !important;
    }

    .amx-reviews-widget .amx-nav svg,
    .amx-reviews-widget button.amx-nav svg {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
    }

    .amx-reviews-widget .amx-prev,
    .amx-reviews-widget button.amx-prev {
        left: 6px !important;
    }

    .amx-reviews-widget .amx-next,
    .amx-reviews-widget button.amx-next {
        right: 6px !important;
    }
}
