@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&family=Inter:wght@600;700&display=swap');

.dw-toplist-cq__wrapper {
    margin: 32px 0;
}

.dw-toplist-cq__offers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dw-toplist-cq__offer {
    display: grid;
    align-items: center;
    padding: 16px 32px 16px 16px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    grid-template-columns: 208px 120px auto 190px;
    grid-template-rows: auto;
    grid-template-areas:
    "logo extra main cta-btn";
    gap: 24px;
}

.dw-toplist-cq__offer.hidden {
    display: none;
}

.dw-toplist-cq__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: logo;
}

.dw-toplist-cq__offer-logo img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.dw-toplist-cq__offer-main {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    grid-area: main;
    gap: 8px;
}

.dw-toplist-cq__offer-title,
.dw-toplist-cq__offer-title p {
    font-family: 'Inter', serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    text-align: center;
    color: #000000;
}

.dw-toplist-cq__offer-title p {
    display: inline;
    margin: 0;
    padding: 0;
}

.dw-toplist-cq__offer-key-feature {
    font-family: 'Nanum Gothic', serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 12px;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    background: #F1F2F4;
}

.dw-toplist-cq__offer-extra {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-right: 24px;
    border-right: 1px solid #E8E8E8;
    grid-area: extra;
    gap: 4px;
}

.dw-toplist-cq__offer-rating-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.dw-toplist-cq__offer-rating-score {
    font-family: 'Inter', serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    color: #000000;
}

.dw-toplist-cq__offer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dw-toplist-cq__offer-rating img {
    height: 16px;
}

.dw-toplist-cq__offer-brand-name {
    font-family: 'Nanum Gothic', serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
}

.dw-toplist-cq__offer-cta-btn {
    font-family: 'Nanum Gothic', serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    padding: 0 8px;
    text-align: center;
    text-transform: capitalize;
    color: #FFFFFF;
    border-left: 4px solid #0D794C;
    background: #0F9960;
    grid-area: cta-btn;
    gap: 8px;
}

.dw-toplist-cq__offer-cta-btn:after {
    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%3Cpath d='M9.16659 10.8333L15.8333 4.16666' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.88881 3.33334H3.33325V16.6667H16.6666V13.1111' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16.6667 8.33334V3.33334H11.6667' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.dw-toplist-cq__offer-cta-btn:hover {
    text-decoration: none;
    color: #FFFFFF;
    background: #0D794C;
}

.dw-toplist-cq__show-more-btn {
    font-family: 'Nanum Gothic', serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 48px;
    margin: 32px auto 0;
    padding: 0 24px;
    text-align: center;
    text-transform: capitalize;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
    gap: 8px;
}

.dw-toplist-cq__show-more-btn:hover {
    cursor: pointer;
    color: #6BAFFF;
    border-color: #6BAFFF;
}

@media screen and (max-width: 991px) {
    .dw-toplist-cq__offer {
        padding: 8px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
        "logo extra"
        "main main"
        "cta-btn cta-btn";
        gap: 16px;
    }

    .dw-toplist-cq__offer-logo img {
        width: 146px;
        height: 70px;
    }

    .dw-toplist-cq__offer-main {
        gap: 16px;
    }

    .dw-toplist-cq__offer-title,
    .dw-toplist-cq__offer-title p {
        font-size: 20px;
        line-height: 24px;
    }

    .dw-toplist-cq__offer-key-feature {
        font-size: 12px;
        line-height: 20px;
        width: 100%;
        padding: 6px 15px;
    }

    .dw-toplist-cq__offer-extra {
        justify-content: flex-start;
        padding: 0;
        border: 0;
        gap: 0;
    }

    .dw-toplist-cq__offer-rating-score {
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
    }

    .dw-toplist-cq__offer-rating img {
        height: 16px;
        margin: 4px 0;
    }

    .dw-toplist-cq__offer-brand-name {
        line-height: 20px;
    }

    .dw-toplist-cq__offer-cta-btn {
        font-size: 16px;
        line-height: 24px;
        height: 56px;
    }
}
