/* -------------------------------------------------------- */
/* ------------- LIVE FEED CUSTOM V11 START --------------- */
/* -------------------------------------------------------- */
#app .homepage-component:not(.fullwidth):has(#LF1) {
    display: flex;
    flex-direction: column;

    >div,
    #cms-live-feed {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    #LF1 {
        flex: 1 1 auto;
        box-sizing: border-box;
    }
}

#app #cms-live-feed:has(#LF1) {
    container-type: inline-size;
}

#app #LF1 {
    --custom-live-feed-v11-gap: 44px;
    --custom-live-feed-v11-card-padding: 32px;
    --custom-live-feed-v11-thumb-size: 84px;
    --custom-live-feed-v11-post-border-radius: var(--custom-border-radius, 20px);
    --custom-live-feed-v11-thumbnail-border-radius: var(--custom-border-radius, 8px);
    --custom-live-feed-v11-post-bg-color: #FFF;

    .see-all-container {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .live-feed-post {
        margin: 0 0 var(--custom-live-feed-v11-gap);
        padding: var(--custom-live-feed-v11-card-padding);
        background-color: var(--custom-live-feed-v11-post-bg-color);
        border: 0;
        border-radius: var(--custom-live-feed-v11-post-border-radius);
        box-sizing: border-box;
        box-shadow: 0px 20px 24px -4px rgba(0, 0, 0, 0.04), 0px 8px 8px -4px rgba(0, 0, 0, 0.03);

        &:last-of-type {
            margin-bottom: 0;
        }
    }

    .live-feed-post-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 4px;
        margin-bottom: 16px;
        text-transform: uppercase;
        font-size: 16px;
        line-height: 1.3;

        .live-feed-icon {
            width: 40px;
            height: 40px;
            margin-right: 12px;
            object-fit: cover;
            border-radius: 50vw;
        }

        .live-feed-author {
            font-weight: 700;
        }

        .live-feed-time {
            position: relative;
            display: block;
            margin-left: 8px;
            padding-left: 10px;
            font-weight: 400;

            &::after {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 4px;
                height: 4px;
                display: block;
                border-radius: 50%;
                background-color: currentColor;
            }
        }
    }

    .live-feed-details {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
        align-items: start;
        font-weight: 400;

        >*:not(.thumbnails) {
            grid-column: 1;
        }

        >div[id^="LF-"] {
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: 100%;

            a {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                align-self: flex-start;
                margin-top: auto;
                font-size: 15px;
                font-weight: 700;
                text-decoration: none;

                &::after {
                    content: '';
                    display: inline-block;
                    width: 18px;
                    height: 18px;
                    background-color: currentColor;
                    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M8.46975 12.9697L9.53025 14.0302L14.5605 8.99998L9.53025 3.96973L8.46975 5.03023L11.6895 8.24998H4.5V9.74998H11.6895L8.46975 12.9697Z' fill='%23002F6C'/%3E%3C/svg%3E");
                    mask-repeat: no-repeat;
                    mask-position: center;
                    mask-size: contain;
                    transition: all .35s ease-in-out;
                }

                &:hover::after {
                    transform: translateX(5px);
                }
            }
        }

        .thumbnails {
            grid-column: 2;
            grid-row: 1 / span 3;
            display: block;
            width: var(--custom-live-feed-v11-thumb-size);
            height: var(--custom-live-feed-v11-thumb-size);
            margin: 0;

            >* {
                display: none;
            }

            >.thumbnail-button:first-child {
                display: block;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                border: 0;
                background: none;
                cursor: pointer;
            }

            img.thumbnail {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border: 0;
                border-radius: 8px;
            }
        }
    }

    @container (max-width: 460px) {
        padding: 32px 24px;
        --custom-live-feed-v11-gap: 28px;
        --custom-live-feed-v11-card-padding: 22px;
        --custom-live-feed-v11-thumb-size: 60px;

        .live-feed-post-header {
            font-size: 14px;
            margin-bottom: 12px;

            .live-feed-icon {
                width: 32px;
                height: 32px;
                margin-right: 10px;
            }
        }

        .live-feed-details {
            column-gap: 12px;
            font-size: 15px;
            line-height: 1.5;

            >div[id^="LF-"] a {
                font-size: 14px;
            }
        }
    }
}

@media (width <=768px) {
    #app #LF1 {
        --custom-live-feed-v11-gap: 24px;
    }
}

/* -------------------------------------------------------- */
/* -------------- LIVE FEED CUSTOM V11 END ---------------- */
/* -------------------------------------------------------- */