.product-history {
    position: fixed;
    z-index: 45;
    top: 50%;
    left: 0;
    display: block;
    font-family: var(--meastek-font-zh);
    transform: translateY(-50%);
}

.meastek-lang-en .product-history {
    font-family: var(--meastek-font-en);
}

.product-history__launcher,
.product-history__panel {
    border-radius: 0 8px 8px 0;
    box-shadow: var(--meastek-shadow-card);
}

.product-history__launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 20px;
    background: var(--meastek-brand-100);
    cursor: pointer;
}

.product-history__launcher[hidden] {
    display: none;
}

.product-history__launcher img,
.product-history__header img {
    display: block;
    flex: 0 0 auto;
}

.product-history__panel {
    width: 120px;
    min-height: 146px;
    overflow: hidden;
    background: var(--meastek-white);
}

.product-history__panel[hidden] {
    display: none;
}

.product-history__empty[hidden],
.product-history__list[hidden] {
    display: none;
}

.product-history__header {
    display: flex;
    align-items: center;
    width: 120px;
    height: 48px;
    padding: 8px 8px;
    border-radius: 0 8px 0 0;
    background: var(--meastek-brand-100);
    color: var(--meastek-white);
    cursor: pointer;
}

.product-history__header span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 510;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-history__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 98px;
    margin: 0;
    color: #000;
    font-size: 12px;
    font-weight: 510;
    line-height: 18px;
}

.product-history__list {
    display: flex;
    margin: 0;
    padding: 16px 10px;
    list-style: none;
    flex-direction: column;
    gap: 12px;
}

.product-history__link,
.product-history__image {
    display: block;
    width: 100px;
    height: 100px;
}

.product-history__item {
    width: 100px;
    height: 126px;
}

.product-history__link {
    overflow: hidden;
    border: 1px solid var(--meastek-grey-10);
    border-radius: 8px;
    background: var(--meastek-white);
}

.product-history__image {
    object-fit: cover;
}

.product-history__model {
    display: block;
    width: 100px;
    height: 18px;
    margin-top: 8px;
    overflow: hidden;
    color: #000;
    font-size: 12px;
    font-weight: 510;
    line-height: 18px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-history__launcher:focus-visible,
.product-history__header:focus-visible,
.product-history__link:focus-visible {
    outline: 2px solid var(--meastek-grey-100);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .product-history {
        display: none;
    }
}
