
.fftlc {
    width: 100%;
    color: var(--fftlc-text);
    overflow: visible;
}

.fftlc *,
.fftlc *::before,
.fftlc *::after {
    box-sizing: border-box;
}

.fftlc__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--fftlc-count), minmax(0, 1fr));
    gap: clamp(10px, 1.15vw, 20px);
}

.fftlc__track::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 2px;
    right: 2px;
    height: 2px;
    background: var(--fftlc-primary);
}

.fftlc__item {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
}

.fftlc__dot {
    position: absolute;
    z-index: 4;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--fftlc-primary);
    box-shadow: 0 0 0 5px rgba(31, 111, 193, .16);
    transform: translateX(-50%);
    transition: transform .25s ease, box-shadow .25s ease;
}

.fftlc__item:hover .fftlc__dot {
    box-shadow: 0 0 0 7px rgba(31, 111, 193, .15);
}

.fftlc__card {
    display: flex;
    width: 100%;
    min-height: 248px;
    flex-direction: column;
    padding: 14px 10px 11px;
    border: 1px solid color-mix(in srgb, var(--fftlc-primary) 35%, white);
    border-radius: 12px;
    background: var(--fftlc-soft);
    box-shadow: 0 10px 28px rgba(21, 73, 125, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.fftlc__item:hover .fftlc__card {
    border-color: var(--fftlc-primary);
    box-shadow: 0 15px 32px rgba(21, 73, 125, .14);
}

/* Todos abaixo */
.fftlc--below .fftlc__track {
    padding: 46px 2px 16px;
    align-items: start;
}

.fftlc--below .fftlc__track::before {
    top: 20px;
}

.fftlc--below .fftlc__dot {
    top: -33px;
}

.fftlc--below .fftlc__item:hover .fftlc__dot {
    transform: translateX(-50%) scale(1.18);
}

.fftlc--below .fftlc__item:hover .fftlc__card {
    transform: translateY(-5px);
}

/* Todos acima */
.fftlc--above .fftlc__track {
    padding: 16px 2px 46px;
    align-items: end;
}

.fftlc--above .fftlc__track::before {
    bottom: 20px;
}

.fftlc--above .fftlc__dot {
    bottom: -33px;
}

.fftlc--above .fftlc__item:hover .fftlc__dot {
    transform: translateX(-50%) scale(1.18);
}

.fftlc--above .fftlc__item:hover .fftlc__card {
    transform: translateY(5px);
}

/* Alternados: primeiro acima, segundo abaixo */
.fftlc--alternate .fftlc__track,
.fftlc--alternate_reverse .fftlc__track {
    padding: 46px 2px;
    align-items: center;
}

.fftlc--alternate .fftlc__track::before,
.fftlc--alternate_reverse .fftlc__track::before {
    top: 50%;
    transform: translateY(-50%);
}

.fftlc--alternate .fftlc__item,
.fftlc--alternate_reverse .fftlc__item {
    min-height: 570px;
}

.fftlc--alternate .fftlc__dot,
.fftlc--alternate_reverse .fftlc__dot {
    top: 50%;
    transform: translate(-50%, -50%);
}

.fftlc--alternate .fftlc__item:hover .fftlc__dot,
.fftlc--alternate_reverse .fftlc__item:hover .fftlc__dot {
    transform: translate(-50%, -50%) scale(1.18);
}

.fftlc--alternate .fftlc__item:nth-child(odd),
.fftlc--alternate_reverse .fftlc__item:nth-child(even) {
    align-items: flex-start;
}

.fftlc--alternate .fftlc__item:nth-child(even),
.fftlc--alternate_reverse .fftlc__item:nth-child(odd) {
    align-items: flex-end;
}

.fftlc--alternate .fftlc__item:nth-child(odd) .fftlc__card,
.fftlc--alternate_reverse .fftlc__item:nth-child(even) .fftlc__card {
    margin-bottom: 322px;
}

.fftlc--alternate .fftlc__item:nth-child(even) .fftlc__card,
.fftlc--alternate_reverse .fftlc__item:nth-child(odd) .fftlc__card {
    margin-top: 322px;
}

.fftlc--alternate .fftlc__item:nth-child(odd):hover .fftlc__card,
.fftlc--alternate_reverse .fftlc__item:nth-child(even):hover .fftlc__card {
    transform: translateY(-5px);
}

.fftlc--alternate .fftlc__item:nth-child(even):hover .fftlc__card,
.fftlc--alternate_reverse .fftlc__item:nth-child(odd):hover .fftlc__card {
    transform: translateY(5px);
}

.fftlc__icon-wrap {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    align-self: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--fftlc-primary);
    color: #fff;
}

.fftlc__icon-wrap .dashicons {
    width: auto;
    height: auto;
    font-size: 22px;
    line-height: 1;
}

.fftlc__module-image {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    align-self: center;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fftlc__title {
    margin: 0 0 16px;
    color: var(--fftlc-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.fftlc__links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.fftlc__links a,
.fftlc__links span {
    display: block;
    min-height: 26px;
    padding: 6px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .28);
    color: var(--fftlc-primary);
    font-size: 10px;
    line-height: 1.3;
    text-decoration: none;
}

.fftlc__more {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 6px 7px;
    border-radius: 6px;
    background: var(--fftlc-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.fftlc__item--brand .fftlc__card {
    min-height: 140px;
    justify-content: center;
    padding: 18px 12px 14px;
    border: 2px solid var(--fftlc-primary);
    background: var(--fftlc-soft);
}

.fftlc__brand-image {
    display: block;
    width: 78px;
    height: 68px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.fftlc__brand-placeholder {
    display: grid;
    width: 68px;
    height: 62px;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .38);
    color: var(--fftlc-primary);
}

.fftlc__brand-placeholder .dashicons {
    width: auto;
    height: auto;
    font-size: 34px;
}

.fftlc__brand-title {
    margin: 0;
    color: var(--fftlc-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .fftlc__card {
        padding-inline: 8px;
    }

    .fftlc__title,
    .fftlc__brand-title {
        font-size: 12px;
    }

    .fftlc__links a,
    .fftlc__links span,
    .fftlc__more {
        font-size: 9px;
    }
}

@media (max-width: 1024px) {
    .fftlc {
        overflow-x: auto;
        overflow-y: visible;
        padding-top: 8px;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .fftlc__track {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(155px, 180px);
        width: max-content;
        min-width: 100%;
        gap: 18px;
        padding-inline: 12px;
    }

    .fftlc__track::before {
        left: 12px;
        right: 12px;
    }

    .fftlc__item {
        scroll-snap-align: start;
    }

    .fftlc--alternate .fftlc__item,
    .fftlc--alternate_reverse .fftlc__item {
        min-height: 550px;
    }

    .fftlc--alternate .fftlc__item:nth-child(odd) .fftlc__card,
    .fftlc--alternate_reverse .fftlc__item:nth-child(even) .fftlc__card {
        margin-bottom: 312px;
    }

    .fftlc--alternate .fftlc__item:nth-child(even) .fftlc__card,
    .fftlc--alternate_reverse .fftlc__item:nth-child(odd) .fftlc__card {
        margin-top: 312px;
    }
}
