@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap');

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

:root {
    --white-color: #ffffff;
    --black-color: #000000;
    --background-color: #1E1E1E;
    --border-color: #353535;
    --base-unit: 4px;
}

html {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    height: 100%;
}

html.products__widget--160 {
    font-size: 13px;
}

@media (max-width: 640px) {
    html {
        font-size: 12px;
    }
}

body {
    margin: 0;
    color: var(--white-color);
    background-color: var(--background-color);
    height: 100%;
}

.products__widget {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.2rem 0.6rem 0 0.6rem;
}

.products__content {
    display: grid;
    grid-template-columns: repeat(var(--grid), 1fr);
    gap: 0 0.6rem;
    align-items: flex-start;
    margin: 0 auto;
}

.products__product {
    margin-bottom: 0.6rem;
    background-color: var(--black-color);
    border-radius: 0.3rem;
}

.products__section__cell {
    padding-top: calc(3 * var(--base-unit));
    padding-bottom: calc(3 * var(--base-unit));
    width: calc(var(--media-size) * 1px);
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1rem;
    overflow: hidden;
}

@media (max-width: 640px) {
    .products__section__cell {
        width: 160px;
    }
}

.products__section__cell--media {
    justify-content: center;
    height: calc(var(--media-size) * 1px);
}

@media (max-width: 640px) {
    .products__section__cell--media {
        height: 160px;
    }
}

.products__section__cell--media .products__section__cell--image {
    max-width: 90%;
}

.products__section__cell--metric {
    flex-direction: column;
}

.products__section__cell--media,
.products__section__cell--metric {
    padding-top: 0;
    padding-bottom: 0;
}

.products__section__label {
    height: 100%;
    color: var(--label-color);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: calc(var(--base-unit));
    padding-left: calc(2 * var(--base-unit));
}

@media (max-width: 640px) {
    .products__section__label {
        padding-right: calc(var(--base-unit));
        padding-left: calc(var(--base-unit));
    }
}

.products__section__label--large-screen {
    display: none;
}

@media (min-width: 640px) {
    .products__section__label--large-screen {
        display: inline;
    }
}

.products__section__label--small-screen {
    display: inline;
}

@media (min-width: 640px) {
    .products__section__label--small-screen {
        display: none;
    }
}

.products__section__value {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: calc(2 * var(--base-unit));
    padding-left: calc(2 * var(--base-unit));
    flex-shrink: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    .products__section__value {
        padding-right: calc(var(--base-unit));
    }
}

.products__section__metric-scale {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0 auto;
}
