@use "../../../../../styles/abstracts/variables" as *;

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem;

  z-index: 9999;

  animation: fadeIn 0.2s ease;
}

.modal {
  width: 100%;
  max-width: 520px;

  background:
    linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.98) 0%,
      rgba(12, 12, 12, 0.98) 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 20px;

  padding: 1.75rem;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(247, 147, 24, 0.05);

  animation: slideUp 0.25s ease;

  h3 {
    margin: 0;

    color: #fff;

    font-size: 1.15rem;
    font-weight: 600;

    padding-bottom: 0.75rem;
  }

  > p {
    color: rgba(255, 255, 255, 0.7);

    font-size: 0.85rem;

    line-height: 1.8;

    margin-bottom: 1.5rem;

    strong {
      color: #f79318;
      font-weight: 600;
    }
  }

  @media (max-width: 768px) {
    padding: 1.25rem;

    border-radius: 16px;

    h3 {
      font-size: 1rem;
    }
  }
}

.summary {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1rem;

  margin-bottom: 1.25rem;

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }

  div {
    padding: 1rem;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.05);

    display: flex;
    flex-direction: column;

    span {
      color: rgba(255, 255, 255, 0.55);

      font-size: 0.72rem;

      margin-bottom: 0.4rem;

      text-transform: uppercase;

      letter-spacing: 0.03em;
    }

    strong {
      color: #fff;

      font-size: 1rem;

      font-weight: 600;
    }
  }
}

.notice {
  padding: 1rem;

  border-radius: 14px;

  background: rgba(247, 147, 24, 0.08);

  border: 1px solid rgba(247, 147, 24, 0.12);

  color: rgba(255, 255, 255, 0.82);

  font-size: 0.8rem;

  line-height: 1.8;

  margin-bottom: 1.5rem;
}

.actions {
  display: flex;

  gap: 0.75rem;

  @media (max-width: 600px) {
    flex-direction: column;
  }

  button {
    flex: 1;

    height: 48px;

    border-radius: 12px;

    border: none;

    font-size: 0.85rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
  }

  button:first-child {
    background: rgba(255, 255, 255, 0.05);

    color: rgba(255, 255, 255, 0.75);

    border: 1px solid rgba(255, 255, 255, 0.06);

    &:hover {
      background: rgba(255, 255, 255, 0.08);
    }
  }

  button:last-child {
    background: #f79318;

    color: #111;

    &:hover {
      transform: translateY(-1px);

      box-shadow:
        0 10px 25px rgba(247, 147, 24, 0.25);
    }
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;

    transform: translateY(15px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}