.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.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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cg fill='%23fff' %3E%3Cpath d='m9.379 8 10.667 10.667-1.061 1.06L8.318 9.061z'/%3E%3Cpath d='M20.046 9.333 9.379 20l-1.06-1.06L18.985 8.273z'/%3E%3C/g%3E%3C/svg%3E");
    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("/wp-content/plugins/wp-fortune/assets/images/wheel-firework.svg") center center no-repeat;
    background-size: 520px;
}

.wpfrtn-wheel {
    position: relative;
    width: 340px;
    height: 340px;
    background: url("/wp-content/plugins/wp-fortune/assets/images/wheel-background.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("/wp-content/plugins/wp-fortune/assets/images/wheel-spin.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("/wp-content/plugins/wp-fortune/assets/images/wheel-star.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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='44' fill='none' class='finger'%3E%3Cpath fill='%23fff' d='M31.345 27.575c1.28.686.926 1.803.21 2.89-1.015 1.54-4.746 3.23-6.37 3.209-1.49-.018-2.543-.706-2.502-1.855'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='.8' d='M31.345 27.575c1.28.686.926 1.803.21 2.89-1.015 1.54-4.746 3.23-6.37 3.209-1.49-.018-2.543-.706-2.502-1.855'/%3E%3Cpath fill='%23fff' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='.8' d='M14.719 26.73c1.427 2.823 6.527 5.605 10.208 4.81 1.9-.41 5.598-2.337 6.34-3.993 1.271-2.836 1.2-5.505.248-8.306-.337-.992-.803-2.091-1.411-2.837-2.588-3.174-4.676-1.964-5.559-1.62-1.363-1.243-3.772-1.322-5.88.512-1.1-1.864-1.709-3.052-2.576-4.918-1.45-3.12-7.072-.765-4.708 2.716 1.61 2.37 2.59 4.476 3.484 7.06-.508.535-1.637 3.627-.147 6.575h0Z'/%3E%3Cpath fill='%23000' d='M18.243 15.4c1.038 1.785 2.051 3.054 3.913 3.812-1.108-.89-2.58-3.085-3.378-4.548l-.535.735ZM24.635 14.312l-.527.65c.905.775 1.913 1.65 2.794 1.919-.455-.344-1.576-1.877-2.267-2.57Z'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='.6' d='M28.833 27.257c-.258-2.103-.55-2.583-.83-3.57M27.236 28.342c-.855-2.176-1.474-3.139-2.178-4.534M25.293 29.58c-.786-1.403-1.29-1.99-1.881-2.83'/%3E%3Cpath fill='%23000' d='M14.415 20.091c.915 2.284 2.09 6.163 2.994 7.16-.191-.817-1.903-6.725-2.376-7.863l-.618.703ZM9.897 10.485c-.175-1.818 2.697-3.924 4.696-2.878-2.004-2.54-6.128.825-4.696 2.878Z'/%3E%3Cpath fill='%23000' d='M8.77 9.717c-.164-3.07 3.595-4.743 5.677-3.479-2.606-3.162-7.698.65-5.678 3.48Z'/%3E%3C/svg%3E") center no-repeat;
}

.wpfrtn-wheel__result-code span:after {
    content: "";
    display: block;
    width: 15px;
    height: 18px;
    margin-left: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='copy' viewBox='0 0 15 18'%3E%3Cpath d='M10.5.75h-9C.675.75 0 1.425 0 2.25v10.5h1.5V2.25h9V.75Zm-.75 3 4.5 4.5v7.5c0 .825-.675 1.5-1.5 1.5H4.492A1.498 1.498 0 0 1 3 15.75l.007-10.5c0-.825.668-1.5 1.493-1.5h5.25ZM9 9h4.125L9 4.875V9Z'/%3E%3C/svg%3E") 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("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljk5OTk5IDUuNTg1MThMMi4wNTA4IDAuNjM1OTg2TDAuNjM2NTg1IDIuMDUwMkw1LjU4NTc3IDYuOTk5MzlMMC42MzUzNzYgMTEuOTQ5OEwyLjA0OTU5IDEzLjM2NEw2Ljk5OTk5IDguNDEzNkwxMS45NTAzIDEzLjM2MzlMMTMuMzY0NSAxMS45NDk3TDguNDE0MiA2Ljk5OTM5TDEzLjM2MzMgMi4wNTAyOUwxMS45NDkxIDAuNjM2MDc5TDYuOTk5OTkgNS41ODUxOFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==") 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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Cg fill='%23fff'%3E%3Cpath d='M4.227 2.813 14.833 13.42l-1.06 1.06L3.166 3.874z'/%3E%3Cpath d='M14.833 3.874 4.227 14.481l-1.06-1.06L13.772 2.812z'/%3E%3C/g%3E%3C/svg%3E") 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;
    }
}