.wpfrtn-modal {
    position: fixed;
    bottom: -200px;
    left: 50%;
    width: 300px;
    margin-left: -150px;
    padding: 8px;
    border-radius: 10px;
    z-index: 100;
    transition-property: bottom, visibility;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
    visibility: hidden;
    cursor: pointer;
}

.wpfrtn-modal.tmp-hidden {
    display: none;
}

.wpfrtn-modal.visible {
    bottom: 20px;
    visibility: visible;
}

.wpfrtn-modal__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpfrtn-modal__image {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    margin-right: 10px;
}

.wpfrtn-modal__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wpfrtn-modal__title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.1;
}

.wpfrtn-modal__description {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.wpfrtn-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
}

.wpfrtn-modal__button:hover {
    opacity: 0.8;
}

.wpfrtn-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../downloads/ed8dfe2c95d08060507f5232e4058d6309530f541b3b877c9f7b75c8e2abbf41.svg);
    border: 0;
    opacity: 0.7;
    cursor: pointer;
}

.wpfrtn-modal__close:hover {
    opacity: 1;
}

.wpfrtn-wheel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.80);
    z-index: 100;
}

.wpfrtn-wheel-container.win {
    background: rgba(0, 0, 0, 0.80) url(../downloads/f75bda569f32124728b560a7ba6f2ee569fd03bc82d1a7c5ed46c60056b39015.svg) center center no-repeat;
    background-size: 520px;
}

.wpfrtn-wheel {
    position: relative;
    width: 340px;
    height: 340px;
    background: url(../downloads/2d27c14978d5baa6e22c13d606268adca94a7691e1d043d078ffc14b85370144.svg) center center no-repeat;
    background-size: contain;
}

.wpfrtn-wheel__spin {
    position: absolute;
    width: 46px;
    height: 85px;
    top: -15px;
    left: 50%;
    margin-left: -23px;
    background: url(../downloads/113f3e402b17ddcf04b208b26f918fccd54d41d89f0ab47771b148baebdbbb7f.svg) center center no-repeat;
    background-size: contain;
}

.wpfrtn-wheel__star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    margin-top: -43px;
    margin-left: -43px;
    background: url(../downloads/30c74dd3ccdbb6ba72803d9e0296c1e9fafe80b152a8f5f42add7be6c2d740f0.svg) center center no-repeat;
    background-size: contain;
}

.wpfrtn-wheel-container.win .wpfrtn-wheel__star {
    display: none;
}

.wpfrtn-wheel__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 282px;
    height: 282px;
    margin-top: -141px;
    margin-left: -141px;
    transform: rotate(0deg);
    transition-timing-function: ease-out;
    transition-property: transform;
    transition-duration: 5s;
}

.wpfrtn-wheel__result {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 282px;
    height: 282px;
    margin-top: -141px;
    margin-left: -141px;
}

.wpfrtn-wheel__result-image {
    width: 146px;
    height: initial;
}

.wpfrtn-wheel__result-text {
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
    text-align: center;
    color: #FFCD1A;
}

.wpfrtn-wheel__result-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    background-color: #2F8F41;
    border-radius: 4px;
}

.wpfrtn-wheel__result-button:hover {
    opacity: 0.8;
}

.wpfrtn-wheel__result-code {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
    color: #000000;
    background-color: #FFC530;
    text-decoration: underline dashed 1px !important;
    text-decoration-thickness: 1px;
    text-underline-position: under;
    box-shadow: -2px -2px 10px rgba(255, 188, 17, 0.8), 4px 4px 10px rgba(0, 0, 0, 0.35);
}

.wpfrtn-wheel__result-code:after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.wpfrtn-wheel__result-code span {
    display: flex;
    align-items: center;
    position: relative;
}

.wpfrtn-wheel__result-code span:before {
    content: "";
    display: block;
    position: absolute;
    bottom: -30px;
    right: -25px;
    width: 42px;
    height: 44px;
    background: url(../downloads/5d3f2ffce2c40cb18f806b384d8a8287b606c26e795cca0b265323a8ac1225f2.svg) center no-repeat;
}

