@import url('https://fonts.googleapis.com/css2?family=Lato:wght@600;700;800&display=swap');

body .cbm-presale-toplist__wrapper {
    margin: 24px 0;
}

body .cbm-presale-toplist__offers-list {
    display: flex;
    flex-direction: column;
    counter-reset: presale-toplist-heading;
    gap: 24px;
}

body .cbm-presale-toplist__offer {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 44px 0 #00000021;
    gap: 16px;
}

body .cbm-presale-toplist__offer-body {
    position: relative;
    display: grid;
    padding: 0;
    border: unset;
    gap: 16px;
    grid-template-areas: 'logo-w-title link';
    grid-template-columns: auto 160px;
}

body .cbm-presale-toplist__offer-body:before {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
    line-height: 140%;
    position: absolute;
    top: -24px;
    left: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    content: counter(presale-toplist-heading);
    counter-increment: presale-toplist-heading;
    color: #fff;
    border: unset;
    border-radius: 7px 0 0;
    background: #222;
}

body .cbm-presale-toplist__offer-logo-w-title {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-area: logo-w-title;
}

body .cbm-presale-toplist__offer-logo {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 100%;
}

body .cbm-presale-toplist__offer-logo img {
    width: 60px;
    height: 60px;
    border-radius: inherit;
    object-fit: contain;
}

body .cbm-presale-toplist__offer-title,
body .cbm-presale-toplist__offer-title a {
    font-family: Lato, sans-serif;
    font-size: 20px;
    font-weight: 800;
    font-style: normal;
    line-height: 140%;
    color: #222;
}

body .cbm-presale-toplist__offer-cta-button {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 160%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 40px;
    color: #fff;
    border-radius: 100px;
    background-color: #222;
    box-shadow: 0 0 8px 0 #00000026;
}

body .cbm-presale-toplist__offer-cta-button:after {
    width: 20px;
    height: 21px;
    margin-left: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.74219 15.4687L15.7422 5.46875M15.7422 5.46875H9.07552M15.7422 5.46875V12.1354' stroke='%23FFC733' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

body .cbm-presale-toplist__offer-cta-button:hover {
    text-decoration: unset;
    color: #fff;
    background-color: #3b3b3b;
}

body .cbm-presale-toplist__offer-cta-button:hover:after {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='29' viewBox='0 0 28 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='0.6875' width='28' height='28' rx='14' fill='%23FFBB2C'/%3E%3Cpath d='M9 19.6875L19 9.6875M19 9.6875H12.3333M19 9.6875V16.3542' stroke='%233B3B3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-size: 20px;
}

body .cbm-presale-toplist__offer-main {
    display: grid;
    border: unset;
    gap: 16px;
    grid-template-areas: 'pros launched meta purchase-methods';
    grid-template-columns: auto 136px 136px 160px;
}

body .cbm-presale-toplist__offer-pros {
    display: flex;
    gap: 8px;
    grid-area: pros;
}

body .cbm-presale-toplist__offer-pros ul li {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 160%;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    list-style-type: none;
    color: #626262;
    background: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.4095 1.46875L3.99284 7.88542L1.07617 4.96875' stroke='%2335A618' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
        left 6px no-repeat;
}

body .cbm-presale-toplist__offer-launched {
    border-left: 1px dashed #e0e0e0;
    grid-area: launched;
}

body .cbm-presale-toplist__offer-meta {
    border-left: 1px dashed #e0e0e0;
    grid-area: meta;
}

body .cbm-presale-toplist__offer-launched,
body .cbm-presale-toplist__offer-meta {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    gap: 8px;
}

body .cbm-presale-toplist__offer-launched:empty,
body .cbm-presale-toplist__offer-meta:empty {
    display: none;
}

body .cbm-presale-toplist__offer-purchase-methods {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    border-left: 1px dashed #e0e0e0;
    gap: 8px;
    grid-area: purchase-methods;
}

body .cbm-presale-toplist__offer-purchase-methods ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
    list-style-type: none;
    gap: 6px 12px;
}

