.eor-reviews {
    --eor-bg: #3b4035;
    --eor-cream: #faedd0;
    --eor-gold: #ad8740;
    --eor-line: rgba(250, 237, 208, .22);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--eor-bg);
    color: #fff;
    padding: 48px 58px;
    border-radius: 38px 0 38px 0;
}

.eor-reviews::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: url("https://elegantoccasionsbyjoanngregoli.com/wp-content/uploads/2025/11/bg-line-art-4.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 55% auto;
    opacity: .20;
}

.eor-reviews > * {
    position: relative;
    z-index: 1;
}

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

.eor-stage {
    position: relative;
    border: 1px solid var(--eor-line);
    min-height: 330px;
    background: rgba(59, 64, 53, .18);
}

.eor-slides {
    position: relative;
}

.eor-review {
    display: none;
    padding: 34px 62px 30px;
    animation: eorFade .28s ease;
}

.eor-review.is-active {
    display: block;
}

.eor-stars {
    color: var(--eor-gold);
    font-size: 21px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    line-height: 1;
}

.eor-quote {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
    font-weight: 600;
    font-style: normal;
    max-width: 1080px;
}

.eor-quote p,
.eor-review-full p {
    margin: 0 0 .85em;
}

.eor-quote p:last-child,
.eor-review-full p:last-child {
    margin-bottom: 0;
}

.eor-review-excerpt {
    display: block;
}

.eor-review-full[hidden] {
    display: none !important;
}

.eor-read-more {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--eor-gold);
    font: inherit !important;
    font-size: .78em !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.eor-read-more:hover,
.eor-read-more:focus-visible {
    background: transparent !important;
    color: var(--eor-cream) !important;
    outline: none;
}

.eor-reviewer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.eor-reviewer strong {
    font-size: 17px;
}

.eor-role,
.eor-source {
    font-size: 13px;
}

.eor-role,
.eor-source a {
    color: var(--eor-gold);
}

.eor-source a {
    text-decoration: none;
}

.eor-source a:hover,
.eor-source a:focus {
    text-decoration: underline;
}

.eor-rating-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid var(--eor-line);
    background: rgba(59, 64, 53, .35);
}

.eor-rating-source {
    flex: 1 1 190px;
    min-width: 0;
    padding: 13px 16px;
    border-right: 1px solid var(--eor-line);
}

.eor-rating-source:last-child {
    border-right: 0;
}

.eor-rating-source a,
.eor-rating-source > span,
.eor-rating-source > strong {
    color: inherit;
    text-decoration: none;
}

.eor-rating-source a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.eor-rating-source strong {
    color: var(--eor-cream);
    font-size: 14px;
}

.eor-rating-number {
    color: var(--eor-gold);
    font-weight: 700;
    font-size: 14px;
}

.eor-rating-count {
    opacity: .72;
    font-size: 11px;
}

/* Strong resets keep Elementor/global button styles from turning carousel controls into pills. */
.eor-reviews .eor-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute !important;
    top: 50% !important;
    z-index: 3 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--eor-gold) !important;
    border-radius: 50% !important;
    background: rgba(59,64,53,.88) !important;
    box-shadow: none !important;
    color: var(--eor-gold);
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer;
}

.eor-prev { left: 10px !important; }
.eor-next { right: 10px !important; }

.eor-reviews .eor-arrow:hover,
.eor-reviews .eor-arrow:focus-visible {
    background: var(--eor-gold) !important;
    color: #fff !important;
    outline: none;
}

.eor-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
}

.eor-reviews .eor-dot {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    flex: 0 0 9px !important;
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.eor-reviews .eor-dot.is-active {
    background: var(--eor-gold) !important;
    border-color: var(--eor-gold) !important;
}

.eor-empty {
    padding: 18px;
    border: 1px dashed #bbb;
    background: #fff;
    color: #333;
}

@keyframes eorFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .eor-review { animation: none; }
}

@media (max-width: 767px) {
    .eor-reviews {
        padding: 28px 18px;
        border-radius: 28px 0 28px 0;
    }

    .eor-reviews::before {
        background-size: 95% auto;
        opacity: .14;
    }

    .eor-review {
        padding: 28px 38px 24px;
    }

    .eor-quote {
        font-size: 16px;
        line-height: 1.5;
    }

    .eor-rating-source {
        flex-basis: 50%;
        border-bottom: 1px solid var(--eor-line);
    }

    .eor-rating-source:nth-child(even) {
        border-right: 0;
    }

    .eor-reviews .eor-arrow {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        font-size: 21px !important;
    }

    .eor-prev { left: 4px !important; }
    .eor-next { right: 4px !important; }
}
