/* ==========================================================================
   Samanity Reviews Block
   ========================================================================== */

.samanity-reviews-block {
    position: relative;
    padding: 1rem 0;
}

/* ---- Review card ---- */
.samanity-review-col {
    position: relative;
    z-index: 0;
}

.samanity-review-col:hover {
    z-index: 1;
}

.samanity-review-card {
    border-radius: 24px !important;
    border: 1px solid #E6E6E6 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.samanity-review-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* Avatar */
.samanity-review-avatar {
    object-fit: cover;
    flex-shrink: 0;
}

.samanity-review-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: var(--samanity-bg, #f7f8fa);
    color: var(--samanity-text-muted, #6b7280);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Stars */
.samanity-review-stars {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.samanity-star-filled {
    color: #f59e0b;
}

.samanity-star-empty {
    color: #d1d5db;
}

/* Card text */
.samanity-review-card .card-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--samanity-text, #1f2937);
}

/* ==========================================================================
   Carousel overrides
   ========================================================================== */

/* Indicators — positioned below carousel content, not overlapping */
.samanity-reviews-block .samanity-reviews-indicators {
    position: static;
    margin: 1.5rem auto 0;
    padding: 0;
}

.samanity-reviews-block .samanity-reviews-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--samanity-text-muted, #6b7280);
    opacity: 0.3;
    border: 0;
    margin: 0 5px;
    transition: opacity 0.2s;
}

.samanity-reviews-block .samanity-reviews-indicators button.active {
    opacity: 1;
    background-color: var(--samanity-text, #1f2937);
}

/* Controls — circular buttons on the sides */
.samanity-reviews-block .carousel-control-prev,
.samanity-reviews-block .carousel-control-next {
    width: 40px;
    height: 40px;
    top: calc(50% - 40px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.samanity-reviews-block .carousel-control-prev:hover,
.samanity-reviews-block .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.12);
}

.samanity-reviews-block .carousel-control-prev {
    left: -52px;
}

.samanity-reviews-block .carousel-control-next {
    right: -52px;
}

.samanity-reviews-block .carousel-control-prev-icon,
.samanity-reviews-block .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    width: 14px;
    height: 14px;
}

/* Pull controls inward when space is tight */
@media (max-width: 1399.98px) {
    .samanity-reviews-block .carousel-control-prev { left: -12px; }
    .samanity-reviews-block .carousel-control-next { right: -12px; }
}

/* Hide prev/next on mobile — users swipe instead */
@media (max-width: 991.98px) {
    .samanity-reviews-block .carousel-control-prev,
    .samanity-reviews-block .carousel-control-next {
        display: none;
    }
}

/* Smooth carousel slide transition */
.samanity-reviews-block .carousel-item {
    transition: transform 0.5s ease-in-out;
}

/* No-JS fallback: the server-rendered grid is visible by default */
