.cbm-presale-toplist__wrapper {
    margin-bottom: 32px;
}

.cbm-presale-toplist__offers-list {
    display: flex;
    flex-direction: column;
    counter-reset: offer-counter;
    gap: 16px;
}

.cbm-presale-toplist__offer {
    padding: 32px;
    border-radius: 4px;
    display: grid;
    border: 1px solid #E8E8E8;
    background: #FFF;
    grid-template-columns: 120px auto 340px;
    grid-template-rows: 1fr;
    gap: 12px 24px;
    grid-template-areas:
        "logo main info"
        "logo pros info";
    position: relative;
    counter-increment: offer-counter;
}

.cbm-presale-toplist__offer:before {
    content: counter(offer-counter);
    position: absolute;
    color: #151515;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px 0 4px 0;
    background: #CDCDCD;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cbm-presale-toplist__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: logo;
    width: 120px;
    height: 120px;
}

.cbm-presale-toplist__offer-logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.cbm-presale-toplist__offer-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
}

.cbm-presale-toplist__offer-title {
    color: #151515;
    font-family: Gilroy-Bold, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-transform: capitalize;
}

.cbm-presale-toplist__offer-title:hover {
    color: #151515;
}

.cbm-presale-toplist__offer-launched {
    color: #414242;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.cbm-presale-toplist__offer-pros {
    grid-area: pros;
}

body .cbm-presale-toplist__offer-pros ul {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
}

body .cbm-presale-toplist__offer-pros ul li {
    font-family: 'Arial', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25.6px;
    position: relative;
    display: flex;
    padding-bottom: 0 !important;
    color: #031129;
    background: unset;
    padding-left: 32px;
}

body .cbm-presale-toplist__offer-pros ul li:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-flex;
    width: 20px;
    height: 20px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='20' rx='10' fill='%23FFEEC0'/%3E%3Cpath d='M13.5 7.5L8.5 12.5L6 10' stroke='%23A86800' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-size: 20px;
}

.cbm-presale-toplist__offer-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cbm-presale-toplist__offer-cta-button {
    font-family: Gilroy-Bold, sans-serif;
    font-weight: 400;
    font-size: 18px;
    padding: 18px 24px;
    height: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #151515;
    border-radius: 100px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #F9D453 49.88%, #F9CB53 53.35%);
}

.cbm-presale-toplist__offer-cta-button:hover {
    color: #151515;
    text-decoration: none;
    background: #EDB549;
}

.cbm-presale-toplist__offer-main .cbm-presale-toplist__offer-cta-button {
    display: none;
}

.cbm-presale-toplist__offer-extra {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid #E8E8E8;
}

.cbm-presale-toplist__offer-meta {
    padding-bottom: 8px;
    border-bottom: 1px solid #E8E8E8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbm-presale-toplist__meta-head {
    color: #414242;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.cbm-presale-toplist__meta-head::after {
    content: ':';
}

.cbm-presale-toplist__meta-body {
    color: #151515;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.cbm-presale-toplist__offer-payments-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.cbm-presale-toplist__offer-payments-label {
    color: #414242;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    position: relative;
}

.cbm-presale-toplist__offer-payments-label::after {
    content: ':';
    position: absolute;
}

.cbm-presale-toplist__offer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
    list-style-type: none;
    gap: 8px;
}

.cbm-presale-toplist__offer-payment {
    position: relative;
    width: 24px;
    height: 24px;
    padding-bottom: 0 !important;
    cursor: pointer;
    border-radius: 100px;
}

.cbm-presale-toplist__offer-payment-image {
    width: 24px;
    height: 24px;
    border-radius: inherit;
    object-fit: contain;
}

.cbm-presale-toplist__offer-payment-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: #060606;
    border-radius: 4px;
    background: #FFFFFF;
    filter: drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.14)) drop-shadow(0px 8px 32px rgba(0, 0, 0, 0.1));
}

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

.cbm-presale-toplist__offer-payment:hover .cbm-presale-toplist__offer-payment-tooltip {
    display: block !important;
}

.cbm-presale-toplist__offer-payments-hidden-counter {
    color: #414242;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-decoration: underline;
    cursor: pointer;
    position: relative;
}

.cbm-presale-toplist__offer-payments-hidden-counter:hover .cbm-presale-toplist__offer-payments-tooltip {
    display: flex !important;
}

.cbm-presale-toplist__offer-payments-tooltip {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 150%;
    position: absolute;
    z-index: 5;
    top: 28px;
    right: -90%;
    flex-direction: column;
    width: max-content;
    min-width: 144px;
    padding: 12px 16px;
    color: #060606;
    border-radius: 4px;
    background: #FFFFFF;
    filter: drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.14)) drop-shadow(0px 8px 32px rgba(0, 0, 0, 0.1));
}

.cbm-presale-toplist__offer-payments-tooltip:before {
    position: absolute;
    bottom: 100%;
    right: 13px;
    margin-left: -8px;
    content: '';
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #FFFFFF transparent;
}

.cbm-presale-toplist__offer-payment-in-tooltip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 6px;
    gap: 8px;
}

.cbm-presale-toplist__offer-payment-in-tooltip .cbm-presale-toplist__offer-payment-image {
    width: auto;
    max-height: 24px;
}

.cbm-presale-toplist__offer-payment-in-tooltip-image-wrapper {
    flex-shrink: 0;
    width: 24px;
}

.cbm-presale-toplist__offer-payment-in-tooltip-title {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    color: #060606;
}

@media screen and (max-width: 991px) {
    .cbm-presale-toplist__wrapper {
        margin-bottom: 12px;
    }

    .cbm-presale-toplist__offers-list {
        gap: 8px;
    }

    .cbm-presale-toplist__offer {
        padding: 16px;
        grid-template-columns: auto;
        gap: 12px;
        grid-template-areas:
        "logo"
        "main"
        "pros"
        "info";
    }

    .cbm-presale-toplist__offer-logo {
        width: 100%;
        height: 80px;
    }

    .cbm-presale-toplist__offer-logo img {
        width: 80px;
        height: 80px;
    }

    .cbm-presale-toplist__offer-main {
        text-align: center;
    }

    .cbm-presale-toplist__offer-title {
        font-size: 20px;
    }

    .cbm-presale-toplist__offer-launched {
        font-size: 12px;
    }

    .cbm-presale-toplist__offer-main .cbm-presale-toplist__offer-cta-button {
        display: flex;
        margin-top: 8px;
    }

    body .cbm-presale-toplist__offer-pros ul li {
        font-size: 14px;
        line-height: 22.4px;
        padding-left: 28px;
    }

    .cbm-presale-toplist__offer-info {
        gap: 0;
    }

    .cbm-presale-toplist__offer-info .cbm-presale-toplist__offer-cta-button {
        display: none;
    }

    .cbm-presale-toplist__offer-extra {
        padding: 12px;
    }

    .cbm-presale-toplist__meta-head, .cbm-presale-toplist__meta-body, .cbm-presale-toplist__offer-payments-label {
        font-size: 12px;
    }
}
