@prefix: pisell-sale-detail-unavailable-vouchers-modal;

.pisell-lowcode-modal-root {
  .pisell-pc-modal.@{prefix} {
    .pisell-lowcode-modal-content {
      overflow: hidden;
      border: 1px solid #52678f;
      border-radius: 28px;
      color: #f5f7ff;
      background: #080e1f;
      box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
    }

    .pisell-lowcode-modal-header {
      padding: 40px 40px 26px;
      border: 0;
      background: transparent;
    }

    .pisell-lowcode-modal-title {
      color: #f5f7ff;
      font-size: clamp(24px, 2vw, 36px);
      font-weight: 700;
      line-height: 1.2;
    }

    .pisell-lowcode-modal-body {
      padding: 0 40px;
    }

    .pisell-lowcode-modal-footer {
      display: flex;
      justify-content: flex-end;
      padding: 36px 40px 32px;
      margin: 0;
      border: 0;
      background: transparent;
    }
  }
}

.@{prefix} {
  &__list {
    display: flex;
    max-height: min(548px, calc(100vh - 310px));
    min-height: 160px;
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    gap: 10px;
    scrollbar-color: rgba(184, 198, 237, 0.42) transparent;
    scrollbar-width: thin;
  }

  &__item {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    min-width: 0;
    min-height: 128px;
    padding: 14px 10px;
    border: 2px solid rgba(184, 198, 237, 0.3);
    border-radius: 18px;
    color: rgba(226, 231, 244, 0.58);
    background: #12192a;
  }

  &__item-main {
    min-width: 0;
    flex: 1;
  }

  &__item-title {
    display: block;
    overflow: hidden;
    font-size: clamp(20px, 1.55vw, 29px);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__item-meta,
  &__item-reason {
    font-size: clamp(17px, 1.35vw, 25px);
    font-weight: 600;
    line-height: 1.3;
  }

  &__item-meta {
    margin-top: 6px;
  }

  &__item-reason {
    margin-top: 2px;
  }

  &__alert {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(184, 198, 237, 0.3);
    border-radius: 50%;
    color: rgba(226, 231, 244, 0.58);
    font-size: 24px;
    font-weight: 700;
  }

  &__close.pisell-lowcode-btn {
    min-width: 140px;
    height: 66px;
    padding: 0 30px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(105deg, #823cf5 0%, #6421c7 100%);
    font-size: clamp(20px, 1.5vw, 28px);
    font-weight: 700;
    box-shadow: none;

    &:hover,
    &:focus-visible {
      color: #fff;
      background: linear-gradient(105deg, #955eff 0%, #762ee8 100%);
    }

    &:focus-visible {
      outline: 3px solid #b8c6ed;
      outline-offset: 3px;
    }
  }
}

@media (max-width: 900px) {
  .pisell-lowcode-modal-root {
    .pisell-pc-modal.@{prefix} {
      .pisell-lowcode-modal {
        width: calc(100vw - 24px) !important;
      }

      .pisell-lowcode-modal-content {
        border-radius: 20px;
      }

      .pisell-lowcode-modal-header {
        padding: 24px 20px 18px;
      }

      .pisell-lowcode-modal-body {
        padding: 0 20px;
      }

      .pisell-lowcode-modal-footer {
        padding: 20px;
      }
    }
  }

  .@{prefix} {
    &__list {
      max-height: calc(90vh - 180px);
    }

    &__item {
      min-height: 96px;
      border-radius: 14px;
    }

    &__alert {
      width: 44px;
      height: 44px;
    }

    &__close.pisell-lowcode-btn {
      width: 100%;
      height: 52px;
      border-radius: 12px;
    }
  }
}
