.wcawvc-relations-widget,
.wcawvc-relations-widget * {
    box-sizing: border-box;
}

.wcawvc-relations-widget {
    --wcawvc-relations-gap: 10px;
    --wcawvc-video-initial-x: 24px;
    --wcawvc-video-initial-y: 24px;
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.wcawvc-relations-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.wcawvc-relations-scroll::-webkit-scrollbar {
    height: 6px;
}

.wcawvc-relations-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
}

.wcawvc-relations-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.wcawvc-relations-track {
    display: flex;
    gap: var(--wcawvc-relations-gap);
    width: max-content;
    min-width: 100%;
    align-items: flex-start;
    padding-top: 4px;
    position: relative;
    overflow: visible;
}

.wcawvc-relations-entry {
    position: relative;
    flex: 0 0 auto;
    overflow: visible;
    z-index: 1;
}

.wcawvc-relations-entry:hover,
.wcawvc-relations-entry:focus-within {
    z-index: 999;
}

.wcawvc-relations-item {
    position: relative;
    display: block;
    width: calc((100% - (var(--wcawvc-relations-gap) * 4)) / 5);
    min-width: calc((100% - (var(--wcawvc-relations-gap) * 4)) / 5);
    border: 1px solid #d8d8d8;
    background: #ffffff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    z-index: 1;
}

.wcawvc-relations-item:hover,
.wcawvc-relations-entry:hover .wcawvc-relations-item,
.wcawvc-relations-entry:focus-within .wcawvc-relations-item {
    transform: translateY(-6px);
    z-index: 3;
}

.wcawvc-relations-item.is-active {
    border-color: #7a1111;
}

