/* ================================================================
   WOO VISUAL REVIEWS — style.css v4.0

   DESKTOP layout:
   [ PREV ] [ TEXT CARD | IMG-0 active ] [ IMG-1 faded ] [ IMG-2 half ] [ NEXT ]
   Text card is fixed left. Image strip slides horizontally.
   Active image sits flush right of text card.
   Next images peek faded, third is clipped half.

   MOBILE layout:
   Vertical horizontal scroll. Each card = full-width image + text below.
   Next card peeks ~50% from right edge. Tap image = modal.
================================================================ */

#wvr-root, #wvr-root *, #wvr-root *::before, #wvr-root *::after {
    box-sizing: border-box;
}

#wvr-root {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 56px;
    font-family: inherit;
    overflow: hidden; /* clips the image strip on desktop */
}

/* ================================================================
   ARROWS — anchored to #wvr-root, vertically centred on card height
================================================================ */
#wvr-root .wvr-btn {
    all: unset;
    position: absolute;
    top: calc(40px + 210px); /* padding-top + half of 420px card */
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.13);
    cursor: pointer;
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.2s;
}
#wvr-root .wvr-btn:hover { box-shadow: 0 5px 18px rgba(0,0,0,0.2); }
#wvr-root .wvr-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; }
#wvr-root .wvr-btn-prev { left: 8px; }
#wvr-root .wvr-btn-next { right: 8px; }

/* ================================================================
   DESKTOP LAYOUT
================================================================ */
#wvr-root .wvr-desktop-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0; /* text card and strip are flush */
    position: relative;
}

/* ── Text card (fixed left) ─────────────────────────────────── */
#wvr-root .wvr-text-card {
    flex: 0 0 300px;
    width: 300px;
    height: 420px;
    background: #f6efec;
    border-radius: 28px 0 0 28px; /* joins flush with active image */
    padding: 40px 28px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

#wvr-root .wvr-quote {
    position: absolute;
    top: 8px; left: 16px;
    font-size: 60px;
    color: #c9a99a;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
#wvr-root .wvr-stars {
    color: #e91e63;
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    line-height: 1;
}
#wvr-root .wvr-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#wvr-root .wvr-author-row {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}
#wvr-root .wvr-verified-dot {
    width: 18px; height: 18px; min-width: 18px;
    background: #999; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#wvr-root .wvr-verified-dot svg { width: 10px; height: 10px; display: block; }
#wvr-root .wvr-author-name { font-size: 14px; font-weight: 700; color: #555; }

/* ── Image strip ─────────────────────────────────────────────── */
/*
 * The strip is a wide flex row of cards.
 * JS shifts the strip left via translateX so the active card
 * always sits flush right of the text card.
 * The parent #wvr-root has overflow:hidden so extra cards are clipped.
 */
#wvr-root .wvr-image-strip {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    flex-shrink: 0;
    /* transition set by JS */
    will-change: transform;
}

#wvr-root .wvr-card {
    flex: 0 0 260px;
    width: 260px;
    height: 420px;
    border-radius: 0 28px 28px 0; /* first card joins text card */
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}
/* Cards after the first get full radius */
#wvr-root .wvr-card + .wvr-card {
    border-radius: 28px;
}

#wvr-root .wvr-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Active card: full opacity. Others: faded */
#wvr-root .wvr-card { opacity: 0.38; }
#wvr-root .wvr-card.wvr-active { opacity: 1; }

/* ── Dots ────────────────────────────────────────────────────── */
#wvr-root .wvr-dots-wrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}
#wvr-root #wvr-pagination-el {
    display: flex; gap: 7px; align-items: center;
}
#wvr-root .wvr-dot {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d1c8c3;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
    flex-shrink: 0;
}
#wvr-root .wvr-dot.wvr-dot-active {
    width: 22px; border-radius: 10px; background: #6d5145;
}

/* ================================================================
   MOBILE LAYOUT — hidden on desktop
================================================================ */
#wvr-root .wvr-mobile-layout { display: none; }

/* ================================================================
   MODAL
================================================================ */
#wvr-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    align-items: center;
    justify-content: center;
}
#wvr-modal.wvr-open { display: flex; }
#wvr-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75);
}
#wvr-modal .wvr-modal-box {
    position: relative; background: #fff;
    width: 820px; max-width: 92vw; height: 480px;
    border-radius: 20px; display: flex; overflow: hidden; z-index: 2;
}
#wvr-modal .wvr-modal-close {
    all: unset; position: absolute; top: 12px; left: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 20px;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
