html.ch-popup-opened,
body.ch-popup-opened {
    overflow: hidden;
}

.ch-popup {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    font-weight: normal;
    font-size: 1em;
    background-color: var(--ch-popup-overlay-background-color);
}

.ch-popup:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
}

.ch-popup__wrapper {
    width: 100%;
    min-height: calc(100% - 3.5rem);
    max-width: 670px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ch-popup__close {
    top: 20px;
    right: 20px;
    width: 12px;
    position: absolute;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
}

.ch-popup__bg {
    margin: 0 auto;
    max-width: 340px;
    width: 100%;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 18px 26px 6px rgba(0, 0, 0, 0.1);
}

.ch-popup__body {
    width: 100%;
    height: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.ch-popup__content {
    width: 100%;
    max-width: 670px;
}


.ch-popup-overlay,
.ch-popup {
    display: none;
}

.ch-popup-opened .ch-popup-overlay {
    display: block;
}

.ch-popup-opened .ch-popup {
    display: flex;
}

.ch-popup-game {
}


.ch-popup-game .ch-popup-game__popup {
    position: relative;
    display: flex;
    width: 340px;
    box-sizing: border-box;
    padding: 4px 15px 20px 15px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 3.5px;
    background-color: var(--ch-popup-game__popup-bg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2)
}

.ch-popup-game .ch-popup-game__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.ch-popup-game .ch-popup-game__title {
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    color: var(--ch-popup-game__title)
}

.ch-popup-game .ch-popup-game__subtitle {
    margin-top: 0;
    color: var(--ch-popup-game__subtitle)
}

.ch-popup-game .ch-popup-game__description {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    color: var(--ch-popup-game__description)
}

.ch-popup-game .ch-popup-game__counter {
    color: var(--ch-popup-game__bg)
}

.ch-popup-game .ch-popup-game__field {
    display: none;
    grid-template-rows:repeat(4, 1fr);
    grid-template-columns:repeat(4, 1fr)
}

.ch-popup-game .ch-popup-game__field._active {
    display: grid
}

.ch-popup-game .ch-popup-game__cell {
    width: 76px;
    height: 76px;
    background-color: var(--ch-popup-game__bg);
    border: 1px solid var(--ch-popup-game__popup-bg);
    cursor: pointer
}

.ch-popup-game .ch-popup-game__cell:not(._opened):hover {
    opacity: .8
}

.ch-popup-game .ch-popup-game__cell._opened {
    background-image: url(../img/empty-cell.svg)
}

.ch-popup-game .ch-popup-game__cell._gift {
    background-image: url(../img/gift.svg);
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat
}

.ch-popup-game .ch-popup-game__promo-field {
    display: none;
    grid-template-columns:1fr auto;
    justify-items: center;
    background-color: var(--ch-popup-game__promo-bg);
    color: var(--ch-popup-game__promo-color);
    padding: 0 16px 16px 16px
}


.ch-popup-game .ch-popup-game__promo-field._active {
    display: grid
}

.promo-field img, .promo-field__button, .promo-field__description, .promo-field__title, .promocode__wrap {
    grid-column: 1/3
}

.promo-field__description, .promo-field__title {
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    margin-top: 0
}

.promo-field__description span, .promo-field__title span {
    color: var(--ch-popup-game__promo-highlight-color)
}

.ch-popup-game__promo-field .promo-field__cta{
    max-width: calc(100% - 38px )!important;
    text-align: center;
    text-decoration: none;
    background: var(--ch-popup-game__promo-button)
}

.promo-field__title {
    font-size: 16px;
    margin-bottom: 5px
}

.promo-field__description {
    font-size: 14px;
    margin-bottom: 30px
}

.promocode__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--ch-popup-game__copy-button-bg);
    padding: 4px 4px 4px 8px;
    border-radius: 6px;
    width: 100%
}

.promocode {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    border-radius: 3px;
    color: var(--ch-popup-game__promocode-color);
    width: 100%
}

