@use '_theme.scss';

.modal-dialog.draft-confirmation-dialog {
  max-width: 536px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0 auto;

  @media (max-width: theme.$sm) {
    max-width: 100%;
    margin: 0 20px;
  }

  .draft-confirmation-dialog-header {
    padding: 13px;
    border-bottom: 1px solid var(--color-line);

    .modal-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .draft-confirmation-dialog-title {
      font-size: var(--text-size-h4);
      color: var(--text-color-ultra-dark);
    }

    .close-btn {
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      background: none;
      border: none;

      &:hover {
        opacity: 0.7;
      }
    }
  }

  .draft-confirmation-dialog-body {
    padding: 30px 20px;

    @media (max-width: theme.$sm) {
      padding: 15px;
    }
  }

  .draft-confirmation-dialog-content {
    text-align: center;
    margin-bottom: 50px;
  }

  .draft-confirmation-text {
    font-size: var(--text-size-label);
    color: var(--text-color-ultra-dark);
    margin-bottom: 20px;
  }

  .thumbnail-wrapper {
    display: flex;
    justify-content: center;
  }

  .draft-confirmation-thumbnail {
    max-height: 80px;
    object-fit: contain;
    border: 1px solid var(--color-line);
  }

  .buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;

    @media (max-width: theme.$xs) {
      gap: 12px;
    }

    .confirmation-button {
      width: 100%;

      @media (max-width: theme.$sm) {
        width: 100%;
      }
    }
  }
}

.modal-backdrop.draft-confirmation-dialog-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