.wpfrtn-wheel__result-code span:after {
    content: "";
    display: block;
    width: 15px;
    height: 18px;
    margin-left: 10px;
    background: url(../downloads/17184f24fa56d1bbf4a8fc7c19c808a8302c3e0b80dcfe36cdf1e1cfc18e6416.svg) center no-repeat;
}

.wpfrtn-block {
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 105px 20px 32px;
    background: linear-gradient(270deg, #FFD029 15.16%, #FF6A00 100%), #20303D;
    border-radius: 10px;
    clear: both;
    overflow: hidden;
    cursor: pointer;
}

.wpfrtn-block--purple {
    background: linear-gradient(270deg, #29B9FF 15.16%, #FF299A 100%);
}

.wpfrtn-block__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wpfrtn-block__title {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
    color: #ffffff;
}

.wpfrtn-block__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: max-content;
    height: 40px;
    padding: 0 30px;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    background-color: #29B738;
    border-radius: 5px;
}

.wpfrtn-block:hover .wpfrtn-block__button {
    opacity: 0.8;
}

.wpfrtn-block--purple .wpfrtn-block__button {
    background-color: #000000;
}

.wpfrtn-block__image {
    display: block;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.wp-fortune-modal {
    background: #374956 !important;
    border-radius: 4px;
    padding: 15px;
    color: #fff;
    max-width: 400px;
}

.wp-fortune-modal .popup__close {
    width: 36px;
    height: 36px;
    background: #22252D url(../downloads/f19c13a15c68e98ccb94589df32a5ad777fdcfbf3405355407c77968c1db33fe.svg) 50% 50% no-repeat !important;
    background-color: transparent !important;
    background-size: 16px !important;
}

.wp-fortune-modal .popup__heading {
    display: none;
}

.wp-fortune-modal .popup__heading__promo {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.wp-fortune-modal .popup__heading__promo-desc {
    color: #FFCD1A;
}

.wp-fortune-modal .wp-fortune-modal__heading span:not(.popup__heading__promo-desc) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(208, 153, 84, 0.5) 0%, rgba(255, 248, 220, 0.5) 50%, rgba(154, 87, 0, 0.05) 53.65%, rgba(255, 218, 114, 0.5) 100%), linear-gradient(0deg, #FFC530, #FFC530), linear-gradient(0deg, #FFD14F, #FFD14F), #1D262D;
    border-radius: 4px;
    padding: 5px 10px 3px;
    color: #000;
}

.wp-fortune-modal .popup__heading__promo div {
    display: inline;
    font-size: 16px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.wp-fortune-modal .popup__heading span:not(.popup__heading__promo-desc) {
    display: inline-block;
    background: linear-gradient(180deg, rgba(208, 153, 84, 0.5) 0%, rgba(255, 248, 220, 0.5) 50%, rgba(154, 87, 0, 0.05) 53.65%, rgba(255, 218, 114, 0.5) 100%), linear-gradient(0deg, #FFC530, #FFC530), linear-gradient(0deg, #FFD14F, #FFD14F), #1D262D;
    border-radius: 4px;
    padding: 5px 10px 3px;
    color: #000;
}

.wp-fortune-modal__content {
    text-align: left;
}

.wp-fortune-modal__content > ol {
    counter-reset: steps;
    margin: 20px 0 0;
    padding: 0;
    text-align: left;
}

.wp-fortune-modal__content > ol > li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.6);
    list-style: none;
}

.wp-fortune-modal__content > ol > li:before {
    counter-increment: steps;
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #2E6939;
    color: #56C86B;
}

.wp-fortune-modal__content > ol .search-engine-image {
    display: inline-block;
    margin: 0 5px;
    vertical-align: text-top;
}

.wp-fortune-modal__image {
    margin: 0;
    background: #1D262D;
    padding: 10px;
    text-align: center;
    position: relative;
    display: block;
}

.wp-fortune-modal__image-img {
    display: block;
    width: 100%;
    padding: 10px;
}

.wp-fortune-modal .wp-fortune-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.wp-fortune-modal .wp-fortune-modal__close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.wp-fortune-modal .wp-fortune-modal__close:after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: url(../downloads/a507f3129b4dd4ce07bfb9a4974249919e9fc66ba60a7b16bdad011da142e437.svg) no-repeat center;
    opacity: 0.7;
}

.wp-fortune-modal .wp-fortune-modal__close:hover:after {
    opacity: 0.9;
}

/*** Animate ***/

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeOutBottomLeft {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(-100%, 100%, 0);
    }
}

