/* FEF Vertical Video — reels-style shoppable video grid (mobile responsive) */

.fef-vv-wrap { width: 100%; position: relative; }

.fef-vv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.fef-vv-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.fef-vv-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
.fef-vv-ratio-9-16 .fef-vv-media { aspect-ratio: 9 / 16; }
.fef-vv-ratio-3-4  .fef-vv-media { aspect-ratio: 3 / 4; }
.fef-vv-ratio-1-1  .fef-vv-media { aspect-ratio: 1 / 1; }

.fef-vv-video,
.fef-vv-yt,
.fef-vv-yt-iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border: 0;
}
.fef-vv-yt { background-size: cover; background-position: center; cursor: pointer; }

/* Play glyph */
.fef-vv-play {
    position: absolute; inset: 0; margin: auto;
    width: 62px; height: 62px;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .25s ease, transform .2s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
}
.fef-vv-play span { font-size: 22px; margin-left: 3px; }
.fef-vv-play:hover { transform: scale(1.08); }
.fef-vv-card.is-playing .fef-vv-play { opacity: 0; pointer-events: none; }

/* Mute toggle */
.fef-vv-mute {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff;
    cursor: pointer; font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 4;
}
.fef-vv-mute:hover { background: rgba(0,0,0,0.72); }

/* Bottom gradient */
.fef-vv-overlay-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

/* Info + actions */
.fef-vv-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px;
    z-index: 3;
    display: flex; flex-direction: column; gap: 6px;
}
.fef-vv-title { font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }
.fef-vv-sub { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.85); }

.fef-vv-actions {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}

.fef-vv-cart, .fef-vv-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.fef-vv-cart { background: #111827; color: #fff; }
.fef-vv-btn { background: rgba(255,255,255,0.92); color: #111827; }
.fef-vv-cart:hover, .fef-vv-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.fef-vv-cart.is-loading { opacity: .7; cursor: progress; }
.fef-vv-cart:disabled { cursor: default; }

/* Buttons below the video instead of overlaid */
.fef-vv-btns-below .fef-vv-overlay-grad { background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 45%); }
.fef-vv-btns-below .fef-vv-info { position: static; padding: 12px; }
.fef-vv-btns-below .fef-vv-card { background: #111; }
.fef-vv-btns-below .fef-vv-title,
.fef-vv-btns-below .fef-vv-sub { color: #fff; }

/* Toast */
.fef-vv-toast {
    position: fixed; left: 50%; bottom: 26px;
    transform: translateX(-50%) translateY(16px);
    background: #111827; color: #fff;
    padding: 11px 18px; border-radius: 10px;
    font-size: 14px; box-shadow: 0 8px 26px rgba(0,0,0,0.28);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 999999;
}
.fef-vv-toast a { color: #93c5fd; text-decoration: underline; margin-left: 4px; }
.fef-vv-toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Setup card */
.fef-vv-setup {
    text-align: center; padding: 30px 18px;
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px;
    color: #475569; font-size: 14px;
}

@media (max-width: 767px) {
    .fef-vv-title { font-size: 15px; }
    .fef-vv-cart, .fef-vv-btn { padding: 8px 12px; font-size: 12px; }
    .fef-vv-toast { bottom: 16px; width: calc(100% - 32px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .fef-vv-play, .fef-vv-cart, .fef-vv-btn, .fef-vv-toast { transition: none; }
}