.promocode__copy {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--ch-popup-game__promo-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    border: none;
    padding: 8px;
    background-color: var(--ch-popup-game__copy-button-bg);
    border-radius: 3px;
    margin-left: 10px;
    white-space: nowrap;
    cursor: pointer
}

.promo-field__button {
    width: 100%;
    margin-top: 8px;
    padding: 12px 24px;
    min-width: unset
}

.advantages {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    background-color: var(--block_bg);
    color: var(--second-font-color);
    text-align: center
}

.advantages img {
    width: auto;
    max-height: 80px;
}

.advantages__title {
    color: #fff;
    margin: 1rem auto;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
}


.advantages__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    list-style: none;
    gap: 16px;
}

.advantages__container {
    list-style: none;
}

.tabs .wp-block-table table.has-fixed-layout tr td:first-child {
    width: auto;
}

.tab-view__content {
    width: 100%;
}

.tab-view__content > :not(:last-child) {
    margin-bottom: 12px;
}

.screenshot-gallery__item img {
    height: auto;
}

/* Bonuses list */
.bonuses {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 1rem
}

.bonuses__heading {
    text-align: left
}

.bonuses__button {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 18px;
    border: none;
    background: 0 0;
    color: rgba(255, 255, 255, .5);
    grid-column: 2/3;
    cursor: pointer
}

.bonuses__button svg {
    fill: rgba(255, 255, 255, .5);
    transform: scale(80%)
}

.bonuses__button:hover {
    color: rgba(255, 255, 255, 1)
}

.bonuses__button:hover svg {
    fill: rgba(255, 255, 255, 1)
}

.bonuses__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    background-color: #152234;
    /*padding: 20px;*/
}

.bonuses__item {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    grid-template-row: auto auto 1fr;
    gap: 5px;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.bonuses__item:nth-child(1n) {
    background-color: #1976d2;
}

.bonuses__item:nth-child(2n) {
    background-color: #4caf50;
}

.bonuses__item:nth-child(3n) {
    background-color: #f44336;
}

.bonuses__item:nth-child(4n) {
    background-color: #ff5f00;
}

.bonuses__item .get-image {
    grid-column: 2/3;
    grid-row: 1/3;
    justify-self: end
}

.bonuses__timer {
    grid-column: 1/3
}

.bonuses__top-text {
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: rgba(255, 255, 255, .7)
}

.bonuses__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 22px;
    color: #fff
}

.bonus__top-text {
    font-size: 16px;
    line-height: 16px;
    color: rgba(255, 255, 255, .7)
}

.bonuses__timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 10px;
    font-size: .8rem;
}

.bonus__time, .bonus__time-name {
    text-align: center;
    align-self: center
}

.bonus__time-name {
    font-weight: 500;
    font-size: 10px;
    line-height: 15px;
    color: #fff;
    opacity: .8;
    padding: 0 2px
}

.bonus__time_hours, .bonus__time_minutes {
    position: relative
}

.bonus__time_hours:after, .bonus__time_minutes:after {
    content: ':';
    position: absolute;
    top: 0;
    right: -2px
}

.bonus__time-left {
    flex: 1 1;
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    grid-template-rows:repeat(2, 1fr)
}

.bonuses__item-button {
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer
}

.bonuses__item-button:only-of-type {
    grid-column: span 2
}

.bonuses__item-button_1 {
    background-color: #fff;
    color: #000
}

.bonuses__item-button_1:hover {
    opacity: .8
}

.bonuses__item-button_2 {
    background-color: rgba(255, 255, 255, .3);
    color: #fff
}

.bonuses__item-button_2:hover {
    background-color: rgba(255, 255, 255, .5)
}

.glightbox-open {
    overflow: unset!important;
}

.gslide-image img {
    max-width: 80vw!important;
    max-height: 80vh!important;
}


@media (max-width:767px) {
    .ch-popup-game .ch-popup-game__popup,
    .ch-popup__bg {
        max-width: 90vw;
    }
}

@media (max-width:467px) {
    .ch-popup-game .ch-popup-game__cell {
        width: 60px;
        height: 60px;
    }
}
