/* Wyplatanki Reviews — CSS-only carousel ([wr_reviews_slider] shortcode) */

/* ── Container ───────────────────────────────────────────── */

.wr-slider {
    font-family: inherit;
    position: relative;
}

/* Hidden radio inputs (manual mode) */
.wr-slider-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ── Track: CSS Grid stack ───────────────────────────────── */

/*
 * All slides placed in the same grid cell.
 * Container height = tallest slide — no fixed height needed.
 */
.wr-slider-track {
    display: grid;
}

/* ── Slide ───────────────────────────────────────────────── */

.wr-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    /* Smooth transition for manual mode; overridden by @keyframes in autoplay */
    transition: opacity 0.4s ease-in-out;
}

/* ── Slide card ──────────────────────────────────────────── */

.wr-slide-card {
    padding: 44px 40px 32px;
    text-align: center;
}

/* Decorative opening quote */
.wr-slide-card::before {
    content: '\201C';
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 72px;
    line-height: 1;
    height: 44px;
    color: var(--wr-slider-accent, #8B6914);
    opacity: 0.2;
    margin-bottom: 4px;
}

/* ── Stars ───────────────────────────────────────────────── */

.wr-slide-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ── Review title ────────────────────────────────────────── */

.wr-review-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* ── Quote / comment ─────────────────────────────────────── */

.wr-slide-quote {
    margin: 0 auto 24px;
    max-width: 680px;
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
    font-style: italic;
}

.wr-slide-quote p {
    margin: 0;
}

/* ── Footer: name · date ─────────────────────────────────── */

.wr-slide-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 10px;
}

.wr-slide-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.wr-slide-date {
    font-size: 13px;
    color: #9ca3af;
}

.wr-slide-date::before {
    content: '· ';
}

/* ── Product context tag ─────────────────────────────────── */

.wr-slide-product {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--wr-slider-accent, #8B6914);
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Dots ────────────────────────────────────────────────── */

.wr-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0 6px;
}

.wr-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0;
}

/* Manual mode: dots are <label> — pointer cursor + hover scale */
.wr-slider-manual .wr-dot {
    cursor: pointer;
}

.wr-slider-manual .wr-dot:hover {
    transform: scale(1.35);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
    .wr-slide-card {
        padding: 32px 20px 24px;
    }

    .wr-slide-quote {
        font-size: 15px;
    }
}

/* ── Verified purchase badge ──────────────────────────────── */

.wr-verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
    vertical-align: middle;
}

.wr-verified-badge::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--wr-badge-color, #f59e0b);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM3 7.5L6.5 13L12.5 4.5L11.5 5.5L7 11L5 8.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM3 7.5L6.5 13L12.5 4.5L11.5 5.5L7 11L5 8.5Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

.wr-verified-badge::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 10;
}

.wr-verified-badge:hover::after { opacity: 1; }


/* ── Review tags ──────────────────────────────────────────── */

.wr-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 2px;
}

.wr-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    line-height: 1.5;
}
