@charset "UTF-8";

/*內文頁 相關個股*/
.stock-info {
    margin-top: 32px;
}

    .stock-info h5 {
        font-size: 1.125em;
        font-weight: 500;
        padding-bottom: 16px;
        border-bottom: 1px solid #a9b6cb;
    }

.stock-wrap {
    padding: 24px 0 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-name {
    flex: 100% 1 1;
}

    .stock-name h6 {
        font-size: 1.125em;
    }

    .stock-name span {
        color: #6c7b94;
        font-size: 0.875em;
    }

.stock-price {
    flex: 125px 0 0;
    margin-right: 24px;
    text-align: right;
}

.price {
    font-size: 1.125em;
}

.stock-quantity {
    flex: 95px 0 0;
    margin-right: 24px;
}

.stock-btn {
    flex: 70px 0 0;
}

.stock-quantity > div {
    display: flex;
}

.qname {
    flex: 2em 0 0;
    color: #6c7b94;
    font-size: 0.875em;
}

.qnumber {
    flex: 100% 1 1;
    text-align: right;
}

.stock-btn button {
    border: none;
    width: 70px;
    height: 40px;
    background-color: #c43826;
    color: #fff;
    border-radius: 2px;
    font-size: 1em;
    font-weight: 300;
}

.up {
    color: #f45a4c;
    position: relative;
}

.down {
    color: #22a16f;
    position: relative;
}

.up-down .up:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: 3px solid transparent;
    border-bottom: 6px solid #f45a4c;
    position: absolute;
    left: -13px;
    top: 5px;
}

.up-down .down:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: 3px solid transparent;
    border-top: 6px solid #22a16f;
    position: absolute;
    left: -13px;
    top: 7px;
}


@media screen and (max-width: 992px) {
    .stock-price {
        margin-right: 16px;
    }

    .stock-quantity {
        flex: 77px 0 0;
        margin-right: 16px;
    }

    .qnumber {
        font-size: 0.875em;
    }

    .up-down {
        font-size: 0.875em;
    }

        .up-down .up:before {
            left: -10px;
            top: 3px;
        }

        .up-down .down:before {
            left: -10px;
            top: 6px;
        }
}