.related-exchanges {
    border-top: 1px solid #F6F5F6;
}

.related-exchanges__header {
    display: none;
}

.related-exchange {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.related-exchange:last-child {
    padding-bottom: 0;
}

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

.related-exchange__header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.related-exchange__logo {
    flex-shrink: 0;
    margin-right: 10px;
}

.related-exchange__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.related-exchange__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.related-exchange__name-link {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: #000000;
}

a.related-exchange__name-link {
    text-decoration: underline;
}

a.related-exchange__name-link:hover {
    color: #0072DB;
}

.related-exchange__meta {
    display: flex;
    align-items: center;
}

.related-exchange__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 16px;
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
    color: #ffffff;
    background: #0072DB;
    border-radius: 3px;
}

.related-exchange__rating:before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin-right: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.9199 6.43999L12.1499 10.115L13.0399 15.3025C13.0574 15.4025 13.0174 15.5 12.9349 15.56C12.8524 15.62 12.7474 15.6275 12.6574 15.58L8.10493 13.1875L3.33243 15.6025C3.24243 15.6475 3.13993 15.64 3.05743 15.58C2.97493 15.52 2.93743 15.4225 2.95493 15.3225L3.84743 10.115L0.0799293 6.43999C0.00742928 6.36749 -0.0175707 6.26749 0.0124293 6.16999C0.0449293 6.07249 0.122429 6.00499 0.224929 5.98999L5.43243 5.23249L7.76243 0.51249C7.80743 0.41999 7.89493 0.36499 7.99743 0.36499C8.09993 0.36499 8.18743 0.41999 8.23243 0.51249L10.5624 5.23249L15.7699 5.98999C15.8724 6.00499 15.9499 6.07249 15.9824 6.16999C16.0174 6.26749 15.9924 6.36999 15.9199 6.43999Z'/%3E%3C/svg%3E");
}

.related-exchange__comments {
    display: flex;
    align-items: center;
    margin-left: 10px;
    color: #000000;
    text-decoration: none;
}

.related-exchange__comments:hover {
    text-decoration: underline;
}

.related-exchange__comments-text {
    font-size: 14px;
    line-height: 16px;
}

.related-exchange__properties {
    display: flex;
    flex-direction: column;
}

.related-exchange__property {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.related-exchange__property-label {
    flex-shrink: 0;
    margin-right: 5px;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    color: #808080;
}

.related-exchange__property-separator {
    width: 100%;
    height: 1px;
    margin-top: 10px;
    background-image: linear-gradient(to right, #808080 33%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 3px 1px;
    background-repeat: repeat-x;
}

.related-exchange__property-value {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 5px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    border-radius: 4px;
}

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

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

.related-exchange__property-value-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg fill='%2300000' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5.89258' y='20.0347' width='20' height='3.33333' transform='rotate(-45 5.89258 20.0347)'%3E%3C/rect%3E%3Crect x='20.0347' y='22.3916' width='20' height='3.33333' transform='rotate(-135 20.0347 22.3916)'%3E%3C/rect%3E%3C/svg%3E");
}

.related-exchange__buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.related-exchange__button {
    width: 100%;
    height: 32px;
    font-size: 14px;
    line-height: 14px;
}

.related-exchange__button:not(:last-child) {
    margin-right: 5px;
}

.related-exchange__button:not(:first-child) {
    margin-left: 5px;
}

/*** Responsive ***/

@media (min-width: 768px) {

    .related-exchanges {
        border-top: 0;
    }

    .related-exchanges__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #F6F5F6;
    }

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

    .related-exchanges__header-group--exchange {
        flex-shrink: 0;
        width: 180px;
        margin-right: 20px;
    }

    .related-exchanges__header-group--properties {
        width: 100%;
    }

    .related-exchanges__header-group--properties .related-exchanges__header-cell {
        width: 33.3%;
    }

    .related-exchanges__header-group--buttons {
        flex-shrink: 0;
        width: 220px;
        margin-left: 20px;
    }

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

    .related-exchanges__header-cell--coins,
    .related-exchanges__header-cell--pairs {
        justify-content: center;
        max-width: 70px;
    }

    .related-exchange {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }

    .related-exchange__header {
        flex-shrink: 0;
        width: 180px;
        margin: 0 20px 0 0;
    }

    .related-exchange__info {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-exchange__name {
        margin-bottom: 5px;
    }

    .related-exchange__properties {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .related-exchange__property {
        width: 33.33%;
        margin: 0;
    }

    .related-exchange__property--coins {
        order: 1;
        justify-content: center;
        max-width: 70px;
    }

    .related-exchange__property--pairs {
        order: 2;
        justify-content: center;
        max-width: 70px;
    }

    .related-exchange__property--volume24 {
        order: 3;
    }

    .related-exchange__property--volume24 .related-exchange__property-value {
        font-weight: initial;
    }

    .related-exchange__property-label,
    .related-exchange__property-separator {
        display: none;
    }

    .related-exchange__property-value {
        margin: 0;
    }

    .related-exchange__buttons {
        justify-content: flex-end;
        flex-shrink: 0;
        width: 220px;
        margin: 0 -5px 0 20px;
    }

    .related-exchange__button {
        width: calc(50% - 10px);
    }

    .related-exchange__button:not(:first-child) {
        margin-left: auto;
    }

    .related-exchange__button:not(last-child) {
        margin-right: auto;
    }
}

@media (min-width: 1024px) {

    .related-exchange__logo {
        margin-right: 15px;
    }

    .related-exchange__logo-link {
        width: 40px;
        height: 40px;
    }

    .related-exchange__name-link {
        font-size: 16px;
        line-height: 18px;
    }

    .related-exchange__rating {
        width: 48px;
        height: 20px;
        font-size: 16px;
        line-height: 20px;
    }

    .related-exchange__comments {
        margin-left: 15px;
    }

    .related-exchange__comments-icon {
        width: 16px;
        height: 16px;
    }

    .related-exchange__comments-text {
        font-size: 16px;
        line-height: 18px;
    }

    .related-exchange__property--coins .related-exchange__property-value,
    .related-exchange__property--pairs .related-exchange__property-value {
        font-size: 16px;
        line-height: 18px;
    }
}