/* Previously Purchased Sidebar Widget */

.previously-purchased-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
}

.previously-purchased-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.previously-purchased-item:hover {
  background: var(--bg-primary);
  border-color: var(--primary-light);
  transform: translateX(2px);
}

.pp-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pp-price {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}

.pp-add-btn {
  padding: 0.3rem 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pp-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pp-add-btn:active {
  transform: translateY(0);
}

/* Scrollbar styling for previously purchased list */
.previously-purchased-list::-webkit-scrollbar {
  width: 4px;
}

.previously-purchased-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

.previously-purchased-list::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

.previously-purchased-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .previously-purchased-list {
    max-height: 300px;
  }

  .pp-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .previously-purchased-item {
    padding: 0.5rem;
  }

  .pp-add-btn {
    font-size: 0.6rem;
  }
}
