<template>
  <modal name="CancellationPolicy" :clickToClose="false">
    <div class="tw-text-base-primary">
      <div class="modal-header tw-flex tw-w-full tw-justify-between tw-mb-[30px]">
        <div class="t14 tw-font-bold tw-mr-[100px] md:tw-text-[20px]">
          {{ $t("Cancellation Policy") }}
        </div>
        <button class="close tw-transition tw-btn-md" @click="$modal.hide('CancellationPolicy')"></button>
      </div>
      <div class="modal-content t12 md:t14" v-html="Policy"></div>
    </div>
  </modal>
</template>
<script>
export default {
  name: "CancellationPolicy",

  data() {
    return {};
  },
  props: {
    Policy: {
      type: String,
    },
  },
};
</script>
<style lang="scss" scoped>
.close {
  position: absolute;
  right: 25px;
  top: 25px;
  background-image: url("~/assets/svg/close.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 14px;
  height: 14px;

  @media (min-width: 1366px) {
    position: relative;
    right: initial;
    top: initial;
  }
}

:deep() {
  .v--modal {
    background-color: #ffffff !important;
    text-align: left;
    border-radius: 16px;
    box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
    padding: 20px;
    max-width: max-content;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto;
    height: auto !important;
    vertical-align: middle;

    @media screen and (min-width: 768px) {
      padding: 30px;
    }
  }

  .v--modal-overlay {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    width: max-content;
    height: auto;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 1;
  }

  .v--modal-top-right {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
  }

  .v--modal-background-click {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .v--modal-box {
    margin-left: 60px;
    margin-right: 60px;

    @media (min-width: 768px) {
      margin-left: 67px;
      margin-right: 67px;
    }
  }
}
</style>