body .cbm-presale-toplist__offer-purchase-methods ul li {
    position: relative;
    padding-bottom: 0 !important;
    cursor: pointer;
}

body .cbm-presale-toplist__offer-purchase-methods ul li img {
    width: auto;
    height: 20px;
    object-fit: contain;
}

body .cbm-presale-toplist__tooltip {
    font-size: 12px;
    line-height: 18px;
    position: absolute;
    z-index: 1;
    top: 34px;
    left: 50%;
    display: none;
    width: max-content;
    padding: 12px 16px;
    transform: translateX(-50%);
    color: #fff;
    border-radius: 4px;
    background: #060606;
}

body .cbm-presale-toplist__tooltip:before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    content: '';
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #060606;
}

body .cbm-presale-toplist__offer-purchase-methods ul li:hover .cbm-presale-toplist__tooltip {
    display: block;
}

body .cbm-presale-toplist__offer-purchase-methods-more {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    color: #404040;
    text-decoration-line: underline;
}

body .cbm-presale-toplist__date-head,
body .cbm-presale-toplist__meta-head,
body .cbm-presale-toplist__offer-purchase-methods-title {
    font-family: Lato, sans-serif;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    line-height: 140%;
    text-align: center;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #737373;
}

body .cbm-presale-toplist__date-body,
body .cbm-presale-toplist__meta-body {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 140%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    text-align: center;
    color: #222;
    background: unset;
}

@media screen and (width <= 991px) {
    body .cbm-presale-toplist__offer {
        padding: 16px;
        gap: 12px;
    }

    body .cbm-presale-toplist__offer-body {
        gap: 12px;
        grid-template-areas:
            'logo-w-title'
            'link';
        grid-template-columns: auto;
    }

    body .cbm-presale-toplist__offer-body:before {
        top: -16px;
        left: -16px;
    }

    body .cbm-presale-toplist__offer-logo-w-title {
        align-items: center;
        flex-direction: row;
    }

    body .cbm-presale-toplist__offer-title,
    body .cbm-presale-toplist__offer-title a {
        font-size: 18px;
    }

    body .cbm-presale-toplist__offer-cta-button {
        font-size: 16px;
        width: 100%;
        height: 46px;
    }

    body .cbm-presale-toplist__offer-main {
        gap: 12px 0;
        grid-template-areas:
            'pros pros'
            'launched meta'
            'purchase-methods purchase-methods';
        grid-template-columns: 50% auto;
    }

    body .cbm-presale-toplist__offer-pros {
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px dashed #e0e0e0;
    }

    body .cbm-presale-toplist__offer-launched,
    body .cbm-presale-toplist__offer-meta {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-between;
        padding-right: 0;
        padding-bottom: 8px;
        border-right: 0;
        border-bottom: 1px dashed #e0e0e0;
    }

    body .cbm-presale-toplist__offer-launched {
        padding-right: 16px;
        padding-left: 0;
        border-left: 0;
    }

    body .cbm-presale-toplist__offer-meta {
        border-left: 0;
    }

    body .cbm-presale-toplist__date-head,
    body .cbm-presale-toplist__meta-head,
    body .cbm-presale-toplist__offer-purchase-methods-title {
        font-family: Lato, sans-serif;
        font-size: 12px;
        font-weight: 600;
        font-style: normal;
        line-height: 140%;
        color: #737373;
    }

    body .cbm-presale-toplist__date-body {
        height: unset;
    }

    body .cbm-presale-toplist__date-body,
    body .cbm-presale-toplist__meta-body {
        font-family: Lato, sans-serif;
        font-size: 14px;
        font-weight: 600;
        font-style: normal;
        line-height: 140%;
        height: unset;
        color: #222;
        background: unset;
    }

    body .cbm-presale-toplist__offer-purchase-methods {
        align-items: center;
        justify-content: center;
        border-left: 0;
        gap: 8px;
    }
}
