.wtt-trending {
    color: #ffffff;
}

.wtt-trending__header {
    margin-bottom: 40px;
}

.wtt-trending__title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0 0 24px 0;
}

.wtt-trending__filter {
    background: transparent;
    border: 1px solid #434445;
    border-radius: 24px;
    padding: 12px 15px;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
    white-space: nowrap;
}

.wtt-trending__filter.disabled,
.wtt-trending__filter.disabled:hover{
    background: #0d0e0f;
    border-color: #171819;
    color: #474848;
    cursor: not-allowed;
}

.wtt-trending__filter.soon:before{
    position: absolute;
    background: #151619;
    border: 1px solid #3a3b3e;
    color: #bfbfbf;
    cursor: not-allowed;
    content: "Em breve";
    border-radius: 6px;
    font-size: 12px;
    right: 12px;
    top: -13px;
    padding-left: 5px;
    padding-right: 5px;
    line-height: 23px;
    transition: all 350ms ease;
}


.wtt-trending__filter.soon:hover:before{
    border-color: #4d4e52;
    background-color: #27282e;
}

.wtt-trending__filter:hover {
    border-color: #4b5563;
    color: #ffffff;
}

.wtt-trending__filter:hover{
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1a1a;    
}

.wtt-trending__filter--active {
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1a1a;
}

.wtt-trending__filter--active:hover{
    color: #000;
}

.wtt-trending__filter i {
    width: 16px;
    height: 16px;
}

.wtt-trending__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #1c1d1e;
}

.wtt-trending__section-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.wtt-trending__timestamp {
    font-size: 11px;
    color: #BFBFBF;
}

.wtt-trending__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wtt-trending__item {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #1c1d1e;
    position: relative;
}

.wtt-trending__item:nth-child(even){
    border-left: 1px solid #1c1d1e;
}

.wtt-trending__item:hover {
    background: #0d1011;
}

.wtt-trending__item-left {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.wtt-trending__logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.wtt-trending__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wtt-trending__info {
    flex: 1;
    min-width: 0;
}

.wtt-trending__code {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.wtt-trending__name {
    font-size: 0.875rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
    width: 100%;
    text-transform: capitalize;
}

.wtt-trending__price-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.wtt-trending__price {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.wtt-trending__change {
    font-size: 0.875rem;
    color: #10b981;
}

.wtt-trending__percentage {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

.wtt-trending__percentage i {
    width: 14px;
    height: 14px;
}

.wtt-trending__action {
    background: #1b1c1d;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px;
    line-height: 1;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.wtt-trending__item:hover .wtt-trending__action {
    border-color: #222526;
    color: #ffffff;
    background: #1f2122;
}

.trending-corporate-actions .list-corporate-actions .wtt-trending__item-date{
    background: #252629;
    max-width: 51px;
    width: 100%;
    font-size: 20px;
    height: 55px;
    padding: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border-radius: 3px;
    padding-top: 5px;
}

.wtt-trending__item--dividend_meta{
    padding-left: 20px;
    margin-left: 20px;
    border-left: 1px solid #1c1d1e;
}

.trending-corporate-actions .list-corporate-actions .wtt-trending__item-date .dividend-month{
    font-size: 12px;
}

.wtt-trending__item--dividend_meta .dividend-company{
    display: block;
    margin-bottom: 2px;
}

.wtt-trending__item--dividend_meta .dividend-company-ticker{
    font-size: 14px;
    color: #FFF;
    margin-right: 10px;
    font-weight: 600;
}

.wtt-trending__item--dividend_meta .dividend-company-name{
    font-size: 14px;
    color: #bfbfbf;
}

.list-corporate-actions .wtt-trending__logo{
    border-right: 1px solid #1c1d1e;
    padding-right: 20px;
    margin-right: 20px;
}

.list-corporate-actions .wtt-trending__item:nth-child(2n){
    border-left: 0;
}


.trending-corporate-actions .dividend-description{
    font-size: 12px;
    font-weight: 400;
    color: #FFF;
}

@media (max-width: 1024px) {
    .wtt-trending__filter{
        font-size: 12px;
    }

    .wtt-trending__filter.soon{
        display: none;
    }
}

@media (max-width: 768px) {
    .wtt-trending__item:nth-child(2n){
        border-left: none;
    }

    .wtt-trending__grid{
        display: block;
    }

    .wtt-trending {
        padding: 0;
    }

    .wtt-trending__title {
        font-size: 1.5rem;
    }

    .wtt-trending__filters {
        gap: 8px;
    }

    .wtt-trending__filter {
        padding: 8px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .wtt-trending__filter svg{
        width: 14px;
    }

    .wtt-trending__section-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .wtt-trending__item {
        padding: 16px;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .wtt-trending__item-left {
        width: auto;
    }

    .wtt-trending__action {
        width: auto;
        text-align: center;
    }

    .wtt-trending__item:nth-child(4n){
        border-bottom: 0;
    }

    .wtt-trending__item:nth-child(5n),
    .wtt-trending__item:nth-child(6n),
    .wtt-trending__item:nth-child(7n),
    .wtt-trending__item:nth-child(8n),
    .wtt-trending__item:nth-child(9n){
        display: none;
    }
}

@media (max-width: 650px) {
    .wtt-trending__header{
        position: relative;
    }

    .wtt-trending__filters{
        overflow-x: scroll;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .wtt-trending__filters::before,
    .wtt-trending__filters::after {
        content: "";
        position: absolute;
        top: 0;
        width: 40px;
        height: 100%;
        pointer-events: none;
        z-index: 5;
    }

    .wtt-trending__filters::after {
        right: 0;
        background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
    }

    .wtt-trending__filter {
        justify-content: center;
    }

    .wtt-trending__item-left {
        align-items: flex-start;
        gap: 12px;
    }
}
