#appIntervalBanner .dark-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #2a2a2a;
    opacity: 0.65;
}
#appIntervalBanner .closeButton {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    background-image: url("/local/templates/adeta/images/icons/cross_exit _white.svg");
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 1;
    padding: 10px;
}

#saleWindow,
#wheelWindow {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 99999;
}

#wheelWindow .modalWinContent {
    transform: translateX(-100%);
    animation: modalWinContentShift 500ms ease-out forwards;
}

@keyframes modalWinContentShift {
    to {
        transform: translateX(0%);
    }
}

#wheelWindow .widgetAnimationSlide {
    overflow: hidden;
}

#wheelWindow .wheelWrap {
    position: relative;
    height: 520px;
}

#wheelWindow .modalWinContent {
    width: 860px;
    max-width: 80%;
    margin-left: 0;
    margin-top: 11%;
    background: url("../../img/background_spin.png");
    background-position: center center;
    background-size: cover;
    background-color: #000;
    color: #fff;
    border-radius: 0 10px 10px 0;
}

#wheelWindow .widgetContent {
    position: absolute;
    width: 426px;
    left: 334px;
    top: 110px;
    text-align: center;
}

#wheelWindow .widgetHeader {
    font-size: 40px;
    line-height: 1.2;
    text-transform: uppercase;
}

#wheelWindow .formWrapper .widgetHeader {
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    text-transform: none;
}

#wheelWindow .formWrapper .dopText {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

#wheelWindow .widgetSubheader {
    margin-bottom: 30px;
    font-size: 25px;
}

#wheelWindow .widgetSubtitles {
    text-align: center;
    letter-spacing: 0.03em;
    font-size: 16px;
}

#wheelWindow .widgetStart {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    margin: 20px auto 10px;
    padding: 12px 45px;
    border-radius: 5px;
    background: #f7bc58;
    cursor: pointer;
    line-height: 1;
    color: #000;
}

#wheelWindow .formWrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#wheelWindow .formWrapper span.valueGift {
    color: var(--yellow-color);
    font-weight: 700;
}
#wheelWindow form#formSpin {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin: 15px 0 0;
    justify-content: center;
}
#wheelWindow form#formSpin .rowField {
    display: flex;
    flex-direction: column;
}
#wheelWindow form#formSpin .rowField .phoneFieldBlock__message {
    text-align: left;
}

#wheelWindow button.sendFormCarousel {
    background-color: var(--yellow-color);
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    color: #fff;
    border: none;
    padding: 5px 20px;
    cursor: pointer;
}
#wheelWindow form#formSpin .messageBlock {
    display: none;
}
#wheelWindow form#formSpin .messageBlock.active {
    display: block;
    border: 1px solid;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    color: #1bdb1b;
    font-weight: 500;
}

/* общий блок для всех элементов */
#wheelWindow .deal-wheel {
    width: fit-content;
    /* задаём переменные блока */
    /* размеры колеса */
    --size: clamp(250px, 80vmin, 500px);
    /* настройки яркости и заливки фона секторов */
    --lg-hs: 0 3%;
    --lg-stop: 50%;
    --lg: linear-gradient(hsl(var(--lg-hs) 0%) 0 var(--lg-stop), hsl(var(--lg-hs) 20%) var(--lg-stop) 100%);
    /* добавляем позиционирование относительно других элементов */
    position: relative;
    /* подключаем сетку */
    display: grid;
    grid-gap: calc(var(--size) / 20);
    /* выравниваем содержимое блока по центру */
    align-items: center;
    /* задаём имена областей внутри сетки */
    grid-template-areas:
        "spinner"
        "trigger";
    /* устанавливаем размер шрифта */
    font-size: calc(var(--size) / 21);
    position: absolute;
    left: -30%;
    top: 10px;
}

/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
#wheelWindow .deal-wheel > * {
    grid-area: spinner;
}

/* сам блок и кнопка будут находиться в области сетки с названием trigger и будут выровнены по центру */
#wheelWindow .deal-wheel .btn-spin {
    grid-area: trigger;
    justify-self: center;
}

/* сектор колеса */
#wheelWindow .spinner {
    /* добавляем относительное позиционирование */
    position: relative;
    /* подключаем сетку */
    display: grid;
    /* выравниваем всё по центру */
    align-items: center;
    /* добавляем элемент в сетку */
    grid-template-areas: "spinner";
    /* устанавливаем размеры */
    width: var(--size);
    height: var(--size);
    /* поворачиваем элемент  */
    transform: rotate(calc(var(--rotate, 25) * 1deg));
    /* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
    border-radius: 50%;
}

/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
#wheelWindow .spinner * {
    grid-area: spinner;
}

/* текст на секторах */
#wheelWindow .prize {
    /* включаем «гибкую» вёрстку */
    display: flex;
    align-items: center;
    /* задаём отступы от краёв блока */
    padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 20);
    /* устанавливаем размеры */
    width: 50%;
    height: 50%;
    /* устанавливаем координаты, относительно которых будем вращать текст */
    transform-origin: center right;
    /* поворачиваем текст */
    transform: rotate(var(--rotate));
    /* запрещаем пользователю выделять мышкой текст на секторах */
    user-select: none;
    font-size: 15px;
}

