<template>
  <div class="goods-pre-sale-info-con flex-default">
    <div class="deposit">
      <div class="label">定金</div>
      <m-price :amt="500" />
    </div>
    <div class="left-time flex-default">
      <span class="label">距预售结束</span>
      <div class="num">07</div>
      <span class="label">时</span>
      <div class="num">42</div>
      <span class="label">分</span>
      <div class="num">19</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="less">
.goods-pre-sale-info-con {
  position: relative;
  justify-content: flex-end;
  height: 43px;
  background: linear-gradient(270deg, #f05b76 0%, #dd2e41 100%);
  padding-right: 17px;
  > .deposit {
    position: absolute;
    width: 126px;
    height: 50px;
    left: 0;
    bottom: 0;
    padding-left: 16px;
    padding-top: 4px;
    background: url("~@/assets/img/deposit-bg.png");
    background-size: 100%;
    background-repeat: no-repeat;
    .label {
      color: @mall-primary-color;
      font-size: 12px;
    }
  }
  > .left-time {
    .label {
      color: #ffe4e8;
      font-size: 12px;
      margin-right: 2px;
      &:first-of-type {
        margin-right: 9px;
      }
    }
    .num {
      line-height: 24px;
      background: #ffe4e8;
      border-radius: 4px;
      font-weight: bold;
      font-size: 15px;
      font-family: DINAlternate-Bold;
      margin-right: 3px;
      padding: 0 3px;
    }
  }
}
</style>