#wvr-modal .wvr-modal-img-wrap {
    width: 50%; background: #111; flex-shrink: 0;
}
#wvr-modal .wvr-modal-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
#wvr-modal .wvr-modal-body-wrap {
    width: 50%; padding: 32px; overflow-y: auto; box-sizing: border-box;
}
#wvr-modal .wvr-modal-header {
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px;
}
#wvr-modal .wvr-modal-header h3 { margin: 0; font-size: 18px; color: #222; }
#wvr-modal .wvr-modal-badge {
    width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
    background: #888; color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
#wvr-modal .wvr-modal-meta {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
#wvr-modal .wvr-modal-stars { color: #e91e63; font-size: 17px; }
#wvr-modal .wvr-modal-date  { font-size: 12px; color: #999; }
#wvr-modal .wvr-modal-body-wrap p { font-size: 14px; line-height: 1.7; color: #444; margin: 0; }

/* ================================================================
   MOBILE RESPONSIVE — ≤ 700px
================================================================ */
@media (max-width: 700px) {

    /* Hide desktop elements */
    #wvr-root .wvr-desktop-layout { display: none !important; }
    #wvr-root .wvr-btn            { display: none !important; }
    #wvr-root .wvr-dots-wrap      { display: none !important; }

    /* Show mobile layout */
    #wvr-root .wvr-mobile-layout  { display: block; }

    #wvr-root {
        padding: 20px 0;
        overflow: hidden; /* clips peeking next card */
    }

    /*
     * Mobile slider: horizontal scroll track.
     * Each .wvr-mobile-card is ~85vw wide so the next card peeks ~15vw.
     * JS translates the track on prev/next.
     */
    #wvr-root .wvr-mobile-layout {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    #wvr-root .wvr-mobile-track {
        display: flex;
        flex-direction: row;
        gap: 14px;
        padding: 0;          /* no padding — JS controls left offset */
        will-change: transform;
        /* transition set by JS */
    }

    #wvr-root .wvr-mobile-card {
        flex: 0 0 84vw;      /* 84vw card + 14px gap, ~16vw peeks on right */
        width: 84vw;
        max-width: 84vw;
        display: flex;
        flex-direction: column;
        transition: opacity 0.4s ease;
    }

    #wvr-root .wvr-mobile-card .wvr-mobile-img-wrap {
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 22px;
        overflow: hidden;
        cursor: pointer;
    }
    #wvr-root .wvr-mobile-card .wvr-mobile-img-wrap img {
        width: 100%; height: 100%; object-fit: cover; display: block;
    }

    /* Text below image */
    #wvr-root .wvr-mobile-card .wvr-mobile-text {
        background: #f6efec;
        border-radius: 0 0 22px 22px;
        padding: 18px 20px 20px;
        margin-top: -22px; /* tucks under the image's bottom curve */
        position: relative;
        z-index: 1;
    }

    #wvr-root .wvr-mobile-stars {
        color: #e91e63; font-size: 18px; margin-bottom: 8px; letter-spacing: 2px;
    }
    #wvr-root .wvr-mobile-review {
        font-size: 14px; line-height: 1.65; color: #444; margin: 0 0 10px;
    }
    #wvr-root .wvr-mobile-author {
        display: flex; align-items: center; gap: 6px;
        font-size: 14px; font-weight: 700; color: #555;
    }
    #wvr-root .wvr-mobile-verified {
        width: 18px; height: 18px; min-width: 18px;
        background: #999; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }
    #wvr-root .wvr-mobile-verified svg { width: 10px; height: 10px; display: block; }

    /* Inactive mobile cards are faded */
    #wvr-root .wvr-mobile-card           { opacity: 0.45; }
    #wvr-root .wvr-mobile-card.wvr-active { opacity: 1; }

    /* Mobile pagination dots */
    #wvr-root .wvr-mobile-dots {
        display: flex; justify-content: center; gap: 7px;
        margin-top: 16px; padding-bottom: 10px;
    }
    #wvr-root .wvr-mobile-dots .wvr-dot {
        display: block; width: 8px; height: 8px;
        border-radius: 50%; background: #d1c8c3; cursor: pointer;
        transition: width 0.3s, background 0.3s; flex-shrink: 0;
    }
    #wvr-root .wvr-mobile-dots .wvr-dot.wvr-dot-active {
        width: 22px; border-radius: 10px; background: #6d5145;
    }

    /* Mobile modal: image top, text below */
    #wvr-modal .wvr-modal-box {
        flex-direction: column;
        height: auto;
        max-height: 92vh;
        overflow-y: auto;
        width: 96vw;
        border-radius: 18px;
    }
    #wvr-modal .wvr-modal-img-wrap {
        width: 100%;
        height: 55vw;
        min-height: 220px;
        flex-shrink: 0;
    }
    #wvr-modal .wvr-modal-body-wrap {
        width: 100%; padding: 22px;
    }
}