#wheelWindow .textWrapper {
    transform: rotate(180deg);
    width: fit-content;
}

#wheelWindow .text {
    display: block;
    margin: 0 0 0 auto;
    width: fit-content;
    font-size: 14px;
    text-align: end;
    line-height: 1.2;
    color: #000;
}
/* язычок */
#wheelWindow .ticker {
    /* добавляем относительное позиционирование */
    right: -70px;
    left: auto;
    position: absolute;
    z-index: 1;
}
/* кнопка запуска колеса */
#wheelWindow .btn-spin {
    color: white;
    background: black;
    border: none;
    /* берём размер шрифта такой же, как в колесе */
    font-size: inherit;
    /* добавляем отступы от текста внутри кнопки */
    padding: 0.9rem 2rem 1rem;
    /* скругляем углы */
    border-radius: 0.5rem;
    /* меняем внешний вид курсора над кнопкой на руку*/
    cursor: pointer;
}
/* если кнопка нажата и неактивна */
#wheelWindow .btn-spin:disabled {
    /* меняем внешний вид курсора */
    cursor: progress;
    /* делаем кнопку полупрозрачной */
    opacity: 0.25;
}
/* анимация вращения */
#wheelWindow .is-spinning .spinner {
    transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}
/* анимация движения язычка */
#wheelWindow .is-spinning .ticker {
    animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#wheelWindow input[typr="text"] {
    width: 200px;
}

#wheelWindow .messageField.active {
    position: absolute;
    bottom: -25px;
    left: 0;
    text-align: left;
    color: #ff6464;
    font-size: 13px;
}
#saleWindow .modalWinContent.saleWindowContent label {
    display: none;
}
/* эффект, когда колесо задевает язычок при вращении */
@keyframes tick {
    40% {
        /* чуть поворачиваем язычок наверх в середине анимации */
        transform: rotate(-12deg);
    }
}

/* анимируем выпавший сектор */
#wheelWindow .prize.selected .text {
    /* настраиваем длительность анимации */
    animation: selected 800ms ease;
}

/* настраиваем анимацию текста на выпавшем секторе по кадрам */
@keyframes selected {
    /* что происходит на 25% от начала анимации */
    25% {
        /* увеличиваем текст в 1,25 раза */
        transform: scale(1.25);
        /* добавляем тексту тень */
        text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
    }

    40% {
        transform: scale(0.92);
        text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
    }

    60% {
        transform: scale(1.02);
        text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
    }

    75% {
        transform: scale(0.98);
    }

    85% {
        transform: scale(1);
    }
}

@media (max-width: 1200px) {
    #wheelWindow .deal-wheel {
        left: -35%;
    }
    #wheelWindow .widgetContent {
        left: 290px;
    }
}

@media (max-width: 1024px) {
    #wheelWindow .deal-wheel {
        left: -45%;
    }
    #wheelWindow .widgetContent {
        left: 290px;
    }
}

@media (max-width: 900px) {
    #wheelWindow {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 90px;
        z-index: 99999;
        transform: none;
    }

    #wheelWindow .widgetHeader br {
        display: none;
    }

    #wheelWindow .wheelWrap {
        width: 100%;
        bottom: -20%;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
        height: 520px;
    }

    #wheelWindow .widgetContent {
        position: static;
        width: 100%;
        height: fit-content;
    }
    #wheelWindow .widgetSubheader {
        margin-bottom: 15px;
        font-size: 25px;
    }

    #wheelWindow .deal-wheel {
        position: relative;
        left: 0;
        bottom: -40%;
        margin: auto;
    }

    #wheelWindow .modalWinContent {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 0 50px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        height: 350px;
        padding: 41px 0px 0;
        border-radius: 10px 10px 0px 0px;
        box-shadow: 0 0 9px rgb(119 119 119 / 30%);
        background: url(desktop.png) no-repeat bottom center #000000;
        transform: translateY(100%);
    }

    #wheelWindow .wheelArrow {
        position: absolute;
        top: 50px;
        left: 43%;
        width: 70.79px;
        transform: translateX(-40%);
        z-index: 100;
        transform: rotate(-90deg);
    }

    #wheelWindow .widgetHeader {
        font-size: 30px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #ffffff;
        text-align: center;
    }

    #wheelWindow .widgetSubheader {
        font-size: 20px;
        line-height: 1;
        margin-bottom: 0;
        font-weight: 700;
        color: #ffffff;
        text-align: center;
    }

    #wheelWindow .widgetSubtitles {
        font-weight: 700;
        font-size: 14px;
        line-height: 1;
        margin-top: 20px;
        text-align: center;
    }

    #wheelWindow .widgetStart {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        text-align: center;
        margin: 10px auto;
    }

    #wheelWindow .wheelBackground {
        width: 472px;
        height: 426px;
        background: url("baraban_desktop.png");
        background-position: center center;
        background-size: cover;
        margin-top: 38px;
    }
    #wheelWindow .wheelColorMain {
        color: #f7bc58;
    }
    .wheelTextContainer text {
        color: #ffffff;
    }
    #wheelWindow .wheelColorContrast {
        color: #ffffff;
    }
    .wheelTextContainer text:nth-child(2n) {
        color: #000;
        fill: #000;
    }
    #wheelWindow svg.wheel_svg {
        width: 100%;
        height: 69%;
        position: absolute;
        top: 90px;
        left: 0%;
        z-index: 1;
    }
    #wheelWindow .ticker {
        right: 43%;
        top: -34px;
        transform: rotate(-90deg);
        width: 60px;
    }

    #wheelWindow .text {
        font-size: 12px;
        line-height: 1;
    }
}

