.wp-block-betupmedia-casino-listing:not(.edit-mode) {
    container-type: inline-size;

    &.is-style-header {
        .betupmedia-casino-listing--inner {
            display: grid;
            grid-template-columns: 1fr;
            row-gap: 20px;

            @container (min-width: 700px) {
                justify-content: space-between;
                grid-template-columns: 1.5fr auto 1fr;
            }

            section {
                overflow: hidden;
                display: grid;
                gap: 12px;
                position: relative;
                background-color: #FBFBFB;
                border: 1px solid #E8E8E8;
                border-radius: 12px;
                padding: 16px;

                @container (min-width: 700px) {
                    grid-template-columns: subgrid;
                    grid-template-rows: auto auto;
                    grid-column: 1/4;
                    padding: 16px 24px 12px 12px;
                }

                .ribbon {
                    position: absolute;
                    top: 0;
                    left: 0;
                    background-color: #FFA645;
                    color: white;
                    font-weight: 700;
                    font-size: clamp(12px, 12px + ((1vw - 0.2rem) * 0.444), 14px);
                    line-height: 1.5;
                    padding: 4px 24px 4px 12px;
                    text-transform: uppercase;
                    letter-spacing: 0.015em;
                    text-shadow: 1px 1px rgba(0, 0, 0, 0.16);
                    clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%, 100% calc(100% - 0em), calc(100% - 0.8em) 50%, 100% 0em);

                    &:empty {
                        display: none !important;
                    }
                }

                &.has-transparent-logo {
                    .header .operator .logo img {
                        background-color: var(--ci-logo-bg-color, #ccc);
                        -o-object-fit: contain;
                        object-fit: contain;
                        padding: 10px;
                    }
                }

                .header {
                    display: grid;
                    row-gap: 12px;

                    @container (min-width: 700px) {
                        align-items: center;
                        justify-content: space-between;
                        grid-column: 1 / 4;
                        grid-template-columns: subgrid;
                        grid-template-rows: subgrid;
                    }

                    .operator {
                        display: grid;
                        align-items: center;
                        gap: 16px;
                        grid-template-columns: max-content auto;

                        @container (min-width: 700px) {
                            gap: 21px;
                        }

                        .logo {
                            width: clamp(120px, 120px + (3vw * 0.444), 137px);
                            height: auto;
                            margin-bottom: 0;
                            aspect-ratio: 16/11;

                            @container (min-width: 700px) {
                                width: 165px;
                                /* height: 110px; */
                            }

                            img {
                                border-radius: 8px;
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                display: block;
                            }
                        }

                        .title-rating {
                            display: grid;
                            gap: 6px;

                            .title {
                                font-weight: 500;
                                font-size: 20px;
                                font-size: clamp(16px, 16px + ((1vw - 0.2rem) * 0.444), 20px);
                                line-height: 1.3;
                            }

                            .rating-inner {
                                display: flex;
                                align-items: center;
                                line-height: 1;
                                flex-wrap: wrap;
                                gap: clamp(2px, 2px + (1vw * 0.444), 6px);

                                .stars-container {
                                    position: relative;
                                }

                                .stars,
                                .stars-filled {
                                    display: flex;
                                    gap: clamp(2px, 2px + (1vw * 0.444), 4px);

                                    svg {
                                        display: inline-block;
                                        height: clamp(14px, 14px + (1vw * 0.444), 20px);
                                        width: clamp(14px, 14px + (1vw * 0.444), 20px);
                                    }
                                }

                                .stars-filled {
                                    position: absolute;
                                    left: 0;
                                    top: 0;
                                    bottom: 0;
                                    right: 0;
                                    overflow: hidden;
                                    clip-path: inset(0 var(--fill, 0%) 0 0);
                                }

                                .number {
                                    font-size: 18px;

                                    .ours {
                                        font-weight: 700;
                                        color: #424141;
                                    }

                                    .off {
                                        font-weight: 600;
                                        font-size: 0.8em;
                                        color: #6e6e6e;
                                    }
                                }
                            }

                        }
                    }

                    .bonus {
                        position: relative;

                        @container (min-width: 700px) {
                            height: 100%;
                            display: grid;
                            align-items: center;
                            justify-content: center;
                            padding: 0 12px;
                        }

                        &::before,
                        &::after {
                            content: '';
                            position: absolute;
                            top: 10%;
                            bottom: 10%;
                            border-left: 1px solid #E8E8E8;
                        }

                        &::before {
                            left: 0;
                        }

                        &::after {
                            right: 0;
                        }

                        .bonus-title {
                            font-weight: 500;
                            font-size: clamp(18px, 18px + ((1vw - 0.2rem) * 0.444), 22px);
                            line-height: 1.3;

                            @container (min-width: 700px) {
                                max-width: 400px;
                            }
                        }
                    }

                    .links {
                        text-align: center;
                        display: grid;
                        gap: 10px;

                        @container (min-width: 700px) {
                            justify-content: flex-end;
                        }

                        .cta-btn {
                            gap: 10px;
                            padding: 16px 54px;
                            border-radius: 6px;
                            background-color: #884DDB;
                            color: white;
                            font-weight: 600;
                            font-size: 16px;
                            line-height: 1;
                            text-decoration: none;
                            text-align: center;
                        }

                        .review-link {
                            color: #6E6E6E;
                            font-weight: 400;
                            font-size: 16px;
                            line-height: 100%;
                            letter-spacing: 0%;
                            text-decoration: underline;
                            text-decoration-style: solid;
                            text-decoration-offset: 0;
                            text-decoration-thickness: 0;
                            text-decoration-skip-ink: auto;
                        }
                    }
                }

                .footer {
                    font-size: 12px;
                    color: #4e4e4e;

                    @container (min-width: 700px) {
                        grid-column: 1/4;
                    }
                }
            }
        }
    }
}