.markets__short {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    clear: both;
}

.markets__short-header {
    display: none;
}

.markets__short-item {
    margin-bottom: 10px;
}

.markets__short-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
    background-color: #F1F1F1;
    border-radius: 10px;
}

.markets__short-item-header-content {
    display: flex;
    align-items: center;
}

a.markets__short-item-header-content {
    color: #000000;
}

.markets__short-item-header-aside {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.markets__short-item-logos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.markets__short-item-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #808080;
    border-radius: 50%;
    overflow: hidden;
}

.markets__short-item-logos--all .markets__short-item-logo:first-child {
    margin-right: -5px;
}

.markets__short-item-logo-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.markets__short-item-names {
    margin-left: 5px;
    font-size: 14px;
    line-height: 18px;
}

.markets__short-item-price {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.markets__short-item-price[data-before]:before {
    display: block;
    content: attr(data-before);
    margin-right: 4px;
}

.markets__short-item-price[data-after]:after {
    display: block;
    content: attr(data-after);
    margin-left: 4px;
}

.markets__short-item-expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    padding: 0;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px 8px;
    background-image: url("data:image/svg+xml, %3Csvg id='triangle' width='8px' height='8px' fill='%23999999' viewBox='0 0 8 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5L0.5359 0.499999L7.4641 0.5L4 6.5Z'/%3E%3C/svg%3E");
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.markets__short-item-expand-button:hover {
    opacity: 0.8;
}

.markets__short-item-properties {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 15px;
}

.markets__short-item-property {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    border-radius: 10px;
}

.markets__short-item-property:nth-child(even) {
    background-color: #FBFBFB;
}

.markets__short-item-property:not(:last-child) {
    margin-bottom: 15px;
}

.markets__short-item-property-label {
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
}

.markets__short-item-property-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
}

.markets__short-item-property-value {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 16px;
}

.markets__short-item-property-value:not(:last-child) {
    margin-bottom: 5px;
}

.markets__short-item-property-value[data-before]:before {
    display: block;
    content: attr(data-before);
    margin-right: 4px;
    color: #999999;
}

.markets__short-item-property-value[data-after]:after {
    display: block;
    content: attr(data-after);
    margin-left: 4px;
    color: #999999;
}

.markets__short-item-property-value--bold {
    font-weight: 500;
}

.markets__short-item-property-value--up {
    color: #00B67F;
}

.markets__short-item-property-value--down {
    color: #E32C13;
}

.markets__short-item-property-value--up:before,
.markets__short-item-property-value--down:before {
    content: "◣";
    margin-right: 5px;
    font-size: 8px;
    line-height: 8px;
}

.markets__short-item-property-value--up:before {
    margin-bottom: -6px;
    color: #00B67F;
    transform: rotate(135deg);
}

.markets__short-item-property-value--down:before {
    margin-top: -6px;
    color: #E32C13;
    transform: rotate(315deg);
}

.markets__short-item-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

.markets__short-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.markets__short-item-icon--empty {
    display: none;
}

.markets__short-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid #F6F5F6;
}

/* Open State */

.markets__short-item--open .markets__short-item-expand-button {
    transform: rotate(180deg);
}

.markets__short-item--open .markets__short-item-properties {
    display: flex;
}

/* End Open State */

/*** Responsive ***/

@media (min-width: 360px) {

    .markets__short-item-header {
        padding: 10px;
    }

    .markets__short-item-property {
        padding: 5px 10px;
    }

    .markets__short-item-expand-button {
        margin-left: 10px;
    }
}

@media (min-width: 768px) {

    .markets__short-item-header {
        padding: 10px 0;
    }

    .markets__short-item-header-content {
        width: 25%;
        flex-shrink: 0;
        padding: 0 10px;
    }

    .markets__short-item-header-aside {
        justify-content: flex-end;
        width: 75%;
        flex-shrink: 0;
        padding: 0 10px;
    }

    .markets__short-item-expand-button {
        display: none;
    }

    .markets__short-item-properties {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .markets__short-item-property {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex-shrink: initial;
        width: 100%;
        background-color: transparent !important;
    }

    .markets__short-item-property-label {
        margin-bottom: 10px;
    }

    .markets__short-item-property-values {
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {

    .markets__short-header {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #F6F5F6;
    }

    .markets__short-header-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .markets__short-header-group--pair {
        flex-shrink: 0;
        width: 320px;
        margin-right: 15px;
    }

    .markets__short-header-group--content {
        width: calc(100% - 320px);
    }

    .markets__short-header-cell {
        display: flex;
        align-items: center;
        font-size: 14px;
        line-height: 24px;
        font-weight: bold;
        white-space: nowrap;
    }

    .markets__short-header-cell--content {
        justify-content: flex-end;
        width: 100%;
    }

    .markets__short-item {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 10px 0;
    }

    .markets__short-item:not(:last-child) {
        border-bottom: 1px solid #F6F5F6;
    }

    .markets__short-item-header {
        flex-shrink: 0;
        width: 320px;
        margin-right: 15px;
        background-color: transparent;
        padding: 0;
    }

    .markets__short-item-header-content {
        padding: 0;
    }

    .markets__short-item-header-aside {
        width: initial;
        padding: 0;
    }

    .markets__short-item-properties {
        width: calc(100% - 320px);
        margin: 0;
    }

    .markets__short-item-property {
        align-items: flex-end;
        padding: 0;
    }

    .markets__short-item-property:not(:last-child) {
        margin: 0;
    }

    .markets__short-item-property-label {
        display: none;
    }

    .markets__short-item-property-values {
        align-items: flex-end;
    }

    .markets__short-item-icon--empty {
        display: block;
    }

    .markets__short-footer {
        justify-content: flex-start;
    }
}

@media (min-width: 1280px) {

    .markets__short {
        margin: 20px 0;
    }

    .markets__short-header-cell--24percent,
    .markets__short-item-property--24percent {
        max-width: 140px;
    }

    .markets__short-header-cell--minmax,
    .markets__short-item-property-minmax {
        max-width: 130px;
    }
}