@media (max-width: 500px) {
    #wheelWindow .formWrapper .widgetHeader {
        font-size: 25px;
        font-weight: 500;
    }
    #wheelWindow .widgetSubheader {
        font-size: 20px;
        font-weight: 400;
    }
    #wheelWindow .widgetSubtitles {
        display: none;
    }

    #wheelWindow .ticker {
        right: 38%;
        top: -34px;
        transform: rotate(-90deg);
        z-index: 1;
        width: 60px;
    }
}

@media (max-width: 500px) {
    #wheelWindow .text {
        font-size: 10px;
    }
}

/* МОДАЛЬНОЕ ОКНО ВЫДАЧИ СКИДКИ */
#saleWindow .modalWinContent.saleWindowContent {
    width: 963px;
    padding: 20px 100px 50px;
    /* background: url('/local/templates/adeta/images/back_sale_window.png'); */
    color: #fff;
    overflow: hidden;
    border-radius: 5px;
}
#saleWindow .headingForm {
    font-size: 35px;
    font-weight: 500;
}
#saleWindow .dopHeading {
    font-size: 22px;
    font-weight: 500;
}
#saleWindow .saleInfo {
    display: flex;
    font-size: 80px;
    font-weight: 700;
}
#saleWindow .dopText {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
}
#saleWindow .formHeaderCallBack {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 30px;
}
#saleWindow .formHeaderCallBack input[type="tel"] {
    height: 50px;
    border-radius: 50px;
    font-size: 20px;
    padding: 15px 30px;
}
#saleWindow .formHeaderCallBack .submitBut {
    padding: 0px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 20px;
    height: 50px;
    background: #9f70d1;
}
#saleWindow .formHeaderCallBack .submitBut:hover {
    background: #8653bd;
}

#saleWindow .formSaleWindow {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 15px;
}

#saleWindow .formSaleWindow input[type="tel"] {
    height: 50px;
    border-radius: 50px;
    font-size: 20px;
}

#saleWindow .formSaleWindow .submitBut {
    padding: 0px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 20px;
    height: 50px;
    /* background: #FF8C00; */
    background: #444444;
}

@media (max-width: 768px) {
    #saleWindow .modalWinContent.saleWindowContent {
        position: fixed;
        bottom: 65px;
        max-width: 100%;
        margin-top: 0;
        padding: 30px;
        transform: translateY(100%);
        animation: saleWindowContentShift 500ms ease-out forwards;
    }

    #saleWindow .phoneFieldBlock {
        min-width: 0;
    }

    #saleWindow .formSaleWindow input[type="tel"] {
        height: 40px;
        font-size: 14px;
    }
    #saleWindow .formSaleWindow .submitBut {
        padding: 0px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 15px;
        height: 40px;
        background: #444444;
        /* background: #FF8C00; */
    }
    #saleWindow .formSaleWindow .submitBut:hover {
        background: #2a2a2a;
    }
    @keyframes saleWindowContentShift {
        to {
            transform: translateX(0%);
        }
    }
    #saleWindow .headingForm {
        font-size: 20px;
    }
    #saleWindow .dopHeading {
        font-size: 14px;
    }
    #saleWindow .dopText {
        font-size: 14px;
        margin-bottom: 20px;
    }
    #saleWindow .formHeaderCallBack {
        column-gap: 15px;
    }
    #saleWindow .formHeaderCallBack input[type="tel"] {
        height: 40px;
        font-size: 16px;
        padding: 10px 20px;
    }
    #saleWindow .formHeaderCallBack .submitBut {
        font-size: 15px;
        height: 40px;
    }
}
/* ============================== */

.inverval__button {
    background-color: var(--interval-base) !important;
    &:hover {
        background-color: var(--interval-hover) !important;
    }
}
