/* ABC Testimonial Video Rotator — new view, separate from the original carousel */

.abc-vr-container {
    width: 100%;
    box-sizing: border-box;
}

.abc-vr-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

/* ── Hero ── */
.abc-vr-hero {
    position: relative;
    background: linear-gradient(135deg, rgb(12 25 72 / 6%), rgb(12 73 88 / 4%));
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 50px -10px rgb(12 25 72 / 25%);
    overflow: hidden;
}

.abc-vr-track {
    display: flex;
    width: 100%;
    transition: transform 500ms ease;
}

.abc-vr-video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #060d1f;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    border: 1px solid rgb(12 25 72 / 30%);
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.abc-vr-video-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

.abc-vr-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgb(12 25 72 / 15%), rgb(4 4 12 / 78%));
    transition: opacity 220ms ease;
}

.abc-vr-iframe-layer,
.abc-vr-player-slot {
    background: transparent;
    position: absolute;
    inset: 0;
}

.abc-vr-iframe-layer {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 0 32px 32px;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 220ms ease;
}

.abc-vr-player-slot {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.abc-vr-player-slot iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    display: block;
}

.abc-vr-video-wrapper.active-video .abc-vr-play-btn,
.abc-vr-video-wrapper.active-video .abc-vr-video-cover,
.abc-vr-video-wrapper.active-video .abc-vr-video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ── Play button ── */
@keyframes abcVrPlayBlink {
    0%   { box-shadow: 0 0 0 0   rgba(236, 17, 17, 0.7); transform: translate(-50%, -50%) scale(1); }
    50%  { box-shadow: 0 0 0 22px transparent;            transform: translate(-50%, -50%) scale(1.05); }
    100% { box-shadow: 0 0 0 0   transparent;             transform: translate(-50%, -50%) scale(1); }
}

.abc-vr-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ec1111, #c20d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 28px rgba(236, 17, 17, 0.55);
    z-index: 3;
    animation: 1.8s infinite abcVrPlayBlink;
}

.abc-vr-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.abc-vr-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 36px rgba(236, 17, 17, 0.75);
}

/* ── Close button ── */
.abc-vr-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.abc-vr-video-wrapper.active-video .abc-vr-close-btn {
    display: flex;
}

.abc-vr-close-btn:hover {
    background: rgb(0 0 0 / 90%);
}

/* ── Navigation ── */
.abc-vr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 0 0;
}

.abc-vr-arrow {
    background: transparent;
    border: 1.5px solid #0c1b48;
    color: #0c1b48;
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.abc-vr-arrow:hover {
    background: #0c1b48;
    color: #fff;
}

/* ── Dots ── */
.abc-vr-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.abc-vr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(12 25 72 / 20%);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: 0.3s;
}

.abc-vr-dot.active {
    background: #0c1b48;
    width: 30px;
    border-radius: 15px;
    box-shadow: 0 0 12px rgb(12 25 72 / 40%);
    transform: scale(1.1);
}

.abc-vr-dot:hover:not(.active) {
    background: rgb(12 25 72 / 45%);
    transform: scale(1.1);
}

/* ── Auto-rotation pause indicator ── */
.abc-vr-video-wrapper.active-video .abc-vr-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* ── Visibility toggles (driven by shortcode attributes) ── */
.abc-vr-hide-nav  .abc-vr-arrow { display: none !important; }
.abc-vr-hide-dots .abc-vr-dots  { display: none !important; }

/* Hide the entire nav bar when both are hidden */
.abc-vr-hide-nav.abc-vr-hide-dots .abc-vr-nav { display: none !important; }

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .abc-vr-hero { border-width: 1.5px; }
    .abc-vr-play-btn { width: 54px; height: 54px; }
    .abc-vr-play-btn svg { width: 22px; height: 22px; }
    .abc-vr-close-btn { width: 28px; height: 28px; font-size: 13px; top: 8px; right: 8px; }
    .abc-vr-dot, .abc-vr-dot.active { width: 9px; height: 9px; }
    .abc-vr-dot.active { border-radius: 6px; width: 22px; }
    .abc-vr-arrow { width: 36px; height: 36px; font-size: 16px; }
}
