.top-sliding-card {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 300px;
  background-color: #000;
  background-repeat: no-repeat;
  border: 2px solid gold;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  z-index: 20;
  overflow: hidden;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.top-sliding-card .content {
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.top-sliding-card.show .content {
  transform: translateY(0);
  opacity: 1;
}

.top-sliding-card h3 {
  font-size: 18px;
  margin: 0;
  color: gold;
}

.top-sliding-card p {
  font-size: 14px;
  margin: 5px 0 10px;
  color: #ddd;
}

.top-sliding-card .loader {
  height: 5px;
  background-color: purple;
  width: 0%;
  border-radius: 3px;
  transition: width 3s linear;
}

.card-img-wrapper {
  border-radius: 4px;
  overflow: hidden;
}

.card-img-wrapper img {
  max-width: 80px;
  height: auto;
}

@media screen and (max-width: 576px) {
  .top-sliding-card {
    width: auto;
    top: unset;
    left: 0;
    right: 0;
    bottom: 0;
    border-width: 1px;
    border-radius: 0;
    padding: 12px;
  }

  .top-sliding-card .loader {
    margin-top: 4px;
  }

  .card-img-wrapper img {
    max-width: 60px;
  }
}