.wcawvc-relations-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.wcawvc-relations-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #7a1111;
    color: #ffffff;
    padding: 8px 14px;
    white-space: nowrap;
    z-index: 9999;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    transform: translateY(6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.wcawvc-relations-widget.tooltip-top .wcawvc-relations-tooltip {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(-6px);
}

.wcawvc-relations-entry:hover .wcawvc-relations-tooltip,
.wcawvc-relations-entry:focus-within .wcawvc-relations-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wcawvc-relations-widget.tooltip-top .wcawvc-relations-entry:hover .wcawvc-relations-tooltip,
.wcawvc-relations-widget.tooltip-top .wcawvc-relations-entry:focus-within .wcawvc-relations-tooltip {
    transform: translateY(0);
}

.wcawvc-relations-tooltip-portal {
    max-width: calc(100vw - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   BOTﾃグ FLUTUANTE DO Vﾃ好EO
========================================= */

.wcawvc-relations-video-trigger-wrap {
    position: fixed !important;
    inset: 0 auto auto 0;
    width: 0;
    height: 0;
    z-index: 2147483600 !important;
    pointer-events: none;
}

.wcawvc-relations-video-trigger {
    position: fixed !important;
    top: var(--wcawvc-video-initial-y);
    right: var(--wcawvc-video-initial-x);
    left: auto;
    bottom: auto;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2147483640 !important;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    pointer-events: auto;
}

.wcawvc-relations-video-trigger:hover,
.wcawvc-relations-video-trigger:focus,
.wcawvc-relations-video-trigger:active,
.wcawvc-relations-video-trigger:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.wcawvc-relations-video-trigger.is-dragging {
    cursor: grabbing;
}

.wcawvc-relations-video-thumb {
    width: var(--wcawvc-video-size, 90px);
    height: var(--wcawvc-video-size, 90px);
    min-width: var(--wcawvc-video-size, 70px);
    min-height: var(--wcawvc-video-size, 70px);

    border-radius: 50%;
    overflow: hidden;

    border: var(--wcawvc-video-border-width, 2px) solid var(--wcawvc-video-border-color, #000);

    background: var(--wcawvc-video-bg, #000);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    box-shadow: var(--wcawvc-video-shadow, 0 8px 25px rgba(0,0,0,.25));

    transition: transform .2s ease;
}

.wcawvc-relations-video-thumb img,
.wcawvc-relations-video-thumb video,
.wcawvc-relations-video-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    border-radius: 9999px !important;
}

.wcawvc-relations-video-thumb video {
    pointer-events: none;
}

.wcawvc-relations-video-play {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent !important;
    z-index: 3;
    pointer-events: none;
}

.wcawvc-relations-video-play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    margin-left: 2px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.wcawvc-relations-video-label {
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 16px;
    background: #2f3137;
    color: #ffffff;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    pointer-events: none;
}

.wcawvc-relations-video-trigger.is-text-hidden .wcawvc-relations-video-label {
    display: none !important;
}

.wcawvc-relations-video-trigger:hover .wcawvc-relations-video-label,
.wcawvc-relations-video-trigger:focus-visible .wcawvc-relations-video-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wcawvc-relations-video-trigger:hover .wcawvc-relations-video-play,
.wcawvc-relations-video-trigger:hover .wcawvc-relations-video-thumb,
.wcawvc-relations-video-trigger:hover .wcawvc-relations-video-thumb::before,
.wcawvc-relations-video-trigger:hover .wcawvc-relations-video-thumb::after,
.wcawvc-relations-video-trigger:focus-visible .wcawvc-relations-video-play,
.wcawvc-relations-video-trigger:focus-visible .wcawvc-relations-video-thumb,
.wcawvc-relations-video-trigger:focus-visible .wcawvc-relations-video-thumb::before,
.wcawvc-relations-video-trigger:focus-visible .wcawvc-relations-video-thumb::after {
    background: transparent !important;
}

/* =========================================
   MODAL DO Vﾃ好EO
========================================= */

html.wcawvc-relations-video-lock,
body.wcawvc-relations-video-lock {
    overflow: hidden !important;
}

.wcawvc-relations-video-modal[hidden] {
    display: none !important;
}

.wcawvc-relations-video-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
}

.wcawvc-relations-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.wcawvc-relations-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(96vw, 560px);
    max-width: 560px;
    max-height: 96vh;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.wcawvc-relations-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform .2s ease, background .2s ease;
}

.wcawvc-relations-video-close:hover,
.wcawvc-relations-video-close:focus-visible {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.05);
    outline: none;
}

.wcawvc-relations-video-modal-content {
    position: relative;
    width: 100%;
    background: #000000;
    overflow: hidden;
}

.wcawvc-relations-video-player,
.wcawvc-relations-video-iframe {
    width: 100%;
    display: block;
    border: 0;
    aspect-ratio: 9 / 16;
    background: #000000;
}

.wcawvc-relations-video-player {
    height: auto;
}

/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 1024px) {
    .wcawvc-relations-video-thumb {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        max-width: 72px;
        max-height: 72px;
        flex-basis: 72px;
    }

    .wcawvc-relations-video-label {
        font-size: 11px;
        padding: 6px 14px;
    }
}

@media (max-width: 767px) {
    .wcawvc-relations-scroll {
        padding-top: 8px;
        padding-bottom: 15px;
    }

    .wcawvc-relations-video-thumb {
        width: 62px;
        height: 62px;
        min-width: 62px;
        min-height: 62px;
        max-width: 62px;
        max-height: 62px;
        flex-basis: 62px;
    }

    .wcawvc-relations-video-label {
        min-height: 28px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .wcawvc-relations-video-modal-dialog {
        width: 94vw;
        max-width: 94vw;
        border-radius: 14px;
    }

    .wcawvc-relations-video-close {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}

/* =========================
   TEXTO DO VÍDEO - RESPONSIVO
========================= */

/* Desktop (default): só no hover */
.wcawvc-relations-video-label {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .25s ease;
}

/* Hover desktop */
.wcawvc-relations-video:hover .wcawvc-relations-video-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================
   MOBILE: sempre visível
========================= */

@media (max-width: 767px) {

    .wcawvc-relations-video-label {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

}

/* =========================
   TAMANHO DO CÍRCULO - MOBILE
========================= */

@media (max-width: 767px) {

    .wcawvc-relations-video-thumb {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
    }

}