.fadeOutBottomLeft {
    animation-name: fadeOutBottomLeft;
}

@keyframes fadeOutBottomRight {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(calc(100% - 100px), calc(100% - 100px), 0);
    }
}

.fadeOutBottomRight {
    animation-name: fadeOutBottomRight;
}

/*** Responsive ***/

@media (min-width: 360px) {

    .wpfrtn-modal {
        width: 340px;
        margin-left: -170px;
    }
}

@media (min-width: 768px) {

    .wpfrtn-modal {
        width: 674px;
        margin-left: -337px;
        padding: 20px;
    }

    .wpfrtn-modal__image {
        width: 145px;
        height: 145px;
        margin-right: 26px;
    }

    .wpfrtn-modal__main {
        gap: 8px;
    }

    .wpfrtn-modal__title {
        font-size: 33px;
    }

    .wpfrtn-modal__description {
        font-size: 23px;
    }

    .wpfrtn-modal__button {
        height: 36px;
        padding: 0 30px;
        font-size: 16px;
    }

    .wpfrtn-modal__close {
        width: 36px;
        height: 36px;
    }

    .wpfrtn-wheel-container.win {
        background-size: initial;
    }

    .wpfrtn-wheel {
        width: 500px;
        height: 500px;
    }

    .wpfrtn-wheel__spin {
        top: -20px;
        width: 68px;
        height: 127px;
        margin-left: -34px;
    }

    .wpfrtn-wheel__star {
        width: 130px;
        height: 130px;
        margin-top: -65px;
        margin-left: -65px;
    }

    .wpfrtn-wheel__spinner {
        width: 414px;
        height: 414px;
        margin-top: -207px;
        margin-left: -207px;
    }

    .wpfrtn-wheel__result {
        gap: 20px;
        width: 414px;
        height: 414px;
        margin-top: -207px;
        margin-left: -207px;
    }

    .wpfrtn-wheel__result-image {
        width: 220px;
    }

    .wpfrtn-wheel__result-text {
        font-size: 28px;
        line-height: 1.2;
    }

    .wpfrtn-wheel__result-button {
        height: 50px;
        padding: 0 35px;
        font-size: 24px;
    }

    .wpfrtn-wheel__result-code {
        height: 40px;
        padding: 0 35px;
        font-size: 24px;
    }

    .wpfrtn-block {
        max-width: 738px;
        margin: 30px auto;
        padding: 20px 264px 20px 32px;
    }

    .wpfrtn-block__title {
        font-size: 26px;
    }

    .wpfrtn-block__image {
        right: 32px;
    }

    .wp-fortune-modal.popup__body {
        min-width: 600px;
        padding: 20px;
    }

    .wp-fortune-modal .popup__heading__promo,
    .wp-fortune-modal__content > ol > li {
        font-size: 20px;
        line-height: 30px;
    }

    .wp-fortune-modal .wp-fortune-modal__heading span:not(.popup__heading__promo-desc) {
        height: 28px;
        line-height: 22px;
    }

    .wp-fortune-modal .popup__heading__promo div {
        font-size: 20px;
        line-height: 30px;
    }

    .wp-fortune-modal .search-engine-image {
        margin: 0 8px;
    }
}