@import "../../../../assets/scss/abstracts/variables";
@import "../../../../assets/scss/abstracts/mixins";

.rdg-blocks .rdg-blocks-promote {
    width: 100%;
    background-color: var(--color-rdg-promote-site-bg);
    border-radius: 1rem;

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        border-bottom: .3rem solid var(--color-rdg-promote-site-header-border);
        background-color: var(--color-rdg-promote-site-primary);
        padding: 10px;
        color: var(--color-white);

        .promote-left {
            display: flex;
            align-items: center;

            .promote-logo {
                max-width: 50px;
                height: 50px;
            }
        }

        .promote-name {
            font-weight: bolder;
            margin-left: 10px;
        }

        .promote-right {
            margin-left: auto;
        }

        .promote-offer-amount {
            padding: 5px 15px;
            border-radius: 4px;
            font-size: 18px;
            font-weight: bold;
        }
    }

    .body {
        background-color: var(--color-rdg-top-winners-body-bg);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem 0px 1rem;

        .promote-content {
            display: flex;
            width: 100%;
            align-items: center;

            .promote-offer-description {
                font-weight: bold;
                margin-right: 2rem;
                width: 70%;
                margin: 0 auto;

                &::first-line {
                    color: var(--color-rdg-promote-site-primary);
                }
            }
        }

        .promote-action-button {
            width: 25%;
            text-align: right;

            button {
                color: var(--color-white);
                font-weight: bold;
                display: inline-block;
                padding: 10px;
                background-color: var(--color-promote-site-button-success);
                border: 2px solid var(--color-promote-site-button-success);
                border-top: 2px solid var(--color-promote-site-button-success-border);
                border-radius: 0.6rem;
                margin-right: auto;
                align-items: end;
            }
        }
    }

    .promote-features {
        list-style: none;
        background-color: var(--color-rdg-promote-site-gray-light);

        ul {
            padding: 0;
            list-style: none;
        }

        li {
            color: var(--color-rdg-promote-site-gray);
            position: relative;
            padding-left: 30px;
            line-height: 2rem;

            &:before {
                content: '';
                display: inline-block;
                background-image: url('../images/check-mark.svg');
                background-size: cover;
                width: 24px;
                height: 24px;
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);                
            }
        }
    }

    .footer {
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom-left-radius: .5rem;
        border-bottom-right-radius: .5rem;
        padding-top: 10px;
        padding-bottom: 30px;

        .terms {
            font-weight: 500;
            color: var(--color-rdg-promote-site-gray-dark);
            padding-left: 10px;
        }

        .age_terms {
            color: var(--color-rdg-promote-site-black);
            font-weight: bolder;
            text-align: center;
            padding: 1px;
            border: 2px solid var(--color-rdg-promote-site-red);
            border-radius: 50%;
            padding: 3px;
            max-width: 2.5rem;
            max-height: 2.5rem;
            font-size: .7rem;
        }
    }
}

@media (max-width: 1024px) {
    .rdg-blocks .rdg-blocks-promote .body .promote-content {
        flex-direction: column;
        align-items: center;
    }

    .rdg-blocks .rdg-blocks-promote .body .promote-content .promote-offer-description {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .rdg-blocks .rdg-blocks-promote .body .promote-content  {
        width: 100%;
        display: flex;
        justify-content: center;

        .promote-action-button  {
            width: 100%;
            text-align: center;
        }
    }
}
