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

@property --color-rdg-experts-banner-left {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-rdg-experts-banner-img-border {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-rdg-experts-banner-description {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-rdg-experts-banner-right-bg {syntax: "<color>";inherits: true;initial-value: #F1F1F1;}
@property --color-rdg-experts-banner-sponsor {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-rdg-experts-banner-btn-bg {syntax: "<color>";inherits: true;initial-value: #00bc00;}
@property --color-rdg-experts-banner-btn-border {syntax: "<color>";inherits: true;initial-value: #68f96e;}
@property --color-rdg-experts-banner-btn-hover {syntax: "<color>";inherits: true;initial-value: #244d0e;}
@property --color-rdg-experts-banner-link {syntax: "<color>";inherits: true;initial-value: #ffffff;}

.rdg-blocks .rdg-experts-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;

    @media screen and (max-width: $breakpoint-md) {
        flex-direction: column;
    }

    p {
        margin: 0;
    }

    .left,
    .right {
        display: flex;
        align-items: center;

        @media screen and (max-width: $breakpoint-md) {
            flex-direction: column;
        }
    }

        .left {
            background-color: var(--color-rdg-experts-banner-left);
            width: 30%;
            border-top-left-radius: 0.8rem;
            border-bottom-left-radius: 0.8rem;
            padding: 0.9375rem 1.25rem;

        @media screen and (max-width: $breakpoint-md) {
            width: 100%;
            border-bottom-left-radius: 0;
            border-top-left-radius: 0.8rem;
            border-top-right-radius: 0.8rem;
        }

        .expert-img img {
            width: 3.75rem;
            height: 3.75rem;
            border-radius: 50%;
            border: 0.1875rem solid var(--color-rdg-experts-banner-img-border);
            object-fit: cover;
        }

        .description {
            padding-left: 0.9375rem;
            color: var(--color-rdg-experts-banner-description);

            @media screen and (max-width: $breakpoint-md) {
                width: 100%;
                text-align: center;
                padding-left: 0;
            }

            .expert-name {
                padding-top: 0.1875rem;
            }
        }
    }

    .right {
        background-color: var(--color-rdg-experts-banner-right-bg);
        width: 70%;
        border-top-right-radius: 0.8rem;
        border-bottom-right-radius: 0.8rem;
        padding: 0.9375rem 1.25rem;
        justify-content: space-between;

        @media screen and (max-width: $breakpoint-md) {
            width: 100%;
            border-top-right-radius: 0;
            border-bottom-left-radius: 0.8rem;
            border-bottom-right-radius: 0.8rem;
            padding: 1.25rem;
        }

        .odds {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-width: 12.5rem;

            .accent {
                padding-top: 0.625rem;
            }
        }

        .sponsor {
            color: var(--color-rdg-experts-banner-sponsor);
            padding: 0 1.25rem;

            @media screen and (max-width: $breakpoint-md) {
                padding: 20px 0;
                text-align: center;
            }
        }

        .btn {
            background-color: var(--color-rdg-experts-banner-btn-bg);
            border-top: 2px solid var(--color-rdg-experts-banner-btn-border);
            padding: 0.625rem 1.25rem;
            border-radius: 5px;
            text-align: center;
            margin-left: 1.25rem;
            transition: 0.3s ease-in;

            @media screen and (max-width: $breakpoint-md) {
                margin-left: 0;
            }

            &:hover {
                background-color: var(--color-rdg-experts-banner-btn-hover);
            }
        }

        a {
            color: var(--color-rdg-experts-banner-link);
        }
    }
}
