﻿.gq-cc.d-none {
    display: none;
}

.gq-cc__bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #111;
    color: #fff;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    box-shadow: 0 -2px 16px rgba(0,0,0,.3);
    font-size: 14px;
}

.gq-cc__text a {
    color: #fff;
    text-decoration: underline;
}

.gq-cc__actions {
    display: flex;
    gap: 8px;
}

.gq-cc__btn {
    border-radius: 6px;
    border: 1px solid #444;
    padding: 8px 12px;
    cursor: pointer;
}

.gq-cc__btn--primary {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.gq-cc__btn--ghost {
    background: transparent;
    color: #fff;
}

/* Mantén los ghost en blanco SOLO en la barra inferior */
.gq-cc__bar .gq-cc__btn--ghost {
    color: #fff;
    border-color: #444;
}

/* En el modal (fondo blanco), los ghost deben ser oscuros */
.gq-cc__modal .gq-cc__btn--ghost {
    color: #333;
    border-color: #ddd;
    background: transparent;
}

    .gq-cc__modal .gq-cc__btn--ghost:hover {
        background: #f5f5f5;
    }

.gq-cc__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gq-cc__modal {
    background: #fff;
    color: #222;
    width: min(660px, 92vw);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    padding: 18px;
}

.gq-cc__modal-title {
    margin: 0 0 6px;
    font-size: 20px;
}

.gq-cc__modal-sub {
    margin: 0 0 14px;
    color: #555;
}

.gq-cc__group {
    border-top: 1px solid #eee;
    padding: 12px 0;
}

.gq-cc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.gq-cc__row-help {
    color: #666;
    display: block;
    margin-top: 4px;
}

.gq-cc__modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.gq-cc__legal {
    margin-top: 10px;
    font-size: 12px;
    text-align: right;
}
/* Botón para reabrir ajustes en el pie */
.gq-cc-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

    .gq-cc-manage .fa {
        font-size: 13px;
    }

    /* Hover efecto suave */
    .gq-cc-manage:hover {
        background: #f5f5f5;
        box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }

/* Ratio responsivo 16:9 para el contenedor del vídeo */
.videoWrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000; /* fondo negro mientras no hay miniatura */
}

    /* El iframe y el placeholder ocupan el área completa del wrapper */
    .videoWrapper iframe,
    .videoWrapper .gq-cc-video.ph {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Oculta iframes diferidos */
iframe[data-cc-iframesrc] {
    display: none !important;
}

/* Placeholder sencillo (ajústalo luego a tu estilo) */
.gq-cc-video-placeholder {
    background: #f6f6f6;
    border: 1px solid #e2e2e2;
    padding: 12px;
    text-align: center;
    margin-bottom: 8px;
}

    .gq-cc-video-placeholder .gq-cc-open {
        text-decoration: underline;
    }

/* Contenedor del placeholder (ocupa el área del vídeo) */
.gq-cc-video.ph {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000; /* fondo negro como el player */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Miniatura del vídeo (si la hay) */
.gq-cc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recorta para llenar sin deformar */
    display: block;
}

/* Botón play centrado */
.gq-cc-playbtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(0,0,0,.6);
}

    .gq-cc-playbtn:before {
        content: "";
        display: block;
        margin: auto;
        width: 0;
        height: 0;
        border-left: 18px solid #fff;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
    }

    .gq-cc-playbtn:hover {
        background: rgba(0,0,0,.72);
    }

    .gq-cc-playbtn:focus {
        outline: 2px solid rgba(255,255,255,.85);
        outline-offset: 2px;
    }

/* Banda informativa abajo, con enlace para abrir el modal */
.gq-cc-video-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .9rem;
    padding: 6px 10px;
    text-align: center;
}

    .gq-cc-video-note .gq-cc-open {
        color: #fff;
        text-decoration: underline;
    }


@media (max-width: 576px) {
    .gq-cc__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .gq-cc__actions {
        justify-content: stretch;
    }

    .gq-cc__btn {
        width: 100%;
    }
}