.hpm[hidden],
.hpm__item[hidden],
.hpm__nav[hidden] {
    display: none !important;
}

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

.hpm__nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.hpm__track {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    container-type: inline-size;
}

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

.hpm__item {
    flex: 0 0 calc((100cqi - 2 * 16px) / 3);
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
}

.hpm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.hpm-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hpm-card__offer {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hpm-card__figure {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hpm-card__value {
    flex: none;
}

.hpm-card__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: none;
    max-width: 40%;
    text-align: right;
}

.hpm-card__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.hpm-card__footer {
    margin-top: auto;
}

:where(.hpm__arrow) {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

:where(.hpm__arrow:disabled) {
    opacity: 0.35;
    cursor: default;
}

:where(.hpm-card) {
    border: 1px solid #e2e2e2;
    border-top: 4px solid var(--hpm-color, #111);
    border-radius: 4px;
    background: #fff;
}

:where(.hpm-card__main) {
    padding: 16px 16px 8px;
}

:where(.hpm-card__prefix) {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

:where(.hpm-card__value) {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

:where(.hpm-card__unit) {
    max-width: 8em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

:where(.hpm-card__name) {
    font-size: 14px;
    font-weight: 700;
}

:where(.hpm-card__detail) {
    padding: 0 16px 12px;
    font-size: 14px;
    font-weight: 600;
}

:where(.hpm-card__footer) {
    padding: 8px 16px;
    background: #f4f4f4;
    font-size: 12px;
    color: #666;
}

@media (max-width: 1023px) {
    .hpm__item {
        flex-basis: calc((100cqi - 16px) / 2);
    }
}

@media (max-width: 767px) {
    .hpm__item {
        flex-basis: 86%;
    }

    .hpm__nav {
        display: none;
    }
}
