.ck-panel-wrapper {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1100px;
    margin: auto;
    background: #111111 !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 24px;
    z-index: 9999999 !important; /* Asegura estar por encima de todo */
    box-shadow: 0 15px 40px rgba(0,0,0,.35);

    /* 🔥 iOS / Safari safe area */
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));

    /* Mejora Safari blur/render */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenido */
.ck-panel__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Texto */
.ck-panel__text h3 {
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
}

.ck-panel__text p {
    margin: 0 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    font-size: 14px;
}

/* Links internos */
.ck-panel-wrapper a {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.ck-panel-wrapper a:hover {
    opacity: 0.8;
}

/* Botones contenedor */
.ck-panel__buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Botones estilos base (Aislados de estilos heredados) */
.ck-panel-wrapper button {
    padding: 12px 18px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: opacity 0.2s ease, transform 0.1s ease;
    
    /* iOS fix (Evita estilos tridimensionales nativos de Safari) */
    -webkit-appearance: none;
    appearance: none;
}

.ck-panel-wrapper button:hover {
    opacity: 0.9;
}
.ck-panel-wrapper button:active {
    transform: scale(0.98);
}

/* Botón Aceptar (Fondo blanco, texto oscuro) */
.ck-btn-main {
    background: #ffffff !important;
    color: #111111 !important;
    border: none !important;
}

/* Botón Rechazar (Fondo transparente, borde y texto blanco) */
.ck-btn-sec {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}


/* ==========================================================================
   📱 MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 768px) {
    .ck-panel-wrapper {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
        border-radius: 12px;
    }

    .ck-panel__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ck-panel__buttons {
        width: 100%;
    }

    .ck-panel-wrapper button {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* 📱 iOS extra fix (Evita saltos extraños al hacer scroll rápido en Safari móvil) */
@supports (-webkit-touch-callout: none) {
    .ck-panel-wrapper {
        position: fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}