.pjs_widget {
    width: auto;
    grid-column: 1 / -1;
    flex: 1 1 100%;
    margin: 0 20px 20px 20px;
    box-sizing: border-box;
}

.pjs_widget.pjs_hidden {
    display: none;
}

.pjs_widget * {
    box-sizing: border-box;
}

.pjs_panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 16px;
    background-color: var(--pjs-panel-bg, #0d2d2a);
    border: 1px solid var(--pjs-panel-border, #084843);
}

.pjs_panel:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../images/jackpot_star/confetti.png") top left / 1344px 236px repeat-x;
}

.pjs_panel:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pjs-panel-shade, linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%));
}

.pjs_head,
.pjs_cells,
.pjs_foot {
    position: relative;
    z-index: 1;
}

.pjs_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 16px 0;
}

.pjs_brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pjs_logo {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    object-fit: contain;
    display: block;
}

.pjs_title {
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--pjs-text-color, #edeef0);
}

.pjs_see_games {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--pjs-text-color, #edeef0);
    text-decoration: none;
    white-space: nowrap;
}

.pjs_see_games:after {
    content: "\203A";
    font-size: 1.2em;
    line-height: 1;
}

#pragmatic_jackpot_star .pjs_see_games,
#pragmatic_jackpot_star .pjs_see_games:visited,
#pragmatic_jackpot_star .pjs_see_games:hover {
    color: var(--pjs-text-color, #edeef0);
    text-decoration: none;
}

.pjs_cells {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.pjs_cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--pjs-cell-bg, #171918);
    border-radius: 8px;
    padding: 16px 8px;
}

.pjs_cell_name {
    margin: 0 0 4px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pjs-label-color, #0bd8b6);
    text-transform: capitalize;
    white-space: nowrap;
}

.pjs_cell_amount {
    max-width: 100%;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pjs-text-color, #edeef0);
    white-space: nowrap;
}

.pjs_cell_amount.pjs_amt_l1 { font-size: 17px; }
.pjs_cell_amount.pjs_amt_l2 { font-size: 15px; }
.pjs_cell_amount.pjs_amt_l3 { font-size: 13px; letter-spacing: -0.4px; }

.pjs_foot {
    display: none;
}

@media (max-width: 1024px) {
    .pjs_widget {
        margin: 0 10px 16px 10px;
    }

    .pjs_panel {
        border-radius: 8px;
        padding: 8px;
    }

    .pjs_panel:before {
        background: url("../../images/jackpot_star/confetti_mobile.png") top center / 100% auto no-repeat;
    }

    .pjs_panel:after {
        display: none;
    }

    .pjs_head {
        margin-bottom: 8px;
    }

    .pjs_logo {
        width: 44px;
        height: 44px;
    }

    .pjs_title {
        font-size: 20px;
        letter-spacing: 0;
    }

    .pjs_see_games_top {
        display: none;
    }

    .pjs_cells {
        flex-wrap: wrap;
    }

    .pjs_cell {
        flex: 0 0 calc(50% - 4px);
        padding: 8px 4px;
    }

    .pjs_cell_name {
        font-size: 12px;
    }

    .pjs_cell_amount {
        font-size: 16px;
    }

    .pjs_cell_amount.pjs_amt_l1 { font-size: 14px; }
    .pjs_cell_amount.pjs_amt_l2 { font-size: 12.5px; }
    .pjs_cell_amount.pjs_amt_l3 { font-size: 11px; }

    .pjs_foot {
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }

    .pjs_foot .pjs_see_games {
        font-size: 12px;
    }
}
