<template>
  <div class="cancel-order">
    <div class="apply-mask" @click="emits('cancelOrderClose')"></div>
    <div class="apply-content">
      <div class="slide-line"></div>
      <div class="order-title pf600 fs18 fc333333">您是否确定取消订单？</div>
      <img src="@/assets/icon/asset/Digital_currency_2_.svg" alt="" />
      <div class="text pf500 fs14 fc333333">
        如果您已向卖家付款 <br />
        请不要取消订单
      </div>
      <div class="sure-btn pf600 fs14 fcFFFFFF">确认</div>
      <div class="cancel pf500 fs14 fcDF384C">取消</div>
    </div>
  </div>
</template>
<script setup>
  const emits = defineEmits(["cancelOrderClose"]);
</script>
<style lang="less" scoped>
  .cancel-order {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 100vh;

    .apply-mask {
      position: fixed;
      left: 0;
      top: 0;
      z-index: -1;
      width: 100%;
      min-height: 100vh;
      background: rgba(0, 0, 0, 0.5);
    }

    .apply-content {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 375px;
      height: 337px;
      background: #ffffff;
      border-radius: 24px 24px 0px 0px;

      .slide-line {
        margin-top: 12px;
        width: 32px;
        height: 4px;
        border-radius: 2px;
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.5);
      }

      .order-title {
        margin-top: 20px;
        height: 24px;
        line-height: 24px;
      }

      img {
        margin-top: 19px;
        width: 110px;
        height: 70px;
      }

      .text {
        margin-top: 20px;
        line-height: 25px;
        text-align: center;
      }

      .sure-btn {
        margin-top: 10px;
        width: 311px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 100px;
        background: #df384c;
      }

      .cancel {
        margin-top: 11px;
      }
    }
  }
</style>
