.fjmi {
    --fjmi-gap: 12px;
    width: 100%;
    margin: 24px 0 4px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.fjmi__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fjmi__title {
    margin: 0;
    color: #292929;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.fjmi__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.fjmi__controls[hidden] {
    display: none !important;
}

.fjmi__control {
    display: inline-flex;
    width: 30px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dcdf;
    border-radius: 50%;
    background: #fff;
    color: #252525;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, opacity .18s ease;
}

.fjmi__control:hover:not(:disabled),
.fjmi__control:focus-visible {
    border-color: #079a84;
    color: #079a84;
    outline: 0;
}

.fjmi__control:disabled {
    opacity: .32;
    cursor: default;
}

.fjmi__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fjmi__viewport::-webkit-scrollbar {
    display: none;
}

.fjmi__viewport:focus-visible {
    outline: 2px solid rgba(7, 154, 132, .35);
    outline-offset: 3px;
}

.fjmi__track {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: var(--fjmi-gap);
    list-style: none;
}

.fjmi__item {
    flex: 0 0 calc(25% - 9px);
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}

.fjmi-card {
    display: flex;
    min-height: 142px;
    padding: 9px 9px 10px;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid #e1e4e6;
    border-radius: 5px;
    background: #fff;
    color: #303030;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fjmi-card:hover,
.fjmi-card:focus-visible {
    border-color: #079a84;
    color: #303030;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .07);
    outline: 0;
}

.fjmi-card__media {
    display: flex;
    width: 100%;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.fjmi-card__media img,
.fjmi-card__image {
    display: block;
    width: 100%;
    height: 96px;
    margin: 0 !important;
    object-fit: contain;
}

.fjmi-card__label {
    display: flex;
    min-height: 30px;
    margin-top: 5px;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 1023px) {
    .fjmi__item {
        flex-basis: calc(33.333333% - 8px);
    }
}

@media (max-width: 639px) {
    .fjmi {
        --fjmi-gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
    }

    .fjmi__header {
        margin-bottom: 10px;
    }

    .fjmi__item {
        flex-basis: calc(50% - 5px);
    }

    .fjmi-card {
        min-height: 136px;
        padding: 8px 8px 9px;
    }

    .fjmi-card__media,
    .fjmi-card__media img,
    .fjmi-card__image {
        height: 92px;
        min-height: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fjmi__viewport {
        scroll-behavior: auto;
    }

    .fjmi-card,
    .fjmi__control {
        transition: none;
    }
}
