<template>
  <modal name="NoticeDetails" :clickToClose="false">
    <div class="tw-text-base-primary xl:tw-p-[5px]">
      <div class="modal-header tw-flex tw-w-full tw-justify-center tw-mb-[32px] md:tw-mb-[21px] xl:tw-justify-between">
        <div class="t18 xl:tw-text-[20px]">Notice Details</div>
        <button class="close tw-transition tw-btn-md" @click="$modal.hide('NoticeDetails')"></button>
      </div>
      <div class="modal-content tw-head-body tw-grid tw-gap-[30px] tw-grid-cols-1">
        <div v-html="BookingOrder.NoticeDetail">
        </div>
      </div>
      <div class="tw-flex tw-justify-end tw-hidden xl:tw-flex">
        <button
          class="tw-body-2 tw-text-neutrals-0 tw-bg-base-secondary tw-rounded-[16px] tw-px-[24px] tw-py-[12px] tw-mb-[10px]"
          @click="$modal.hide('NoticeDetails')">
          OK
        </button>
      </div>
    </div>
  </modal>
</template>
<script>
export default {
  name: "NoticeDetails",
  data() {
    return {};
  },
  props: {
    BookingOrder: {
      type: Object,
    }
  },
};
</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 screen and (min-width: 1366px) {
    position: relative;
    right: initial;
    top: initial;
  }
}

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

    @media screen and (min-width: 1366px) {
      border-radius: 16px;
      //width: max-content;
      vertical-align: middle;
    }
  }

  .v--modal-overlay {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    align-items: flex-end;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 1;

    @media screen and (min-width: 1366px) {
      width: max-content !important;
      display: flex;
      justify-content: center;
    }
  }

  .v--modal-overlay[data-modal=""] {
    width: max-content !important;
    display: flex;
    justify-content: center;
  }

  .v--modal-box {
    top: 0;
    left: 0;
    width: 100%;
    height: 0;

    @media screen and (min-width: 1366px) {
      width: max-content;
    }
  }

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

  .v--modal-background-click {
    display: flex;
    align-items: flex-end;
    margin: 0 auto;

    @media screen and (min-width: 1366px) {
      width: 600px !important;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
</style>
